Browse Source

qt: about box fixed for older qt5

pull/1603/head
user 4 years ago
parent
commit
776dc7ec52
  1. 5
      qt/i2pd_qt/mainwindow.cpp

5
qt/i2pd_qt/mainwindow.cpp

@ -420,6 +420,8 @@ void MainWindow::showAboutBox(const QString & href) { @@ -420,6 +420,8 @@ void MainWindow::showAboutBox(const QString & href) {
qDebug() << "MainWindow::showAboutBox(), href:" << href << endl;
AboutDialog dialog(this);
/*
//doesn't work on older qt5: ‘class QStyleHints’ has no member named ‘showIsMaximized’
if (!QGuiApplication::styleHints()->showIsFullScreen() && !QGuiApplication::styleHints()->showIsMaximized()) {
const QWindow * windowHandle = dialog.windowHandle();
qDebug()<<"AboutDialog windowHandle ptr: "<<(size_t)windowHandle<<endl;
@ -432,7 +434,8 @@ void MainWindow::showAboutBox(const QString & href) { @@ -432,7 +434,8 @@ void MainWindow::showAboutBox(const QString & href) {
(availableGeometry.height() - dialog.height()) / 2);
}
}
//dialog.show();
*/
(void) dialog.exec();
}

Loading…
Cancel
Save