Bug 1008668 - Make Qt port compile on 5.0.2. r=romaxa DONTBUILD

This commit is contained in:
Tom Schuster 2014-05-17 01:33:53 +02:00
parent 25afc24d82
commit 6564bacf3c

View File

@ -224,7 +224,11 @@ nsWindow::createQWidget(MozQWidget* parent,
widget->setObjectName(QString(windowName));
if (mWindowType == eWindowType_invisible) {
#if (QT_VERSION >= QT_VERSION_CHECK(5, 1, 0))
widget->setVisibility(QWindow::Hidden);
#else
widget->hide();
#endif
}
if (mWindowType == eWindowType_dialog) {
widget->setModality(Qt::WindowModal);