Conditional compilation for Maemo 5 specific code
authorJari Jarvi <t7jaja00@students.oamk.fi>
Mon, 12 Jul 2010 11:06:25 +0000 (14:06 +0300)
committerJari Jarvi <t7jaja00@students.oamk.fi>
Mon, 12 Jul 2010 11:06:25 +0000 (14:06 +0300)
src/selectremotedlg.cpp
src/settingsdlg.cpp

index d13fb92..7bd3f80 100644 (file)
@@ -74,7 +74,9 @@ void SelectRemoteDlg::setDB(RemoteDB *db)
 
 void SelectRemoteDlg::setBusy(bool busy)
 {
 
 void SelectRemoteDlg::setBusy(bool busy)
 {
+#ifdef Q_WS_MAEMO_5
     setAttribute(Qt::WA_Maemo5ShowProgressIndicator, busy);
     setAttribute(Qt::WA_Maemo5ShowProgressIndicator, busy);
+#endif
     setEnabled(!busy);
 }
 
     setEnabled(!busy);
 }
 
index e9b9b11..84c72ea 100644 (file)
@@ -101,7 +101,9 @@ SettingsDlg::~SettingsDlg()
 
 void SettingsDlg::setBusy(bool busy)
 {
 
 void SettingsDlg::setBusy(bool busy)
 {
+#ifdef Q_WS_MAEMO_5
     setAttribute(Qt::WA_Maemo5ShowProgressIndicator, busy);
     setAttribute(Qt::WA_Maemo5ShowProgressIndicator, busy);
+#endif
     m_busy = busy;
 }
 
     m_busy = busy;
 }