Changeset 119 in tspsg-svn for trunk/src/mainwindow.cpp
- Timestamp:
- May 3, 2010, 4:35:38 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.