Changeset 232


Ignore:
Timestamp:
Oct 16, 2009, 6:11:08 PM (15 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
  • TabularUnified trunk/tools/linguist/linguist/mainwindow.cpp

    r2 r232  
    877877void MainWindow::print()
    878878{
     879#ifndef QT_NO_PRINTER
    879880    int pageNum = 0;
    880881    QPrintDialog dlg(&m_printer, this);
     
    954955        statusBar()->showMessage(tr("Printing aborted"), MessageMS);
    955956    }
     957#endif
    956958}
    957959
     
    12301232void MainWindow::printPhraseBook(QAction *action)
    12311233{
     1234#ifndef QT_NO_PRINTER
    12321235    PhraseBook *phraseBook = m_phraseBookMenu[PhrasePrintMenu].value(action);
    12331236
     
    12611264        statusBar()->showMessage(tr("Printing aborted"), MessageMS);
    12621265    }
     1266#endif
    12631267}
    12641268
     
    26222626bool MainWindow::eventFilter(QObject *object, QEvent *event)
    26232627{
     2628#ifndef QT_NO_DRAGANDDROP
    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)
  • TabularUnified trunk/tools/linguist/linguist/mainwindow.h

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

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

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