projects
/
multypo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow passing words file as argument
[multypo.git]
/
qt
/
main.cpp
diff --git
a/qt/main.cpp
b/qt/main.cpp
index 281bc971d6aa837a39cfd9a782a2a2f105f18a44..de96e688983d15205f80e029ce81428086fa36da 100644
(file)
--- a/
qt/main.cpp
+++ b/
qt/main.cpp
@@
-1,24
+1,20
@@
-#include "multikbd.h"
-#include <QApplication>
+#include "multypo.h"
+#include <QApplication>
#include <QDebug>
#include <QDebug>
-#include <X11/Xlib.h>
-#include <X11/extensions/XInput2.h>
-#include <X11/Xutil.h>
-
-MultiKBD *window;
+MultypoWindow *window;
-class
QMy
Application : public QApplication
+class
Multypo
Application : public QApplication
{
public:
{
public:
-
QMy
Application(int &argc, char **argv)
+
Multypo
Application(int &argc, char **argv)
: QApplication(argc, argv) {}
virtual bool x11EventFilter ( XEvent * event );
};
: QApplication(argc, argv) {}
virtual bool x11EventFilter ( XEvent * event );
};
-bool
QMy
Application::x11EventFilter ( XEvent * event )
+bool
Multypo
Application::x11EventFilter ( XEvent * event )
{
if (!window) return false;
return window->handleX11Event(event);
{
if (!window) return false;
return window->handleX11Event(event);
@@
-26,8
+22,8
@@
bool QMyApplication::x11EventFilter ( XEvent * event )
int main(int argc, char *argv[])
{
int main(int argc, char *argv[])
{
-
QMy
Application a(argc, argv);
- window = new Mult
iKBD
();
+
Multypo
Application a(argc, argv);
+ window = new Mult
ypoWindow
();
window->setAttribute(Qt::WA_DeleteOnClose);
window->show();
window->setAttribute(Qt::WA_DeleteOnClose);
window->show();