Changeset 1babbd6ba3 in tspsg for src/settingsdialog.cpp


Ignore:
Timestamp:
Apr 8, 2010, 11:02:26 PM (15 years ago)
Author:
Oleksii Serdiuk
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)
Message:

+ Added Installation Guide.

  • Updated translations.
  • Updated documentaion.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/settingsdialog.cpp

    r394216e468 r1babbd6ba3  
    4242        buttonBox->button(QDialogButtonBox::Cancel)->setCursor(QCursor(Qt::PointingHandCursor));
    4343
    44 #if defined(Q_OS_WINCE) || defined(Q_OS_SYMBIAN)
     44#ifdef HANDHELD
    4545QVBoxLayout *vbox1; // Layout helper
    4646
    47 #ifdef Q_OS_WINCE
     47#ifdef Q_OS_WINCE_WM
    4848        // On screens with small height when SIP is shown and the window is resized
    4949        // there is not enought space for all elements.
    50         //  So we show scrollbars to be able to access them.
     50        // So we show the scrollbars to be able to access them.
    5151QScrollArea *scrollArea = new QScrollArea(this);
    5252        scrollArea->setFrameShape(QFrame::NoFrame);
     
    5656#else
    5757        buttons->insertStretch(buttons->indexOf(buttonHelp) + 1);
    58 #endif // Q_OS_WINCE
     58#endif // Q_OS_WINCE_WM
    5959
    6060        bgWhite->layout()->setMargin(0);
     
    6464        vbox1->setMargin(0);
    6565        vbox1->setSpacing(0);
    66 #ifdef Q_OS_WINCE
     66#ifdef Q_OS_WINCE_WM
    6767        vbox1->addWidget(scrollArea);
    6868#else
    6969        vbox1->addWidget(bgWhite);
    70 #endif // Q_OS_WINCE
     70#endif // Q_OS_WINCE_WM
    7171        vbox1->addWidget(bgGrey);
    7272        setLayout(vbox1);
    73 #else // Q_OS_WINCE || Q_OS_SYMBIAN
     73#else // HANDHELD
    7474        // Layout helper elements
    7575QVBoxLayout *vbox1, *vbox2;
     
    147147        vbox2->addWidget(bgGrey);
    148148        setLayout(vbox2);
    149 #endif // Q_OS_WINCE
    150 
    151 #ifdef Q_OS_WINCE
     149#endif // HANDHELD
     150
     151#ifdef Q_OS_WINCE_WM
    152152        // We need to react to SIP show/hide and resize the window appropriately
    153153        connect(QApplication::desktop(), SIGNAL(workAreaResized(int)), SLOT(desktopResized(int)));
    154 #endif // Q_OS_WINCE
     154#endif // Q_OS_WINCE_WM
    155155        connect(spinRandMin,SIGNAL(valueChanged(int)),this,SLOT(spinRandMinValueChanged(int)));
    156156        connect(buttonFont,SIGNAL(clicked()),this,SLOT(buttonFontClicked()));
    157157        connect(buttonColor,SIGNAL(clicked()),this,SLOT(buttonColorClicked()));
    158158        setWindowFlags(windowFlags() ^ Qt::WindowContextHelpButtonHint);
    159 #if !defined(Q_OS_WINCE) && !defined(Q_OS_SYMBIAN)
     159#ifndef HANDHELD
    160160        // Setting initial text of dialog hint label to own status tip text.
    161161        labelHint->setText(labelHint->statusTip());
    162 #endif // Q_OS_WINCE
     162#endif // HANDHELD
    163163
    164164        settings = new QSettings(QSettings::IniFormat, QSettings::UserScope, "TSPSG", "tspsg", this);
     
    171171                cbUseTranslucency->setChecked(settings->value("UseTranslucency", DEF_USE_TRANSLUCENCY).toBool());
    172172#endif // Q_OS_WIN32
    173 #if !defined(Q_OS_WINCE) && !defined(Q_OS_SYMBIAN)
     173#ifndef HANDHELD
    174174        cbSaveState->setChecked(settings->value("SavePos", DEF_SAVEPOS).toBool());
    175 #endif // Q_OS_WINCE
     175#endif // HANDHELD
    176176
    177177        settings->beginGroup("Task");
     
    198198        settings->endGroup();
    199199
    200 #ifndef Q_OS_WINCE
     200#ifndef Q_OS_WINCE_WM
    201201        adjustSize();
    202 #endif // Q_OS_WINCE
     202#endif // Q_OS_WINCE_WM
    203203}
    204204
     
    248248                        return;
    249249        }
    250 #if !defined(Q_OS_WINCE) && !defined(Q_OS_SYMBIAN)
     250#ifndef HANDHELD
    251251        settings->setValue("SavePos", cbSaveState->isChecked());
    252 #endif // Q_OS_WINCE
     252#endif // HANDHELD
    253253#ifdef Q_OS_WIN32
    254254        if (QtWin::isCompositionEnabled()) {
     
    304304}
    305305
    306 #ifdef Q_OS_WINCE
     306#ifdef Q_OS_WINCE_WM
    307307void SettingsDialog::desktopResized(int screen)
    308308{
     
    336336        QWidget::showEvent(ev);
    337337}
    338 #endif // Q_OS_WINCE
     338#endif // Q_OS_WINCE_WM
    339339
    340340void SettingsDialog::spinRandMinValueChanged(int val) {
     
    342342}
    343343
    344 #if !defined(Q_OS_WINCE) && !defined(Q_OS_SYMBIAN)
     344#ifndef HANDHELD
    345345bool SettingsDialog::event(QEvent *ev)
    346346{
     
    358358                return QDialog::event(ev);
    359359}
    360 #endif // Q_OS_WINCE
     360#endif // HANDHELD
Note: See TracChangeset for help on using the changeset viewer.