Changeset 94cd045fad in tspsg for src
- Timestamp:
- May 2, 2010, 12:51:20 PM (15 years ago)
- Branches:
- 0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
- Children:
- 7bb19df196
- Parents:
- 2bbe924ad8
- git-author:
- Oleksii Serdiuk <contacts@…> (05/02/10 12:51:20)
- git-committer:
- Oleksii Serdiuk <contacts@…> (06/29/12 19:41:43)
- Location:
- src
- Files:
-
- 49 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/globals.h
r2bbe924ad8 r94cd045fad 35 35 #include <QtSvg> 36 36 #endif // NOSVG && QT_VERSION >= 0x040500 37 #include <QtToolBarDialog> 37 38 38 39 // Version info -
src/mainwindow.cpp
r2bbe924ad8 r94cd045fad 316 316 { 317 317 QPrintDialog pd(printer,this); 318 #if QT_VERSION >= 0x040500319 // No such methods in Qt < 4.5320 pd.setOption(QAbstractPrintDialog::PrintSelection,false);321 pd.setOption(QAbstractPrintDialog::PrintPageRange,false);322 #endif323 318 if (pd.exec() != QDialog::Accepted) 324 319 return; 325 320 QApplication::setOverrideCursor(QCursor(Qt::WaitCursor)); 326 solutionText-> document()->print(printer);321 solutionText->print(printer); 327 322 QApplication::restoreOverrideCursor(); 328 323 } … … 520 515 dlg->setWindowFlags(Qt::Dialog | Qt::CustomizeWindowHint | Qt::WindowTitleHint | Qt::WindowCloseButtonHint); 521 516 dlg->setWindowTitle(tr("About %1").arg(QApplication::applicationName())); 517 dlg->setWindowIcon(QIcon(":/images/icons/help-about.png")); 522 518 dlg->setLayout(vb); 523 519 … … 1233 1229 actionFilePrintPreview->setObjectName("actionFilePrintPreview"); 1234 1230 actionFilePrintPreview->setEnabled(false); 1235 actionFilePrintPreview->setIcon(QIcon(":/images/icons/document _preview.png"));1231 actionFilePrintPreview->setIcon(QIcon(":/images/icons/document-print-preview.png")); 1236 1232 1237 1233 actionFilePrint = new QAction(this); 1238 1234 actionFilePrint->setObjectName("actionFilePrint"); 1239 1235 actionFilePrint->setEnabled(false); 1240 actionFilePrint->setIcon(QIcon(":/images/icons/ fileprint.png"));1236 actionFilePrint->setIcon(QIcon(":/images/icons/document-print.png")); 1241 1237 1242 1238 menuFile->insertAction(actionFileExit,actionFilePrintPreview); … … 1261 1257 #ifdef Q_OS_WIN32 1262 1258 actionHelpCheck4Updates = new QAction(this); 1259 actionHelpCheck4Updates->setIcon(QIcon(":/images/icons/system-software-update.png")); 1263 1260 actionHelpCheck4Updates->setEnabled(hasUpdater()); 1264 1261 menuHelp->insertAction(actionHelpAboutQt, actionHelpCheck4Updates); … … 1276 1273 } 1277 1274 #endif // Q_OS_WIN32 1275 1276 #ifndef HANDHELD 1277 toolBarManager = new QtToolBarManager; 1278 toolBarManager->setMainWindow(this); 1279 QString cat = toolBar->windowTitle(); 1280 toolBarManager->addToolBar(toolBar, cat); 1281 #ifndef QT_NO_PRINTER 1282 toolBarManager->addAction(actionFilePrintPreview, cat); 1283 #endif // QT_NO_PRINTER 1284 toolBarManager->addAction(actionHelpContents, cat); 1285 toolBarManager->addAction(actionHelpContextual, cat); 1286 // toolBarManager->addAction(action, cat); 1287 #endif // HANDHELD 1278 1288 } 1279 1289 … … 1301 1311 #endif // Q_OS_WIN32 1302 1312 } 1313 1314 #ifndef HANDHELD 1315 void MainWindow::on_actionSettingsToolbars_triggered() 1316 { 1317 QtToolBarDialog dlg(this); 1318 dlg.setToolBarManager(toolBarManager); 1319 dlg.exec(); 1320 } 1321 #endif // HANDHELD -
src/mainwindow.h
r2bbe924ad8 r94cd045fad 63 63 void actionSettingsPreferencesTriggered(); 64 64 void actionSettingsLanguageAutodetectTriggered(bool checked); 65 #ifndef HANDHELD 66 void on_actionSettingsToolbars_triggered(); 67 #endif // HANDHELD 65 68 void groupSettingsLanguageListTriggered(QAction *action); 66 69 void actionSettingsStyleSystemTriggered(bool checked); … … 91 94 QActionGroup *groupSettingsLanguageList; 92 95 QActionGroup *groupSettingsStyleList; 96 #ifndef HANDHELD 97 QtToolBarManager *toolBarManager; 98 #endif // HANDHELD 93 99 #ifndef QT_NO_PRINTER 94 100 QPrinter *printer; -
src/settingsdialog.cpp
r2bbe924ad8 r94cd045fad 35 35 setupUi(this); 36 36 37 buttonBox->button(QDialogButtonBox::Save)->setIcon(QIcon(":/images/icons/ button_ok.png"));37 buttonBox->button(QDialogButtonBox::Save)->setIcon(QIcon(":/images/icons/dialog-ok.png")); 38 38 buttonBox->button(QDialogButtonBox::Save)->setStatusTip(tr("Save new preferences")); 39 39 buttonBox->button(QDialogButtonBox::Save)->setCursor(QCursor(Qt::PointingHandCursor)); 40 buttonBox->button(QDialogButtonBox::Cancel)->setIcon(QIcon(":/images/icons/ button_cancel.png"));40 buttonBox->button(QDialogButtonBox::Cancel)->setIcon(QIcon(":/images/icons/dialog-cancel.png")); 41 41 buttonBox->button(QDialogButtonBox::Cancel)->setStatusTip(tr("Close without saving preferences")); 42 42 buttonBox->button(QDialogButtonBox::Cancel)->setCursor(QCursor(Qt::PointingHandCursor)); … … 108 108 imgIcon->setSizePolicy(QSizePolicy::Fixed,QSizePolicy::Expanding); 109 109 imgIcon->setFrameShape(QFrame::NoFrame); 110 imgIcon->setPixmap(QPixmap(":/images/icons/preferences _system.png"));110 imgIcon->setPixmap(QPixmap(":/images/icons/preferences-system.png")); 111 111 imgIcon->setStyleSheet("background-color: #0080C0; padding-top: 11px;"); 112 112 imgIcon->setAlignment(Qt::AlignTop | Qt::AlignHCenter);
Note: See TracChangeset
for help on using the changeset viewer.