mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-17 00:07:51 +00:00
21 lines
593 B
C++
21 lines
593 B
C++
|
#include <QApplication>
|
||
|
#include <QQmlApplicationEngine>
|
||
|
|
||
|
#include "filter.h"
|
||
|
|
||
|
int main(int argc, char *argv[])
|
||
|
{
|
||
|
QApplication app(argc, argv);
|
||
|
filter *eventFilter = new filter;
|
||
|
app.installEventFilter(eventFilter);
|
||
|
|
||
|
QQmlApplicationEngine engine;
|
||
|
engine.load(QUrl(QStringLiteral("qrc:///main.qml")));
|
||
|
QObject *rootObject = engine.rootObjects().first();
|
||
|
|
||
|
QObject::connect(eventFilter, SIGNAL(ctrlPressed()), rootObject, SLOT(ctrlKeyPressed()));
|
||
|
QObject::connect(eventFilter, SIGNAL(ctrlReleased()), rootObject, SLOT(ctrlKeyReleased()));
|
||
|
|
||
|
return app.exec();
|
||
|
}
|