X-Git-Url: https://git.ralfj.de/multypo.git/blobdiff_plain/f10ceadf1f116abc5b5c4ec0b0e89096de9b1430:/qt/multikbd.cpp..1d03d11fb0aa8e3418597e7c1ab38f2b28d48924:/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 fb30f21..6e461e3 100644 --- a/qt/multikbd.cpp +++ b/qt/multypo.cpp @@ -1,5 +1,4 @@ -#include "multikbd.h" -#include "ui_multikbd.h" +#include "multypo.h" #include #include @@ -8,20 +7,18 @@ #include #include -MultiKBD::MultiKBD(QWidget *parent) : +MultypoWindow::MultypoWindow(QWidget *parent) : QWidget(parent), - ui(new Ui::MultiKBD), xiInited(false) { - ui->setupUi(this); + } -MultiKBD::~MultiKBD() +MultypoWindow::~MultypoWindow() { - delete ui; } -void MultiKBD::showEvent ( QShowEvent * ) +void MultypoWindow::showEvent ( QShowEvent * ) { if (xiInited) return; @@ -59,12 +56,12 @@ void MultiKBD::showEvent ( QShowEvent * ) setFocus(Qt::OtherFocusReason);*/ } -void MultiKBD::handleKeyPress(int device, QString string) +void MultypoWindow::handleKeyPress(int device, QString string) { qDebug() << "Device" << device << "String" << string; } -bool MultiKBD::handleX11Event(XEvent *event) +bool MultypoWindow::handleX11Event(XEvent *event) { if (!xiInited) return false; Display *dpy = x11Info().display();