Changeset 516 for trunk/examples/dialogs


Ignore:
Timestamp:
Feb 4, 2010, 8:08:50 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

examples: Added #ifndef QT_NO_PRINTER around QPrinter-related parts to some examples to make them build on platforms with no printer support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/dialogs/licensewizard/licensewizard.cpp

    r2 r516  
    352352void ConclusionPage::printButtonClicked()
    353353{
     354#ifndef QT_NO_PRINTER
    354355    QPrinter printer;
    355356    QPrintDialog dialog(&printer, this);
     
    358359                             tr("As an environmentally friendly measure, the "
    359360                                "license text will not actually be printed."));
    360 }
     361#endif
     362}
Note: See TracChangeset for help on using the changeset viewer.