diff options
Diffstat (limited to 'navit/graphics/qt5/event_qt5.cpp')
-rw-r--r-- | navit/graphics/qt5/event_qt5.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/navit/graphics/qt5/event_qt5.cpp b/navit/graphics/qt5/event_qt5.cpp index 08fb6e525..e7cb1fd9f 100644 --- a/navit/graphics/qt5/event_qt5.cpp +++ b/navit/graphics/qt5/event_qt5.cpp @@ -63,7 +63,7 @@ qt5_navit_timer::qt5_navit_timer(QObject* parent) timer_type = g_hash_table_new(NULL, NULL); timer_callback = g_hash_table_new(NULL, NULL); watches = g_hash_table_new(NULL, NULL); - dbg(lvl_debug, "qt5_navit_timer object created\n"); + dbg(lvl_debug, "qt5_navit_timer object created"); } void qt5_navit_timer::watchEvent(int id) @@ -71,7 +71,7 @@ void qt5_navit_timer::watchEvent(int id) struct event_watch* ret = g_new0(struct event_watch, 1); ret = (struct event_watch*)g_hash_table_lookup(watches, (void*)(long)id); if (ret) { - dbg(lvl_debug, "callback found, calling it\n"); + dbg(lvl_debug, "callback found, calling it"); callback_call_0(ret->cb); } } @@ -80,7 +80,7 @@ void qt5_navit_timer::timerEvent(QTimerEvent* event) { int id = event->timerId(); void* multi = NULL; - // dbg(lvl_debug, "TimerEvent (%d)\n", id); + // dbg(lvl_debug, "TimerEvent (%d)", id); struct callback* cb = (struct callback*)g_hash_table_lookup(timer_callback, (void*)(long)id); if (cb) callback_call_0(cb); @@ -90,7 +90,7 @@ void qt5_navit_timer::timerEvent(QTimerEvent* event) if (((int)(long)multi) == 0) event_qt5_remove_timeout((struct event_timeout*)(long)id); } - // dbg(lvl_debug, "TimerEvent (%d) leave\n", id); + // dbg(lvl_debug, "TimerEvent (%d) leave", id); } qt5_navit_timer* qt5_timer = NULL; @@ -99,21 +99,21 @@ static void event_qt5_main_loop_run(void) { - dbg(lvl_debug, "enter\n"); + dbg(lvl_debug, "enter"); if (navit_app != NULL) navit_app->exec(); } static void event_qt5_main_loop_quit(void) { - dbg(lvl_debug, "enter\n"); + dbg(lvl_debug, "enter"); exit(0); } static struct event_watch* event_qt5_add_watch(int fd, enum event_watch_cond cond, struct callback* cb) { - dbg(lvl_debug, "enter fd=%d\n", (int)(long)fd); + dbg(lvl_debug, "enter fd=%d", (int)(long)fd); struct event_watch* ret = g_new0(struct event_watch, 1); ret->fd = fd; ret->cb = cb; @@ -126,7 +126,7 @@ event_qt5_add_watch(int fd, enum event_watch_cond cond, struct callback* cb) static void event_qt5_remove_watch(struct event_watch* ev) { - dbg(lvl_debug, "enter\n"); + dbg(lvl_debug, "enter"); g_hash_table_remove(qt5_timer->watches, GINT_TO_POINTER(ev->fd)); delete (ev->sn); g_free(ev); @@ -138,7 +138,7 @@ event_qt5_add_timeout(int timeout, int multi, struct callback* cb) int id; dbg(lvl_debug, "add timeout %d, mul %d, %p ==", timeout, multi, cb); id = qt5_timer->startTimer(timeout); - dbg(lvl_debug, "%d\n", id); + dbg(lvl_debug, "%d", id); g_hash_table_insert(qt5_timer->timer_callback, (void*)(long)id, cb); g_hash_table_insert(qt5_timer->timer_type, (void*)(long)id, (void*)(long)!!multi); return (struct event_timeout*)(long)id; @@ -147,7 +147,7 @@ event_qt5_add_timeout(int timeout, int multi, struct callback* cb) static void event_qt5_remove_timeout(struct event_timeout* to) { - dbg(lvl_debug, "remove timeout (%d)\n", (int)(long)to); + dbg(lvl_debug, "remove timeout (%d)", (int)(long)to); qt5_timer->killTimer((int)(long)to); g_hash_table_remove(qt5_timer->timer_callback, to); g_hash_table_remove(qt5_timer->timer_type, to); @@ -156,21 +156,21 @@ event_qt5_remove_timeout(struct event_timeout* to) static struct event_idle* event_qt5_add_idle(int priority, struct callback* cb) { - dbg(lvl_debug, "add idle event\n"); + dbg(lvl_debug, "add idle event"); return (struct event_idle*)event_qt5_add_timeout(0, 1, cb); } static void event_qt5_remove_idle(struct event_idle* ev) { - dbg(lvl_debug, "Remove idle timeout\n"); + dbg(lvl_debug, "Remove idle timeout"); event_qt5_remove_timeout((struct event_timeout*)ev); } static void event_qt5_call_callback(struct callback_list* cb) { - dbg(lvl_debug, "enter\n"); + dbg(lvl_debug, "enter"); } static struct event_methods event_qt5_methods = { |