From fa88de4d591c09d750afd42db0b8bc5bef9bf5c7 Mon Sep 17 00:00:00 2001 From: Jari Jarvi Date: Mon, 12 Jul 2010 14:06:25 +0300 Subject: [PATCH] Conditional compilation for Maemo 5 specific code --- src/selectremotedlg.cpp | 2 ++ src/settingsdlg.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/selectremotedlg.cpp b/src/selectremotedlg.cpp index d13fb92..7bd3f80 100644 --- a/src/selectremotedlg.cpp +++ b/src/selectremotedlg.cpp @@ -74,7 +74,9 @@ void SelectRemoteDlg::setDB(RemoteDB *db) void SelectRemoteDlg::setBusy(bool busy) { +#ifdef Q_WS_MAEMO_5 setAttribute(Qt::WA_Maemo5ShowProgressIndicator, busy); +#endif setEnabled(!busy); } diff --git a/src/settingsdlg.cpp b/src/settingsdlg.cpp index e9b9b11..84c72ea 100644 --- a/src/settingsdlg.cpp +++ b/src/settingsdlg.cpp @@ -101,7 +101,9 @@ SettingsDlg::~SettingsDlg() void SettingsDlg::setBusy(bool busy) { +#ifdef Q_WS_MAEMO_5 setAttribute(Qt::WA_Maemo5ShowProgressIndicator, busy); +#endif m_busy = busy; } -- 1.7.9.5