1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /*
- * The MiniQt Library
- *
- * Copyright (C) 1999 Sandro Sigala <ssigala@globalnet.it>
- */
- #ifndef QAPPLICATION_H
- #define QAPPLICATION_H
- #include "qobject.h"
- class QWidget;
- struct QApplicationPrivate;
- class QApplication : public QObject {
- Q_OBJECT
- public:
- QApplication(int argc, char **argv);
- ~QApplication();
- QWidget *mainWidget();
- void setMainWidget(QWidget *w);
- int exec();
- public slots:
- void quit();
- private:
- QApplicationPrivate *d;
- };
- extern QApplication *qApp;
- // In ISO C++ is not permitted to call main(), so we need this trick
- #define main qmain
- #endif // !QAPPLICATION_H
|