- Timestamp:
- Jun 22, 2009, 5:42:56 PM (15 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mainwindow.cpp
r23 r26 150 150 } 151 151 152 #ifndef Q_OS_WINCE153 152 void MainWindow::closeEvent(QCloseEvent *event) 154 153 { 154 settings->setValue("NumCities",spinCities->value()); 155 #ifndef Q_OS_WINCE 155 156 // Saving windows state 156 settings->setValue("NumCities",spinCities->value());157 157 if (settings->value("SavePos",false).toBool()) { 158 158 settings->beginGroup("MainWindow"); … … 164 164 settings->endGroup(); 165 165 } 166 #endif // Q_OS_WINCE 166 167 QMainWindow::closeEvent(event); 167 168 } 168 #endif // Q_OS_WINCE -
trunk/src/mainwindow.h
r23 r26 41 41 public: 42 42 MainWindow(QWidget *parent = 0); 43 #ifndef Q_OS_WINCE44 43 void closeEvent(QCloseEvent *event); 45 #endif // Q_OS_WINCE46 44 private slots: 47 45 void ChangeSettings();
Note: See TracChangeset
for help on using the changeset viewer.