projects
/
multypo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename multixkbd -> multypo; get rid of UI magic
[multypo.git]
/
qt
/
multypo.cpp
diff --git
a/qt/multikbd.cpp
b/qt/multypo.cpp
similarity index 85%
rename from
qt/multikbd.cpp
rename to
qt/multypo.cpp
index fb30f2125bf923e4748ae6fd955a7185dcecd1aa..6e461e3abb35d461027bcdf3ac3e0be4897aff99 100644
(file)
--- a/
qt/multikbd.cpp
+++ b/
qt/multypo.cpp
@@
-1,5
+1,4
@@
-#include "multikbd.h"
-#include "ui_multikbd.h"
+#include "multypo.h"
#include <QX11Info>
#include <QDebug>
#include <QX11Info>
#include <QDebug>
@@
-8,20
+7,18
@@
#include <X11/extensions/XInput2.h>
#include <X11/Xutil.h>
#include <X11/extensions/XInput2.h>
#include <X11/Xutil.h>
-Mult
iKBD::MultiKBD
(QWidget *parent) :
+Mult
ypoWindow::MultypoWindow
(QWidget *parent) :
QWidget(parent),
QWidget(parent),
- ui(new Ui::MultiKBD),
xiInited(false)
{
xiInited(false)
{
- ui->setupUi(this);
+
}
}
-Mult
iKBD::~MultiKBD
()
+Mult
ypoWindow::~MultypoWindow
()
{
{
- delete ui;
}
}
-void Mult
iKBD
::showEvent ( QShowEvent * )
+void Mult
ypoWindow
::showEvent ( QShowEvent * )
{
if (xiInited) return;
{
if (xiInited) return;
@@
-59,12
+56,12
@@
void MultiKBD::showEvent ( QShowEvent * )
setFocus(Qt::OtherFocusReason);*/
}
setFocus(Qt::OtherFocusReason);*/
}
-void Mult
iKBD
::handleKeyPress(int device, QString string)
+void Mult
ypoWindow
::handleKeyPress(int device, QString string)
{
qDebug() << "Device" << device << "String" << string;
}
{
qDebug() << "Device" << device << "String" << string;
}
-bool Mult
iKBD
::handleX11Event(XEvent *event)
+bool Mult
ypoWindow
::handleX11Event(XEvent *event)
{
if (!xiInited) return false;
Display *dpy = x11Info().display();
{
if (!xiInited) return false;
Display *dpy = x11Info().display();