Qt4/Qt5 neutral changes:
+ replace Q_WS_WIN with Q_OS_WIN + replace Q_WS_X11 with Q_OS_LINUX + replace Q_WS_MACX with Q_OS_MACX + set explicit cast to HWND
This commit is contained in:
@@ -1019,7 +1019,7 @@ void MainWindow::showMainWindow()
|
||||
// starts a timer to check for the visibility of the main window and call
|
||||
// ShowWindow() if needed.
|
||||
// So far, this phenomena only appeared with Qt4.1.4
|
||||
#if defined(Q_WS_WIN) && (QT_VERSION == 0x040104)
|
||||
#if defined(Q_OS_WIN) && (QT_VERSION == 0x040104)
|
||||
WId id = this->winId();
|
||||
ShowWindow(id, SW_SHOW);
|
||||
std::cout << "Force to show main window" << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user