Changeset b0dfe0844e in tspsg
- Timestamp:
- Sep 12, 2012, 7:56:15 PM (12 years ago)
- Branches:
- appveyor, imgbot, master, readme
- Children:
- 2fcdd7bfdf
- Parents:
- 0e473fbe88
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mainwindow.cpp
r0e473fbe88 rb0dfe0844e 779 779 tl = NULL; 780 780 } else { 781 tl->SetProgressValue( winId(), 0, n * 2);781 tl->SetProgressValue(HWND(winId()), 0, n * 2); 782 782 } 783 783 } … … 804 804 #ifdef Q_OS_WIN32 805 805 if (tl != NULL) { 806 tl->SetProgressState( winId(), TBPF_ERROR);806 tl->SetProgressState(HWND(winId()), TBPF_ERROR); 807 807 } 808 808 #endif … … 816 816 #ifdef Q_OS_WIN32 817 817 if (tl != NULL) 818 tl->SetProgressState( winId(), TBPF_INDETERMINATE);818 tl->SetProgressState(HWND(winId()), TBPF_INDETERMINATE); 819 819 #endif 820 820 QCoreApplication::processEvents(QEventLoop::ExcludeUserInputEvents); … … 831 831 #ifdef Q_OS_WIN32 832 832 if (tl != NULL) { 833 tl->SetProgressState( winId(), TBPF_NOPROGRESS);833 tl->SetProgressState(HWND(winId()), TBPF_NOPROGRESS); 834 834 tl->Release(); 835 835 tl = NULL; … … 845 845 #ifdef Q_OS_WIN32 846 846 if (tl != NULL) 847 tl->SetProgressValue( winId(), spinCities->value(), spinCities->value() + solver.getTotalSteps() + 1);847 tl->SetProgressValue(HWND(winId()), spinCities->value(), spinCities->value() + solver.getTotalSteps() + 1); 848 848 #endif 849 849 … … 915 915 #ifdef Q_OS_WIN32 916 916 if (tl != NULL) 917 tl->SetProgressState( winId(), TBPF_INDETERMINATE);917 tl->SetProgressState(HWND(winId()), TBPF_INDETERMINATE); 918 918 #endif 919 919 #ifndef QT_NO_CONCURRENT … … 929 929 #ifdef Q_OS_WIN32 930 930 if (tl != NULL) { 931 tl->SetProgressState( winId(), TBPF_NOPROGRESS);931 tl->SetProgressState(HWND(winId()), TBPF_NOPROGRESS); 932 932 tl->Release(); 933 933 tl = NULL; … … 939 939 #ifdef Q_OS_WIN32 940 940 if (tl != NULL) 941 tl->SetProgressValue( winId(), spinCities->value() + n, spinCities->value() + solver.getTotalSteps() + 1);941 tl->SetProgressValue(HWND(winId()), spinCities->value() + n, spinCities->value() + solver.getTotalSteps() + 1); 942 942 #endif 943 943 … … 986 986 #ifdef Q_OS_WIN32 987 987 if (tl != NULL) 988 tl->SetProgressValue( winId(), spinCities->value() + n, spinCities->value() + solver.getTotalSteps() + 1);988 tl->SetProgressValue(HWND(winId()), spinCities->value() + n, spinCities->value() + solver.getTotalSteps() + 1); 989 989 #endif 990 990 … … 1049 1049 #ifdef Q_OS_WIN32 1050 1050 if (tl != NULL) 1051 tl->SetProgressState( winId(), TBPF_INDETERMINATE);1051 tl->SetProgressState(HWND(winId()), TBPF_INDETERMINATE); 1052 1052 #endif 1053 1053 #ifndef QT_NO_CONCURRENT … … 1063 1063 #ifdef Q_OS_WIN32 1064 1064 if (tl != NULL) { 1065 tl->SetProgressState( winId(), TBPF_NOPROGRESS);1065 tl->SetProgressState(HWND(winId()), TBPF_NOPROGRESS); 1066 1066 tl->Release(); 1067 1067 tl = NULL; … … 1141 1141 void MainWindow::solverRoutePartFound(int n) 1142 1142 { 1143 tl->SetProgressValue( winId(), n, spinCities->value() * 2);1143 tl->SetProgressValue(HWND(winId()), n, spinCities->value() * 2); 1144 1144 } 1145 1145 #endif // Q_OS_WIN32 -
src/qtwin.cpp
r0e473fbe88 rb0dfe0844e 255 255 } 256 256 } 257 #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) 257 258 return QWidget::winEvent(message, result); 258 } 259 #endif 259 #else 260 return QWidget::nativeEvent("windows_generic_MSG", message, result); 261 #endif 262 } 263 #endif
Note: See TracChangeset
for help on using the changeset viewer.