Changeset 143 in tspsg-svn
- Timestamp:
- Oct 13, 2010, 10:25:51 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/globals.h
r141 r143 34 34 #error You are using Qt version < 4.5 but minimum required version is 4.5.0. Compilation aborted. 35 35 #endif 36 #ifdef QT_NO_SVG 36 #if defined(Q_WS_WINCE_WM) || defined(Q_WS_S60) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR) 37 //! This is defined on handheld devices (e.g., Windows Mobile, Symbian). 38 #define HANDHELD 39 #define QT_NO_STATUSTIP 40 #endif 41 #include <QtGui> 42 #if defined(QT_NO_SVG) && !defined(NOSVG) 37 43 #define NOSVG 38 44 #endif 39 #include <QtGui>40 45 #if !defined(NOSVG) 41 46 #include <QtSvg> 42 47 #endif // NOSVG 43 44 #if defined(Q_WS_WINCE_WM) || defined(Q_WS_S60) || defined(Q_WS_MAEMO_5) || defined(Q_WS_SIMULATOR)45 //! This is defined on handheld devices (e.g., Windows Mobile, Symbian).46 #define HANDHELD47 #endif48 48 49 49 #ifndef HANDHELD -
trunk/src/mainwindow.cpp
r142 r143 1244 1244 foreach (language, langlist) { 1245 1245 a = menuSettingsLanguage->addAction(language.at(2)); 1246 #ifndef QT_NO_STATUSTIP 1246 1247 a->setStatusTip(language.at(3)); 1248 #endif 1247 1249 #if QT_VERSION >= 0x040600 1248 1250 a->setIcon(QIcon::fromTheme(QString("flag-%1").arg(language.at(1)), QIcon(QString(":/images/icons/l10n/flag-%1.png").arg(language.at(1))))); … … 1335 1337 a = menuSettingsStyle->addAction(style); 1336 1338 a->setData(false); 1339 #ifndef QT_NO_STATUSTIP 1337 1340 a->setStatusTip(tr("Set application style to %1").arg(style)); 1341 #endif 1338 1342 a->setCheckable(true); 1339 1343 a->setActionGroup(groupSettingsStyleList); … … 1440 1444 #ifndef QT_NO_STATUSTIP 1441 1445 actionFilePrintPreview->setStatusTip(tr("Preview current solution results before printing")); 1442 #endif // QT_NO_STATUSTIP1443 #ifndef QT_NO_STATUSTIP1444 1446 actionFileExit->setStatusTip(tr("Exit %1").arg(QCoreApplication::applicationName())); 1445 1447 #endif // QT_NO_STATUSTIP -
trunk/src/settingsdialog.cpp
r141 r143 38 38 39 39 buttonBox->button(QDialogButtonBox::Ok)->setIcon(GET_ICON("dialog-ok")); 40 #ifndef QT_NO_STATUSTIP 40 41 buttonBox->button(QDialogButtonBox::Ok)->setStatusTip(tr("Save new preferences")); 42 #endif 41 43 buttonBox->button(QDialogButtonBox::Ok)->setCursor(QCursor(Qt::PointingHandCursor)); 42 44 buttonBox->button(QDialogButtonBox::Cancel)->setIcon(GET_ICON("dialog-cancel")); 45 #ifndef QT_NO_STATUSTIP 43 46 buttonBox->button(QDialogButtonBox::Cancel)->setStatusTip(tr("Close without saving preferences")); 47 #endif 44 48 buttonBox->button(QDialogButtonBox::Cancel)->setCursor(QCursor(Qt::PointingHandCursor)); 45 49 … … 219 223 connect(buttonColor, SIGNAL(clicked()), SLOT(buttonColorClicked())); 220 224 setWindowFlags(windowFlags() ^ Qt::WindowContextHelpButtonHint); 221 #if ndef HANDHELD225 #if !defined(QT_NO_STATUSTIP) && !defined(HANDHELD) 222 226 // Setting initial text of dialog hint label to own status tip text. 223 227 labelHint->setText(labelHint->statusTip()); … … 459 463 } 460 464 461 #if ndef HANDHELD465 #if !defined(QT_NO_STATUSTIP) && !defined(HANDHELD) 462 466 bool SettingsDialog::event(QEvent *ev) 463 467 { -
trunk/src/settingsdialog.h
r141 r143 72 72 QLabel *labelHint; 73 73 74 #ifndef QT_NO_STATUSTIP 74 75 bool event(QEvent *ev); 76 #endif // QT_NO_STATUSTIP 75 77 #endif // Q_WS_WINCE_WM 76 78 -
trunk/tspsg.pro
r141 r143 47 47 #REVISION = 100 48 48 REVISION = $$system(svnversion) 49 REVISION = $$replace(REVISION,":","") 50 REVISION = $$replace(REVISION,"M","") 49 isEmpty(REVISION)|eval(REVISION=="exported") { 50 REVISION = 0 51 } else { 52 REVISION = $$replace(REVISION,":","") 53 REVISION = $$replace(REVISION,"M","") 54 } 51 55 win32-msvc*|wincewm* { 52 56 VERSION = $$sprintf("%1.%2",$$BUILD_VERSION_MAJOR,$$BUILD_VERSION_MINOR)
Note: See TracChangeset
for help on using the changeset viewer.