Changeset 356169a3d3 in tspsg
- Timestamp:
- Jul 11, 2012, 6:46:48 PM (12 years ago)
- Branches:
- appveyor, imgbot, master, readme
- Children:
- ff8d0488a0
- Parents:
- c90b437dd8
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.cpp
rc90b437dd8 r356169a3d3 48 48 #include "ui_qttoolbardialog.h" 49 49 #include <QtCore/QSet> 50 #include <QtGui/QAction> 51 #include <QtGui/QToolBar> 52 #include <QtGui/QMainWindow> 50 #if QT_VERSION < QT_VERSION_CHECK(5,0,0) 51 # include <QtGui/QAction> 52 # include <QtGui/QToolBar> 53 # include <QtGui/QMainWindow> 54 # include <QtGui/QHeaderView> 55 # include <QtGui/QPushButton> 56 #else 57 # include <QtWidgets/QAction> 58 # include <QtWidgets/QToolBar> 59 # include <QtWidgets/QMainWindow> 60 # include <QtWidgets/QHeaderView> 61 # include <QtWidgets/QPushButton> 62 #endif 53 63 #include <QtGui/QShowEvent> 54 64 #include <QtGui/QHideEvent> 55 #include <QtGui/QHeaderView>56 #include <QtGui/QPushButton>57 65 58 66 #ifndef GET_ICON 59 # if QT_VERSION >= 0x04060067 # if QT_VERSION >= QT_VERSION_CHECK(4,6,0) 60 68 # define GET_ICON(x) QIcon::fromTheme(x, QIcon(":/images/icons/128x128/"x".png")) 61 69 # else -
src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.h
rc90b437dd8 r356169a3d3 48 48 #define QTTOOLBARDIALOG_H 49 49 50 #include <QtGui/QDialog> 50 #include <QtCore> 51 52 #if QT_VERSION < QT_VERSION_CHECK(5,0,0) 53 # include <QtGui/QDialog> 54 #else 55 # include <QtWidgets/QDialog> 56 #endif 51 57 52 58 #if defined(Q_WS_WIN) -
src/globals.h
rc90b437dd8 r356169a3d3 31 31 // INCLUDES 32 32 #include <QtCore> 33 #if QT_VERSION < 0x04050033 #if QT_VERSION < QT_VERSION_CHECK(4,5,0) 34 34 # error You are using Qt version < 4.5 but minimum required version is 4.5.0. Compilation aborted. 35 35 #endif … … 46 46 # include <QtSvg> 47 47 #endif // NOSVG 48 #if QT_VERSION >= QT_VERSION_CHECK(5,0,0) 49 # include <QtConcurrent> 50 # include <QtPrintSupport> 51 #endif 48 52 49 53 #ifndef HANDHELD … … 160 164 #endif 161 165 162 #if QT_VERSION >= 0x040600166 #if QT_VERSION >= QT_VERSION_CHECK(4,6,0) 163 167 # define GET_ICON(x) QIcon::fromTheme(x, QIcon(":/images/icons/"ICON_SIZE"/"x"."ICON_FORMAT)) 164 168 #else -
src/main.cpp
rc90b437dd8 r356169a3d3 23 23 24 24 #include "mainwindow.h" 25 #if QT_VERSION < 0x04060025 #if QT_VERSION < QT_VERSION_CHECK(4,6,0) 26 26 # ifdef Q_CC_MSVC 27 27 # pragma message("WARNING: You are using Qt version < 4.6. Application will not support some non-critical features.") … … 49 49 app.setOverrideCursor(QCursor(Qt::WaitCursor)); 50 50 QTextCodec::setCodecForLocale(QTextCodec::codecForName("utf8")); 51 #if QT_VERSION < QT_VERSION_CHECK(5,0,0) 51 52 QTextCodec::setCodecForCStrings(QTextCodec::codecForName("utf8")); 52 53 QTextCodec::setCodecForTr(QTextCodec::codecForName("utf8")); 54 #endif 53 55 app.setOrganizationName("Oleksii Serdiuk"); 54 56 app.setOrganizationDomain("oleksii.name"); -
src/mainwindow.cpp
rc90b437dd8 r356169a3d3 1304 1304 QColor hilight; 1305 1305 if (color.value() < 192) 1306 hilight.setHsv(color.hue(), color.saturation(), 127 + qRound(color.value() / 2));1306 hilight.setHsv(color.hue(), color.saturation(), 127 + (color.value() / 2)); 1307 1307 else 1308 1308 hilight.setHsv(color.hue(), color.saturation(), color.value() / 2); … … 1362 1362 a->setStatusTip(language.at(3)); 1363 1363 #endif 1364 #if QT_VERSION >= 0x0406001364 #if QT_VERSION >= QT_VERSION_CHECK(4,6,0) 1365 1365 a->setIcon(QIcon::fromTheme(QString("flag-%1").arg(language.at(1)), QIcon(QString(":/images/icons/l10n/flag-%1.png").arg(language.at(1))))); 1366 1366 #else … … 1682 1682 #ifndef HANDHELD 1683 1683 menuSettingsLanguage->setIcon(GET_ICON("preferences-desktop-locale")); 1684 #if QT_VERSION >= 0x0406001684 #if QT_VERSION >= QT_VERSION_CHECK(4,6,0) 1685 1685 actionSettingsLanguageEnglish->setIcon(QIcon::fromTheme("flag-gb", QIcon(":/images/icons/l10n/flag-gb.png"))); 1686 #else // QT_VERSION >= 0x0406001686 #else 1687 1687 actionSettingsLanguageEnglish->setIcon(QIcon(":/images/icons/l10n/flag-gb.png")); 1688 #endif // QT_VERSION >= 0x0406001688 #endif // QT_VERSION >= QT_VERSION_CHECK(4,6,0) 1689 1689 menuSettingsStyle->setIcon(GET_ICON("preferences-desktop-theme")); 1690 1690 #endif // HANDHELD … … 1697 1697 actionHelpReportBug->setIcon(GET_ICON("tools-report-bug")); 1698 1698 actionHelpAbout->setIcon(GET_ICON("help-about")); 1699 #if QT_VERSION < QT_VERSION_CHECK(5,0,0) 1699 1700 actionHelpAboutQt->setIcon(QIcon(":/trolltech/qmessagebox/images/qtlogo-64.png")); 1700 #endif 1701 #else 1702 actionHelpAboutQt->setIcon(QIcon(":/qt-project.org/qmessagebox/images/qtlogo-64.png")); 1703 #endif // QT_VERSION < QT_VERSION_CHECK(5,0,0) 1704 #endif // HANDHELD 1701 1705 // Buttons 1702 1706 buttonRandom->setIcon(GET_ICON("roll")); … … 1707 1711 // action->setIcon(GET_ICON("")); 1708 1712 1709 #if QT_VERSION >= 0x0406001713 #if QT_VERSION >= QT_VERSION_CHECK(4,6,0) 1710 1714 setToolButtonStyle(Qt::ToolButtonFollowStyle); 1711 1715 #endif … … 1756 1760 actionFilePageSetup->setObjectName("actionFilePrintSetup"); 1757 1761 // actionFilePageSetup->setEnabled(false); 1758 #if QT_VERSION >= 0x0406001762 #if QT_VERSION >= QT_VERSION_CHECK(4,6,0) 1759 1763 actionFilePageSetup->setIcon(QIcon::fromTheme("document-page-setup", QIcon(":/trolltech/dialogs/qprintpreviewdialog/images/page-setup-32.png"))); 1760 1764 #else -
src/settingsdialog.cpp
rc90b437dd8 r356169a3d3 258 258 #endif 259 259 260 #if !defined(NOSVG) && (QT_VERSION >= 0x040500)260 #if !defined(NOSVG) && (QT_VERSION >= QT_VERSION_CHECK(4,5,0)) 261 261 comboGraphImageFormat->addItem("svg"); 262 #endif // NOSVG && QT_VERSION >= 0x040500262 #endif 263 263 // We create whitelist of formats, supported by the most popular web browsers according to 264 264 // http://en.wikipedia.org/wiki/Comparison_of_web_browsers#Image_format_support -
tspsg.pro
rc90b437dd8 r356169a3d3 15 15 } else { 16 16 DEFINES += NOSVG 17 } 18 19 greaterThan(QT_MAJOR_VERSION, 4) { 20 QT += printsupport concurrent 17 21 } 18 22
Note: See TracChangeset
for help on using the changeset viewer.