- Timestamp:
- May 3, 2010, 4:35:38 PM (15 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/3rdparty/qttoolbardialog-2.2_1-opensource/src/images/icons/go-up.png
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/tags/0.1.2.100-alpha2/resources/icons/go-up.png 102
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
trunk/src/3rdparty/qttoolbardialog-2.2_1-opensource/src/qttoolbardialog.qrc
r118 r119 3 3 <file>images/icons/go-down.png</file> 4 4 <file>images/icons/go-next.png</file> 5 <file>images/icons/go- previous.png</file>5 <file>images/icons/go-up.png</file> 6 6 <file>images/icons/list-add.png</file> 7 7 <file>images/icons/list-remove.png</file> -
trunk/src/defaults.h
r116 r119 78 78 #define DEF_SCROLL_TO_END false 79 79 /*! 80 * \def DEF_FONT_FAMILY81 * \brief Default font name.82 */83 #ifdef Q_OS_WINCE_WM84 #define DEF_FONT_FAMILY "Tahoma"85 #else86 #define DEF_FONT_FAMILY "monospace"87 #endif // Q_OS_WINCE_WM88 /*!89 80 * \def DEF_FONT_SIZE 90 81 * \brief Default font size -
trunk/src/globals.h
r118 r119 108 108 } 109 109 110 /*! 111 * \brief Returns the default font for solution output. 112 * \return The family name of the default font. 113 */ 114 inline QString getDefaultFont() 115 { 116 QFont f; 117 #ifdef HANDHELD 118 f.setStyleHint(QFont::SansSerif); 119 #else // HANDHELD 120 f.setStyleHint(QFont::TypeWriter); 121 #endif // HANDHELD 122 return f.defaultFamily(); 123 } 124 110 125 #ifdef Q_OS_WIN32 111 126 /*! -
trunk/src/mainwindow.cpp
r118 r119 621 621 pic.begin(&graph); 622 622 pic.setRenderHint(QPainter::Antialiasing); 623 pic.setFont(settings->value("Output/Font", QFont( DEF_FONT_FAMILY, 9)).value<QFont>());623 pic.setFont(settings->value("Output/Font", QFont(getDefaultFont(), 9)).value<QFont>()); 624 624 pic.setBrush(QBrush(QColor(Qt::white))); 625 625 pic.setBackgroundMode(Qt::OpaqueMode); … … 936 936 void MainWindow::initDocStyleSheet() 937 937 { 938 solutionText->document()->setDefaultFont(settings->value("Output/Font", QFont( DEF_FONT_FAMILY, DEF_FONT_SIZE)).value<QFont>());938 solutionText->document()->setDefaultFont(settings->value("Output/Font", QFont(getDefaultFont(), DEF_FONT_SIZE)).value<QFont>()); 939 939 940 940 fmt_paragraph.setTopMargin(0); … … 953 953 fmt_cell.setAlignment(Qt::AlignHCenter); 954 954 955 QColor color = settings->value("Output/Colors/Text", DEF_TEXT_COLOR).value<QColor>(); 955 settings->beginGroup("Output/Colors"); 956 957 QColor color = settings->value("Text", DEF_TEXT_COLOR).value<QColor>(); 956 958 QColor hilight; 957 959 if (color.value() < 192) … … 963 965 fmt_default.setForeground(QBrush(color)); 964 966 965 fmt_selected.setForeground(QBrush(settings->value(" Output/Colors/Selected", DEF_SELECTED_COLOR).value<QColor>()));967 fmt_selected.setForeground(QBrush(settings->value("Selected", DEF_SELECTED_COLOR).value<QColor>())); 966 968 fmt_selected.setFontWeight(QFont::Bold); 967 969 968 fmt_alternate.setForeground(QBrush(settings->value(" Output/Colors/Alternate", DEF_ALTERNATE_COLOR).value<QColor>()));970 fmt_alternate.setForeground(QBrush(settings->value("Alternate", DEF_ALTERNATE_COLOR).value<QColor>())); 969 971 fmt_alternate.setFontWeight(QFont::Bold); 970 972 fmt_altlist.setForeground(QBrush(hilight)); 973 974 settings->endGroup(); 971 975 972 976 solutionText->setTextColor(color); … … 1166 1170 loadToolbarList(); 1167 1171 1168 #ifndef HANDHELD1169 actionSettingsToolbarsConfigure->setText(tr("Configure..."));1170 actionSettingsToolbarsConfigure->setToolTip(tr("Customize toolbars"));1171 #endif // HANDHELD1172 1173 1172 #ifndef QT_NO_PRINTER 1174 1173 actionFilePrintPreview->setText(tr("P&rint Preview...")); … … 1189 1188 actionFilePrint->setShortcut(tr("Ctrl+P")); 1190 1189 #endif // QT_NO_PRINTER 1190 1191 #ifndef HANDHELD 1192 actionSettingsToolbarsConfigure->setText(tr("Configure...")); 1193 #ifndef QT_NO_STATUSTIP 1194 actionSettingsToolbarsConfigure->setStatusTip(tr("Customize toolbars")); 1195 #endif // QT_NO_STATUSTIP 1196 #endif // HANDHELD 1197 1191 1198 #ifdef Q_OS_WIN32 1192 1199 actionHelpCheck4Updates->setText(tr("Check for &Updates...")); 1193 #ifndef QT_NO_TOOLTIP1194 actionHelpCheck4Updates->setToolTip(tr("Check for %1 updates").arg(QApplication::applicationName()));1195 #endif // QT_NO_TOOLTIP1196 1200 #ifndef QT_NO_STATUSTIP 1197 1201 actionHelpCheck4Updates->setStatusTip(tr("Check for %1 updates").arg(QApplication::applicationName())); … … 1265 1269 } 1266 1270 1267 solutionText->document()->setDefaultFont(settings->value("Output/Font", QFont(DEF_FONT_FAMILY, DEF_FONT_SIZE)).value<QFont>());1271 // solutionText->document()->setDefaultFont(settings->value("Output/Font", QFont(DEF_FONT_FAMILY, DEF_FONT_SIZE)).value<QFont>()); 1268 1272 solutionText->setWordWrapMode(QTextOption::WordWrap); 1269 1273 -
trunk/src/settingsdialog.cpp
r117 r119 223 223 cbScrollToEnd->setChecked(settings->value("ScrollToEnd", DEF_SCROLL_TO_END).toBool()); 224 224 225 font = settings->value("Font", QFont(DEF_FONT_FAMILY, DEF_FONT_SIZE)).value<QFont>();225 font = settings->value("Font", QFont(getDefaultFont(), DEF_FONT_SIZE)).value<QFont>(); 226 226 color = settings->value("Colors/Text", DEF_TEXT_COLOR).value<QColor>(); 227 227 settings->endGroup(); … … 269 269 if (QApplication::keyboardModifiers() & Qt::ShiftModifier) { 270 270 if (QMessageBox::question(this, tr("Settings Reset"), tr("Do you really want to <b>reset all application settings to their defaults</b>?"), QMessageBox::RestoreDefaults | QMessageBox::Cancel) == QMessageBox::RestoreDefaults) { 271 _newFont = (font != QFont( DEF_FONT_FAMILY, DEF_FONT_SIZE));271 _newFont = (font != QFont(getDefaultFont(), DEF_FONT_SIZE)); 272 272 _newColor = (color != DEF_TEXT_COLOR); 273 273 settings->remove("");
Note: See TracChangeset
for help on using the changeset viewer.