X-Git-Url: https://git.ralfj.de/multypo.git/blobdiff_plain/f10ceadf1f116abc5b5c4ec0b0e89096de9b1430..e52cebeda021cf4e76330eabd3777ec6136720d3:/qt/main.cpp?ds=sidebyside diff --git a/qt/main.cpp b/qt/main.cpp index 281bc97..de96e68 100644 --- a/qt/main.cpp +++ b/qt/main.cpp @@ -1,24 +1,20 @@ -#include "multikbd.h" -#include +#include "multypo.h" +#include #include -#include -#include -#include - -MultiKBD *window; +MultypoWindow *window; -class QMyApplication : public QApplication +class MultypoApplication : public QApplication { public: - QMyApplication(int &argc, char **argv) + MultypoApplication(int &argc, char **argv) : QApplication(argc, argv) {} virtual bool x11EventFilter ( XEvent * event ); }; -bool QMyApplication::x11EventFilter ( XEvent * event ) +bool MultypoApplication::x11EventFilter ( XEvent * event ) { if (!window) return false; return window->handleX11Event(event); @@ -26,8 +22,8 @@ bool QMyApplication::x11EventFilter ( XEvent * event ) int main(int argc, char *argv[]) { - QMyApplication a(argc, argv); - window = new MultiKBD(); + MultypoApplication a(argc, argv); + window = new MultypoWindow(); window->setAttribute(Qt::WA_DeleteOnClose); window->show();