Changeset 232
- Timestamp:
- Oct 16, 2009, 6:11:08 PM (15 years ago)
- Location:
- trunk/tools/linguist/linguist
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/tools/linguist/linguist/mainwindow.cpp ¶
r2 r232 877 877 void MainWindow::print() 878 878 { 879 #ifndef QT_NO_PRINTER 879 880 int pageNum = 0; 880 881 QPrintDialog dlg(&m_printer, this); … … 954 955 statusBar()->showMessage(tr("Printing aborted"), MessageMS); 955 956 } 957 #endif 956 958 } 957 959 … … 1230 1232 void MainWindow::printPhraseBook(QAction *action) 1231 1233 { 1234 #ifndef QT_NO_PRINTER 1232 1235 PhraseBook *phraseBook = m_phraseBookMenu[PhrasePrintMenu].value(action); 1233 1236 … … 1261 1264 statusBar()->showMessage(tr("Printing aborted"), MessageMS); 1262 1265 } 1266 #endif 1263 1267 } 1264 1268 … … 2622 2626 bool MainWindow::eventFilter(QObject *object, QEvent *event) 2623 2627 { 2628 #ifndef QT_NO_DRAGANDDROP 2624 2629 if (event->type() == QEvent::DragEnter) { 2625 2630 QDragEnterEvent *e = static_cast<QDragEnterEvent*>(event); … … 2640 2645 e->acceptProposedAction(); 2641 2646 return true; 2642 } else if (event->type() == QEvent::KeyPress) { 2647 } else 2648 #endif 2649 if (event->type() == QEvent::KeyPress) { 2643 2650 if (static_cast<QKeyEvent *>(event)->key() == Qt::Key_Escape) { 2644 2651 if (object == m_messageEditor) -
TabularUnified trunk/tools/linguist/linguist/mainwindow.h ¶
r2 r232 229 229 QList<PhraseBook *> m_phraseBooks; 230 230 QMap<QAction *, PhraseBook *> m_phraseBookMenu[3]; 231 #ifndef QT_NO_PRINTER 231 232 QPrinter m_printer; 233 #endif 232 234 233 235 FindDialog *m_findDialog; -
TabularUnified trunk/tools/linguist/linguist/printout.cpp ¶
r2 r232 46 46 47 47 QT_BEGIN_NAMESPACE 48 49 #ifndef QT_NO_PRINTER 48 50 49 51 PrintOut::PrintOut(QPrinter *printer) … … 208 210 } 209 211 212 #endif // QT_NO_PRINTER 213 210 214 QT_END_NAMESPACE -
TabularUnified trunk/tools/linguist/linguist/printout.h ¶
r2 r232 54 54 class QPrinter; 55 55 class QFontMetrics; 56 57 #ifndef QT_NO_PRINTER 56 58 57 59 class PrintOut … … 116 118 }; 117 119 120 #endif // QT_NO_PRINTER 121 118 122 QT_END_NAMESPACE 119 123
Note:
See TracChangeset
for help on using the changeset viewer.