-rw-r--r-- | libopie2/opieui/otimepicker.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/libopie2/opieui/otimepicker.h b/libopie2/opieui/otimepicker.h index 2da7773..01bb557 100644 --- a/libopie2/opieui/otimepicker.h +++ b/libopie2/opieui/otimepicker.h @@ -33,5 +33,5 @@ /* OPIE */ #include <opie2/oclickablelabel.h> -#include "otimepickerbase.h" +#include <opie2/otimepickerbase.h> /* QT */ @@ -41,8 +41,7 @@ #include <qdialog.h> -using namespace Opie; -// namespace Opie -// { +namespace Opie { +namespace Ui { /** @@ -115,4 +114,5 @@ public slots: private: + OTimePicker *m_timePicker; QTime m_time; class Private; @@ -120,6 +120,13 @@ private: }; -// }; +} +} +/* for Qt2 */ +#if ( QT_VERSION-0 >= 0x030000 ) +#error "Fix the UI File to use namespaces" +#else +typedef Opie::Ui::OTimePicker OUIOTimePicker; +#endif #endif |