Changeset 94cd045fad in tspsg for src/mainwindow.cpp
- 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)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.