From: Jari Jarvi Date: Mon, 12 Jul 2010 11:06:25 +0000 (+0300) Subject: Conditional compilation for Maemo 5 specific code X-Git-Url: http://git.maemo.org/git/?p=irwi;a=commitdiff_plain;h=fa88de4d591c09d750afd42db0b8bc5bef9bf5c7 Conditional compilation for Maemo 5 specific code --- 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; }