mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
qt: about box fixed for older qt5
This commit is contained in:
parent
082c4f1104
commit
776dc7ec52
@ -420,6 +420,8 @@ void MainWindow::showAboutBox(const QString & href) {
|
|||||||
qDebug() << "MainWindow::showAboutBox(), href:" << href << endl;
|
qDebug() << "MainWindow::showAboutBox(), href:" << href << endl;
|
||||||
AboutDialog dialog(this);
|
AboutDialog dialog(this);
|
||||||
|
|
||||||
|
/*
|
||||||
|
//doesn't work on older qt5: ‘class QStyleHints’ has no member named ‘showIsMaximized’
|
||||||
if (!QGuiApplication::styleHints()->showIsFullScreen() && !QGuiApplication::styleHints()->showIsMaximized()) {
|
if (!QGuiApplication::styleHints()->showIsFullScreen() && !QGuiApplication::styleHints()->showIsMaximized()) {
|
||||||
const QWindow * windowHandle = dialog.windowHandle();
|
const QWindow * windowHandle = dialog.windowHandle();
|
||||||
qDebug()<<"AboutDialog windowHandle ptr: "<<(size_t)windowHandle<<endl;
|
qDebug()<<"AboutDialog windowHandle ptr: "<<(size_t)windowHandle<<endl;
|
||||||
@ -432,7 +434,8 @@ void MainWindow::showAboutBox(const QString & href) {
|
|||||||
(availableGeometry.height() - dialog.height()) / 2);
|
(availableGeometry.height() - dialog.height()) / 2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//dialog.show();
|
*/
|
||||||
|
|
||||||
(void) dialog.exec();
|
(void) dialog.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user