set WA_TranslucentBackground to top level windows
svn path=/trunk/KDE/kdelibs/; revision=927085
This commit is contained in:
parent
604bd19638
commit
f9ab759b8e
@ -171,6 +171,7 @@ Dialog::Dialog(QWidget *parent, Qt::WindowFlags f)
|
||||
: QWidget(parent, f),
|
||||
d(new DialogPrivate(this))
|
||||
{
|
||||
setAttribute(Qt::WA_TranslucentBackground);
|
||||
setWindowFlags(Qt::FramelessWindowHint);
|
||||
d->background = new FrameSvg(this);
|
||||
d->background->setImagePath("dialogs/background");
|
||||
|
@ -142,6 +142,7 @@ ToolTip::ToolTip(QWidget *parent)
|
||||
: QWidget(parent),
|
||||
d(new ToolTipPrivate())
|
||||
{
|
||||
setAttribute(Qt::WA_TranslucentBackground);
|
||||
setWindowFlags(Qt::ToolTip);
|
||||
QGridLayout *l = new QGridLayout;
|
||||
d->preview = new WindowPreview(this);
|
||||
|
Loading…
Reference in New Issue
Block a user