don't ignore the window flags passed in to the ctor
svn path=/trunk/KDE/kdelibs/; revision=1125895
This commit is contained in:
parent
6c5f292e2f
commit
e96539da54
@ -398,11 +398,10 @@ int DialogPrivate::calculateWidthForHeightAndRatio(int height, qreal ratio)
|
|||||||
}
|
}
|
||||||
|
|
||||||
Dialog::Dialog(QWidget *parent, Qt::WindowFlags f)
|
Dialog::Dialog(QWidget *parent, Qt::WindowFlags f)
|
||||||
: QWidget(parent, f),
|
: QWidget(parent, f | Qt::FramelessWindowHint),
|
||||||
d(new DialogPrivate(this))
|
d(new DialogPrivate(this))
|
||||||
{
|
{
|
||||||
setAttribute(Qt::WA_TranslucentBackground);
|
setAttribute(Qt::WA_TranslucentBackground);
|
||||||
setWindowFlags(Qt::FramelessWindowHint);
|
|
||||||
d->background = new FrameSvg(this);
|
d->background = new FrameSvg(this);
|
||||||
d->background->setImagePath("dialogs/background");
|
d->background->setImagePath("dialogs/background");
|
||||||
d->background->setEnabledBorders(FrameSvg::AllBorders);
|
d->background->setEnabledBorders(FrameSvg::AllBorders);
|
||||||
|
Loading…
Reference in New Issue
Block a user