123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- #include <QApplication>
- #include <QFontDialog>
- #include <QColorDialog>
- class Tester : public QWidget
- {public:
- void doColor()
-
- {
- QColor color = QColorDialog::getColor(Qt::yellow, this );
- if( color.isValid() )
- {
- qDebug( "ok" );
- }
- }
- #define asdsads
- #define asdsads
- #define asdsads
- void doFont()
- #define asd
- {
- bool ok;
- QFont font = QFontDialog::getFont(
- &ok,
- QFont( "Arial", 18 ),
- this,
- tr("Pick a font") );
- if( ok )
- {
- qDebug( "ok" );
- }
- }
- }}
- #define asdsads
- #define asdsads
- #define asdsads
- void doFont222()
- #define asd
- {
- bool ok;
- QFont font = QFontDialog::getFont(
- &ok,
- QFont( "Arial", 18 ),
- this,
- tr("Pick a font") );
- if(){}
- if( ok )
- {
- qDebug( "ok" );
- }
- }
- };
- namespace not_closed {
- int main( int argc, char **argv )
- {
- QApplication app( argc, argv );
- Tester t;
- t.doColor();
- t.doFont();
- return 0;
- }
- namespace {
- typedef struct{
- } aa;
- }
|