Changeset ccdffe3a5f in tspsg
- Timestamp:
- Mar 31, 2013, 6:31:10 PM (12 years ago)
- Branches:
- 0.1.4.170-beta2-bb10
- Children:
- 628500a5d6
- Parents:
- 95b0ef73dc
- git-author:
- Oleksii Serdiuk <contacts@…> (03/31/13 18:31:10)
- git-committer:
- Oleksii Serdiuk <contacts@…> (03/31/13 21:45:38)
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mainwindow.cpp
r95b0ef73dc rccdffe3a5f 90 90 connect(actionFileSaveAsTask, SIGNAL(triggered()), SLOT(actionFileSaveAsTaskTriggered())); 91 91 connect(actionFileSaveAsSolution, SIGNAL(triggered()), SLOT(actionFileSaveAsSolutionTriggered())); 92 #ifndef QT_NO_PRINT ER92 #ifndef QT_NO_PRINTDIALOG 93 93 connect(actionFilePrintPreview, SIGNAL(triggered()), SLOT(actionFilePrintPreviewTriggered())); 94 94 connect(actionFilePageSetup, SIGNAL(triggered()), SLOT(actionFilePageSetupTriggered())); … … 376 376 } 377 377 378 #ifndef QT_NO_PRINT ER378 #ifndef QT_NO_PRINTDIALOG 379 379 void MainWindow::actionFilePrintPreviewTriggered() 380 380 { … … 434 434 QApplication::restoreOverrideCursor(); 435 435 } 436 #endif // QT_NO_PRINT ER436 #endif // QT_NO_PRINTDIALOG 437 437 438 438 void MainWindow::actionSettingsPreferencesTriggered() … … 693 693 #ifndef HANDHELD 694 694 dlg->resize(450, 350); 695 #elif defined(Q_OS_BLACKBERRY) 696 dlg->setWindowState(Qt::WindowMaximized); 695 697 #endif 696 698 QApplication::restoreOverrideCursor(); … … 1549 1551 loadToolbarList(); 1550 1552 1551 #ifndef QT_NO_PRINT ER1553 #ifndef QT_NO_PRINTDIALOG 1552 1554 actionFilePrintPreview->setText(tr("P&rint Preview...")); 1553 1555 #ifndef QT_NO_TOOLTIP … … 1573 1575 actionFilePrint->setStatusTip(tr("Print current solution results")); 1574 1576 #endif // QT_NO_STATUSTIP 1577 #ifndef QT_NO_SHORTCUT 1575 1578 actionFilePrint->setShortcut(tr("Ctrl+P")); 1576 #endif // QT_NO_PRINTER 1579 #endif // QT_NO_SHORTCUT 1580 #endif // QT_NO_PRINTDIALOG 1577 1581 1578 1582 #ifndef QT_NO_STATUSTIP … … 1729 1733 solutionText->setWordWrapMode(QTextOption::WordWrap); 1730 1734 1731 #ifndef QT_NO_PRINT ER1735 #ifndef QT_NO_PRINTDIALOG 1732 1736 actionFilePrintPreview = new QAction(this); 1733 1737 actionFilePrintPreview->setObjectName("actionFilePrintPreview"); … … 1755 1759 1756 1760 toolBarMain->insertAction(actionSettingsPreferences, actionFilePrint); 1757 #endif // QT_NO_PRINT ER1761 #endif // QT_NO_PRINTDIALOG 1758 1762 1759 1763 groupSettingsLanguageList = new QActionGroup(this); … … 1828 1832 actionFileSaveAsSolution->setEnabled(enable); 1829 1833 solutionText->setEnabled(enable); 1830 #ifndef QT_NO_PRINT ER1834 #ifndef QT_NO_PRINTDIALOG 1831 1835 actionFilePrint->setEnabled(enable); 1832 1836 actionFilePrintPreview->setEnabled(enable); 1833 #endif // QT_NO_PRINT ER1837 #endif // QT_NO_PRINTDIALOG 1834 1838 } 1835 1839 -
src/mainwindow.h
r95b0ef73dc rccdffe3a5f 62 62 void actionFileSaveAsTaskTriggered(); 63 63 void actionFileSaveAsSolutionTriggered(); 64 #ifndef QT_NO_PRINT ER64 #ifndef QT_NO_PRINTDIALOG 65 65 void actionFilePrintPreviewTriggered(); 66 66 void actionFilePageSetupTriggered(); 67 67 void actionFilePrintTriggered(); 68 #endif // QT_NO_PRINT ER68 #endif // QT_NO_PRINTDIALOG 69 69 void actionSettingsPreferencesTriggered(); 70 70 void actionSettingsLanguageAutodetectTriggered(bool checked); … … 109 109 #ifndef QT_NO_PRINTER 110 110 QPrinter *printer; 111 #ifndef QT_NO_PRINTDIALOG 111 112 QAction *actionFilePrintPreview; 112 113 QAction *actionFilePageSetup; 113 114 QAction *actionFilePrint; 115 #endif // QT_NO_PRINTDIALOG 114 116 #endif // QT_NO_PRINTER 115 117 QAction *actionHelpCheck4Updates; -
src/settingsdialog.cpp
r95b0ef73dc rccdffe3a5f 419 419 void SettingsDialog::buttonFontClicked() 420 420 { 421 bool ok; 422 QFont font = QFontDialog::getFont(&ok,this->font,this); 423 if (ok && (this->font != font)) { 424 this->font = font; 425 _newFont = true; 426 } 421 QFontDialog fd(font, this); 422 #ifdef Q_OS_BLACKBERRY 423 fd.setWindowState(Qt::WindowMaximized); 424 #endif 425 if ((fd.exec() != QDialog::Accepted) || (fd.selectedFont() == font)) 426 return; 427 font = fd.selectedFont(); 428 _newFont = true; 427 429 } 428 430 -
tspsg.pro
r95b0ef73dc rccdffe3a5f 19 19 wincewm*|symbian|maemo*|simulator|blackberry { 20 20 CONFIG += handheld 21 } 22 blackberry { 23 # DEFINES += QT_NO_SHORTCUT 24 DEFINES += QT_NO_PRINTDIALOG 25 DEFINES += QT_NO_PRINTPREVIEWDIALOG 21 26 } 22 27
Note: See TracChangeset
for help on using the changeset viewer.