summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-10-18 02:29:26 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-10-18 02:29:56 -0700
commit0d6fc382050f1f2efa10ff00e34a18706a350a4e (patch)
treec6b29505d5b8a499efc71b6bd5a4b560cb06163a /main.cpp
parentb266e59f1140951fd946dadcf485bce40530b16b (diff)
poi-yelp: fix up formating in source
Fix the mixing of tabs and 4 space indents in all source files. Bug-AGL: SPEC-2880 Change-Id: Ib02b5b9d2c65f252ba9b981be6fed23e8c111e66 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/main.cpp b/main.cpp
index a43e37b..77e910f 100644
--- a/main.cpp
+++ b/main.cpp
@@ -18,7 +18,7 @@ MainApp *mainapp;
void SyncDrawHandler(json_object *object)
{
- qwm->endDraw(graphic_role);
+ qwm->endDraw(graphic_role);
}
void TapShortcutHandler(json_object *object)
@@ -33,12 +33,12 @@ int main(int argc, char *argv[], char *env[])
QString credentialsFile(DEFAULT_CREDENTIALS_FILE);
qwm = new QLibWindowmanager();
hs = new LibHomeScreen();
- graphic_role = QString("poi");
+ graphic_role = QString("poi");
- QString pt = QString(argv[1]);
- int port = pt.toInt();
- QString secret = QString(argv[2]);
- std::string token = secret.toStdString();
+ QString pt = QString(argv[1]);
+ int port = pt.toInt();
+ QString secret = QString(argv[2]);
+ std::string token = secret.toStdString();
if (qwm->init(port, secret) != 0) {
exit(EXIT_FAILURE);
@@ -49,13 +49,13 @@ int main(int argc, char *argv[], char *env[])
exit(EXIT_FAILURE);
}
- qwm->set_event_handler(QLibWindowmanager::Event_SyncDraw, SyncDrawHandler);
+ qwm->set_event_handler(QLibWindowmanager::Event_SyncDraw, SyncDrawHandler);
mainapp = new MainApp();
- hs->init(port, token.c_str());
+ hs->init(port, token.c_str());
- hs->set_event_handler(LibHomeScreen::Event_TapShortcut, TapShortcutHandler);
+ hs->set_event_handler(LibHomeScreen::Event_TapShortcut, TapShortcutHandler);
//force setting
mainapp->setInfoScreen(true);
@@ -81,7 +81,7 @@ int main(int argc, char *argv[], char *env[])
if (mainapp->StartMonitoringUserInput() < 0)
return -1;
- qwm->activateWindow(graphic_role);
+ qwm->activateWindow(graphic_role);
/* main loop: */
return a.exec();