Changeset 143 in tspsg-svn for trunk/src/settingsdialog.cpp


Ignore:
Timestamp:
Oct 13, 2010, 10:25:51 PM (14 years ago)
Author:
laleppa
Message:

Some small tweaks...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/settingsdialog.cpp

    r141 r143  
    3838
    3939        buttonBox->button(QDialogButtonBox::Ok)->setIcon(GET_ICON("dialog-ok"));
     40#ifndef QT_NO_STATUSTIP
    4041        buttonBox->button(QDialogButtonBox::Ok)->setStatusTip(tr("Save new preferences"));
     42#endif
    4143        buttonBox->button(QDialogButtonBox::Ok)->setCursor(QCursor(Qt::PointingHandCursor));
    4244        buttonBox->button(QDialogButtonBox::Cancel)->setIcon(GET_ICON("dialog-cancel"));
     45#ifndef QT_NO_STATUSTIP
    4346        buttonBox->button(QDialogButtonBox::Cancel)->setStatusTip(tr("Close without saving preferences"));
     47#endif
    4448        buttonBox->button(QDialogButtonBox::Cancel)->setCursor(QCursor(Qt::PointingHandCursor));
    4549
     
    219223        connect(buttonColor, SIGNAL(clicked()), SLOT(buttonColorClicked()));
    220224        setWindowFlags(windowFlags() ^ Qt::WindowContextHelpButtonHint);
    221 #ifndef HANDHELD
     225#if !defined(QT_NO_STATUSTIP) && !defined(HANDHELD)
    222226        // Setting initial text of dialog hint label to own status tip text.
    223227        labelHint->setText(labelHint->statusTip());
     
    459463}
    460464
    461 #ifndef HANDHELD
     465#if !defined(QT_NO_STATUSTIP) && !defined(HANDHELD)
    462466bool SettingsDialog::event(QEvent *ev)
    463467{
Note: See TracChangeset for help on using the changeset viewer.