Changeset 356169a3d3 in tspsg for src/mainwindow.cpp
- Timestamp:
- Jul 11, 2012, 6:46:48 PM (12 years ago)
- Branches:
- appveyor, imgbot, master, readme
- Children:
- ff8d0488a0
- Parents:
- c90b437dd8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.