don't ignore the window flags passed in to the ctor

svn path=/trunk/KDE/kdelibs/; revision=1125895
This commit is contained in:
Aaron J. Seigo 2010-05-12 16:17:51 +00:00
parent 6c5f292e2f
commit e96539da54

View File

@ -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);