Changeset 232 for trunk


Ignore:
Timestamp:
Oct 16, 2009, 6:11:08 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

tools: linguist: Added #ifndef QT_NO_PRINTER / QT_NO_DRAGANDDROP to make it build on OS/2.

Location:
trunk/tools/linguist/linguist
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/linguist/linguist/mainwindow.cpp

    r2 r232  
    877877void MainWindow::print()
    878878{
     879
    879880    int pageNum = 0;
    880881    QPrintDialog dlg(&m_printer, this);
     
    954955        statusBar()->showMessage(tr("Printing aborted"), MessageMS);
    955956    }
     957
    956958}
    957959
     
    12301232void MainWindow::printPhraseBook(QAction *action)
    12311233{
     1234
    12321235    PhraseBook *phraseBook = m_phraseBookMenu[PhrasePrintMenu].value(action);
    12331236
     
    12611264        statusBar()->showMessage(tr("Printing aborted"), MessageMS);
    12621265    }
     1266
    12631267}
    12641268
     
    26222626bool MainWindow::eventFilter(QObject *object, QEvent *event)
    26232627{
     2628
    26242629    if (event->type() == QEvent::DragEnter) {
    26252630        QDragEnterEvent *e = static_cast<QDragEnterEvent*>(event);
     
    26402645        e->acceptProposedAction();
    26412646        return true;
    2642     } else if (event->type() == QEvent::KeyPress) {
     2647    } else
     2648#endif
     2649    if (event->type() == QEvent::KeyPress) {
    26432650        if (static_cast<QKeyEvent *>(event)->key() == Qt::Key_Escape) {
    26442651            if (object == m_messageEditor)
  • trunk/tools/linguist/linguist/mainwindow.h

    r2 r232  
    229229    QList<PhraseBook *> m_phraseBooks;
    230230    QMap<QAction *, PhraseBook *> m_phraseBookMenu[3];
     231
    231232    QPrinter m_printer;
     233
    232234
    233235    FindDialog *m_findDialog;
  • trunk/tools/linguist/linguist/printout.cpp

    r2 r232  
    4646
    4747QT_BEGIN_NAMESPACE
     48
     49
    4850
    4951PrintOut::PrintOut(QPrinter *printer)
     
    208210}
    209211
     212
     213
    210214QT_END_NAMESPACE
  • trunk/tools/linguist/linguist/printout.h

    r2 r232  
    5454class QPrinter;
    5555class QFontMetrics;
     56
     57
    5658
    5759class PrintOut
     
    116118};
    117119
     120
     121
    118122QT_END_NAMESPACE
    119123
Note: See TracChangeset for help on using the changeset viewer.