diff options
author | 2018-11-21 11:05:40 +0900 | |
---|---|---|
committer | 2018-11-21 11:05:40 +0900 | |
commit | 5b530ac0e2ec4abe54a2c64274b36b480ed13e25 (patch) | |
tree | 21124b5c278b097c13d71b08d59816d2ccad2d96 /app/main.cpp | |
parent | ca756b3f04bb2cb89e0f1f19e197dfa6a809be8d (diff) |
change camera sizesandbox/zheng_wenlong/camapp
Diffstat (limited to 'app/main.cpp')
-rw-r--r-- | app/main.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/app/main.cpp b/app/main.cpp index 6fd928d..c92f251 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -37,7 +37,7 @@ int main(int argc, char *argv[]) { - QString myname = QString("camapp"); + QString myname = QString("camera"); QGuiApplication app(argc, argv); app.setApplicationName(myname); @@ -101,16 +101,7 @@ int main(int argc, char *argv[]) hs->init(port, token.c_str()); // Set the event handler for Event_TapShortcut which will activate the surface for windowmanager hs->set_event_handler(LibHomeScreen::Event_TapShortcut, [qwm, myname](json_object *object){ - json_object *appnameJ = nullptr; - if(json_object_object_get_ex(object, "application_name", &appnameJ)) - { - const char *appname = json_object_get_string(appnameJ); - if(QString::compare(myname, appname, Qt::CaseInsensitive) == 0) - { - qDebug("Surface %s got tapShortcut\n", appname); - qwm->activateSurface(myname); - } - } + qwm->activateSurface(myname); }); #endif engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); |