Changeset 141 in tspsg-svn for trunk/src/settingsdialog.cpp
- Timestamp:
- Oct 3, 2010, 2:01:00 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/settingsdialog.cpp
r140 r141 109 109 QVBoxLayout *vbox1; // Layout helper 110 110 111 #ifdef Q_ OS_WINCE_WM111 #ifdef Q_WS_WINCE_WM 112 112 // On screens with small height when SIP is shown and the window is resized 113 113 // there is not enought space for all elements. … … 120 120 #else 121 121 buttons->insertStretch(buttons->indexOf(buttonHelp) + 1); 122 #endif // Q_ OS_WINCE_WM122 #endif // Q_WS_WINCE_WM 123 123 124 124 bgWhite->layout()->setMargin(0); … … 128 128 vbox1->setMargin(0); 129 129 vbox1->setSpacing(0); 130 #ifdef Q_ OS_WINCE_WM130 #ifdef Q_WS_WINCE_WM 131 131 vbox1->addWidget(scrollArea); 132 132 #else 133 133 vbox1->addWidget(bgWhite); 134 #endif // Q_ OS_WINCE_WM134 #endif // Q_WS_WINCE_WM 135 135 vbox1->addWidget(bgGrey); 136 136 setLayout(vbox1); … … 138 138 QVBoxLayout *vbox; // Layout helper 139 139 140 #ifdef Q_ OS_WIN32140 #ifdef Q_WS_WIN32 141 141 if (QtWin::isCompositionEnabled()) { 142 142 cbUseTranslucency = new QCheckBox(bgWhite); … … 148 148 cbUseTranslucency->setCursor(QCursor(Qt::PointingHandCursor)); 149 149 } 150 #endif // Q_ OS_WIN32150 #endif // Q_WS_WIN32 151 151 152 152 cbSaveState = new QCheckBox(bgWhite); … … 194 194 box = static_cast<QBoxLayout *>(tabGeneral->layout()); 195 195 box->insertWidget(box->indexOf(cbUseNativeDialogs) + 1, cbSaveState); 196 #ifdef Q_ OS_WIN32196 #ifdef Q_WS_WIN32 197 197 if (QtWin::isCompositionEnabled()) 198 198 box->insertWidget(box->indexOf(cbUseNativeDialogs) + 1, cbUseTranslucency); 199 #endif // Q_ OS_WIN32199 #endif // Q_WS_WIN32 200 200 201 201 // Inserting label for hints to the bottom part (with grey bg) … … 211 211 #endif // HANDHELD 212 212 213 #ifdef Q_ OS_WINCE_WM213 #ifdef Q_WS_WINCE_WM 214 214 // We need to react to SIP show/hide and resize the window appropriately 215 215 connect(QApplication::desktop(), SIGNAL(workAreaResized(int)), SLOT(desktopResized(int))); 216 #endif // Q_ OS_WINCE_WM216 #endif // Q_WS_WINCE_WM 217 217 connect(spinRandMin, SIGNAL(valueChanged(int)), SLOT(spinRandMinValueChanged(int))); 218 218 connect(buttonFont, SIGNAL(clicked()), SLOT(buttonFontClicked())); … … 230 230 cbSaveLastUsed->setChecked(settings->value("SaveLastUsed", DEF_SAVE_LAST_USED).toBool()); 231 231 cbUseNativeDialogs->setChecked(settings->value("UseNativeDialogs", DEF_USE_NATIVE_DIALOGS).toBool()); 232 #ifdef Q_ OS_WIN32232 #ifdef Q_WS_WIN32 233 233 if (QtWin::isCompositionEnabled()) 234 234 cbUseTranslucency->setChecked(settings->value("UseTranslucency", DEF_USE_TRANSLUCENCY).toBool()); 235 #endif // Q_ OS_WIN32235 #endif // Q_WS_WIN32 236 236 #ifndef HANDHELD 237 237 cbSaveState->setChecked(settings->value("SavePos", DEF_SAVEPOS).toBool()); … … 298 298 #else 299 299 adjustSize(); 300 #endif // Q_ OS_WINCE_WM300 #endif // Q_WS_WINCE_WM 301 301 } 302 302 … … 349 349 settings->setValue("SaveLastUsed", cbSaveLastUsed->isChecked()); 350 350 settings->setValue("UseNativeDialogs", cbUseNativeDialogs->isChecked()); 351 #ifdef Q_ OS_WIN32351 #ifdef Q_WS_WIN32 352 352 if (QtWin::isCompositionEnabled()) { 353 353 bool old = settings->value("UseTranslucency", DEF_USE_TRANSLUCENCY).toBool(); … … 358 358 settings->setValue("UseTranslucency", cbUseTranslucency->isChecked()); 359 359 } 360 #endif // Q_ OS_WIN32360 #endif // Q_WS_WIN32 361 361 #ifndef HANDHELD 362 362 settings->setValue("SavePos", cbSaveState->isChecked()); … … 421 421 } 422 422 423 #ifdef Q_ OS_WINCE_WM423 #ifdef Q_WS_WINCE_WM 424 424 void SettingsDialog::desktopResized(int screen) 425 425 { … … 453 453 QWidget::showEvent(ev); 454 454 } 455 #endif // Q_ OS_WINCE_WM455 #endif // Q_WS_WINCE_WM 456 456 457 457 void SettingsDialog::spinRandMinValueChanged(int val) {
Note: See TracChangeset
for help on using the changeset viewer.