Changeset 1babbd6ba3 in tspsg for src/settingsdialog.cpp
- Timestamp:
- Apr 8, 2010, 11:02:26 PM (15 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- a23f4c292f
- Parents:
- 394216e468
- git-author:
- Oleksii Serdiuk <contacts@…> (04/08/10 23:02:26)
- git-committer:
- Oleksii Serdiuk <contacts@…> (06/29/12 19:34:20)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/settingsdialog.cpp
r394216e468 r1babbd6ba3 42 42 buttonBox->button(QDialogButtonBox::Cancel)->setCursor(QCursor(Qt::PointingHandCursor)); 43 43 44 #if defined(Q_OS_WINCE) || defined(Q_OS_SYMBIAN)44 #ifdef HANDHELD 45 45 QVBoxLayout *vbox1; // Layout helper 46 46 47 #ifdef Q_OS_WINCE 47 #ifdef Q_OS_WINCE_WM 48 48 // On screens with small height when SIP is shown and the window is resized 49 49 // there is not enought space for all elements. 50 // So we showscrollbars to be able to access them.50 // So we show the scrollbars to be able to access them. 51 51 QScrollArea *scrollArea = new QScrollArea(this); 52 52 scrollArea->setFrameShape(QFrame::NoFrame); … … 56 56 #else 57 57 buttons->insertStretch(buttons->indexOf(buttonHelp) + 1); 58 #endif // Q_OS_WINCE 58 #endif // Q_OS_WINCE_WM 59 59 60 60 bgWhite->layout()->setMargin(0); … … 64 64 vbox1->setMargin(0); 65 65 vbox1->setSpacing(0); 66 #ifdef Q_OS_WINCE 66 #ifdef Q_OS_WINCE_WM 67 67 vbox1->addWidget(scrollArea); 68 68 #else 69 69 vbox1->addWidget(bgWhite); 70 #endif // Q_OS_WINCE 70 #endif // Q_OS_WINCE_WM 71 71 vbox1->addWidget(bgGrey); 72 72 setLayout(vbox1); 73 #else // Q_OS_WINCE || Q_OS_SYMBIAN73 #else // HANDHELD 74 74 // Layout helper elements 75 75 QVBoxLayout *vbox1, *vbox2; … … 147 147 vbox2->addWidget(bgGrey); 148 148 setLayout(vbox2); 149 #endif // Q_OS_WINCE150 151 #ifdef Q_OS_WINCE 149 #endif // HANDHELD 150 151 #ifdef Q_OS_WINCE_WM 152 152 // We need to react to SIP show/hide and resize the window appropriately 153 153 connect(QApplication::desktop(), SIGNAL(workAreaResized(int)), SLOT(desktopResized(int))); 154 #endif // Q_OS_WINCE 154 #endif // Q_OS_WINCE_WM 155 155 connect(spinRandMin,SIGNAL(valueChanged(int)),this,SLOT(spinRandMinValueChanged(int))); 156 156 connect(buttonFont,SIGNAL(clicked()),this,SLOT(buttonFontClicked())); 157 157 connect(buttonColor,SIGNAL(clicked()),this,SLOT(buttonColorClicked())); 158 158 setWindowFlags(windowFlags() ^ Qt::WindowContextHelpButtonHint); 159 #if !defined(Q_OS_WINCE) && !defined(Q_OS_SYMBIAN)159 #ifndef HANDHELD 160 160 // Setting initial text of dialog hint label to own status tip text. 161 161 labelHint->setText(labelHint->statusTip()); 162 #endif // Q_OS_WINCE162 #endif // HANDHELD 163 163 164 164 settings = new QSettings(QSettings::IniFormat, QSettings::UserScope, "TSPSG", "tspsg", this); … … 171 171 cbUseTranslucency->setChecked(settings->value("UseTranslucency", DEF_USE_TRANSLUCENCY).toBool()); 172 172 #endif // Q_OS_WIN32 173 #if !defined(Q_OS_WINCE) && !defined(Q_OS_SYMBIAN)173 #ifndef HANDHELD 174 174 cbSaveState->setChecked(settings->value("SavePos", DEF_SAVEPOS).toBool()); 175 #endif // Q_OS_WINCE175 #endif // HANDHELD 176 176 177 177 settings->beginGroup("Task"); … … 198 198 settings->endGroup(); 199 199 200 #ifndef Q_OS_WINCE 200 #ifndef Q_OS_WINCE_WM 201 201 adjustSize(); 202 #endif // Q_OS_WINCE 202 #endif // Q_OS_WINCE_WM 203 203 } 204 204 … … 248 248 return; 249 249 } 250 #if !defined(Q_OS_WINCE) && !defined(Q_OS_SYMBIAN)250 #ifndef HANDHELD 251 251 settings->setValue("SavePos", cbSaveState->isChecked()); 252 #endif // Q_OS_WINCE252 #endif // HANDHELD 253 253 #ifdef Q_OS_WIN32 254 254 if (QtWin::isCompositionEnabled()) { … … 304 304 } 305 305 306 #ifdef Q_OS_WINCE 306 #ifdef Q_OS_WINCE_WM 307 307 void SettingsDialog::desktopResized(int screen) 308 308 { … … 336 336 QWidget::showEvent(ev); 337 337 } 338 #endif // Q_OS_WINCE 338 #endif // Q_OS_WINCE_WM 339 339 340 340 void SettingsDialog::spinRandMinValueChanged(int val) { … … 342 342 } 343 343 344 #if !defined(Q_OS_WINCE) && !defined(Q_OS_SYMBIAN)344 #ifndef HANDHELD 345 345 bool SettingsDialog::event(QEvent *ev) 346 346 { … … 358 358 return QDialog::event(ev); 359 359 } 360 #endif // Q_OS_WINCE360 #endif // HANDHELD
Note: See TracChangeset
for help on using the changeset viewer.