Changeset 9adbc413c7 in tspsg
- Timestamp:
- Oct 13, 2010, 10:25:51 PM (14 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- 760f2aae97
- Parents:
- 88a59e4d65
- git-author:
- Oleksii Serdiuk <contacts@…> (10/13/10 22:25:51)
- git-committer:
- Oleksii Serdiuk <contacts@…> (06/29/12 19:45:58)
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/globals.h
r88a59e4d65 r9adbc413c7 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 -
src/mainwindow.cpp
r88a59e4d65 r9adbc413c7 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 -
src/settingsdialog.cpp
r88a59e4d65 r9adbc413c7 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 { -
src/settingsdialog.h
r88a59e4d65 r9adbc413c7 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 -
tspsg.pro
r88a59e4d65 r9adbc413c7 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.