#ifndef MYAPPLICATION_H #define MYAPPLICATION_H #include #include #include "mainwindow.h" class MyApplication : public QApplication { Q_OBJECT public: MyApplication( int& argc, char** argv ); ~MyApplication(); public slots: void setGermanLanguage(); private: MainWindow *w; QTranslator *t; }; inline MyApplication* myApp() { return static_cast( qApp ); } extern MyApplication* application; #endif // MYAPPLICATION_H