author | zecke <zecke> | 2004-03-14 20:40:33 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-03-14 20:40:33 (UTC) |
commit | b7362708c9d5a1765aa22fdcc87a9b3009cda6b9 (patch) (unidiff) | |
tree | f6dc914fbc7bf86f4fc311bd80aeb1cfb03218de /libopie2/opiepim/ui/opimrecurrencewidget.cpp | |
parent | fb19e9dc49a8ed0f1b85fa88ed97d357000955e1 (diff) | |
download | opie-b7362708c9d5a1765aa22fdcc87a9b3009cda6b9.zip opie-b7362708c9d5a1765aa22fdcc87a9b3009cda6b9.tar.gz opie-b7362708c9d5a1765aa22fdcc87a9b3009cda6b9.tar.bz2 |
No using namespace in a public header
Diffstat (limited to 'libopie2/opiepim/ui/opimrecurrencewidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie2/opiepim/ui/opimrecurrencewidget.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libopie2/opiepim/ui/opimrecurrencewidget.cpp b/libopie2/opiepim/ui/opimrecurrencewidget.cpp index 90c1a5f..ee7f3a3 100644 --- a/libopie2/opiepim/ui/opimrecurrencewidget.cpp +++ b/libopie2/opiepim/ui/opimrecurrencewidget.cpp | |||
@@ -4,12 +4,14 @@ | |||
4 | #include <qspinbox.h> | 4 | #include <qspinbox.h> |
5 | 5 | ||
6 | #include <qpe/timestring.h> | 6 | #include <qpe/timestring.h> |
7 | 7 | ||
8 | #include "opimrecurrencewidget.h" | 8 | #include "opimrecurrencewidget.h" |
9 | 9 | ||
10 | |||
11 | using namespace Opie; | ||
10 | // Global Templates for use in setting up the repeat label... | 12 | // Global Templates for use in setting up the repeat label... |
11 | // the problem is these strings get initialized before QPEApplication can install the translator -zecke | 13 | // the problem is these strings get initialized before QPEApplication can install the translator -zecke |
12 | namespace { | 14 | namespace { |
13 | QString strDayTemplate; | 15 | QString strDayTemplate; |
14 | QString strYearTemplate; | 16 | QString strYearTemplate; |
15 | QString strMonthDateTemplate; | 17 | QString strMonthDateTemplate; |
@@ -80,13 +82,13 @@ OPimRecurrenceWidget::OPimRecurrenceWidget( bool startOnMonday, | |||
80 | * @param parent The parent widget | 82 | * @param parent The parent widget |
81 | * @param name The name of the object | 83 | * @param name The name of the object |
82 | * @param modal | 84 | * @param modal |
83 | * @param fl The flags for window | 85 | * @param fl The flags for window |
84 | */ | 86 | */ |
85 | OPimRecurrenceWidget::OPimRecurrenceWidget( bool startOnMonday, | 87 | OPimRecurrenceWidget::OPimRecurrenceWidget( bool startOnMonday, |
86 | const OPimRecurrence& rp, const QDate& startDate, | 88 | const Opie::OPimRecurrence& rp, const QDate& startDate, |
87 | QWidget* parent, const char* name, | 89 | QWidget* parent, const char* name, |
88 | bool modal, WFlags fl) | 90 | bool modal, WFlags fl) |
89 | : OPimRecurrenceBase( parent, name, modal, fl ), | 91 | : OPimRecurrenceBase( parent, name, modal, fl ), |
90 | start( startDate ), | 92 | start( startDate ), |
91 | end( rp.endDate() ), | 93 | end( rp.endDate() ), |
92 | startWeekOnMonday( startOnMonday ) | 94 | startWeekOnMonday( startOnMonday ) |
@@ -109,22 +111,22 @@ void OPimRecurrenceWidget::setStartDate( const QDate& date ) { | |||
109 | setRecurrence( recurrence(), date ); | 111 | setRecurrence( recurrence(), date ); |
110 | } | 112 | } |
111 | /** | 113 | /** |
112 | * set the recurrence | 114 | * set the recurrence |
113 | * @param rp The OPimRecurrence object with the new recurrence rules | 115 | * @param rp The OPimRecurrence object with the new recurrence rules |
114 | */ | 116 | */ |
115 | void OPimRecurrenceWidget::setRecurrence( const OPimRecurrence& rp ) { | 117 | void OPimRecurrenceWidget::setRecurrence( const Opie::OPimRecurrence& rp ) { |
116 | setRecurrence( rp, start ); | 118 | setRecurrence( rp, start ); |
117 | } | 119 | } |
118 | 120 | ||
119 | /** | 121 | /** |
120 | * overloaded method taking OPimRecurrence and a new start date | 122 | * overloaded method taking OPimRecurrence and a new start date |
121 | * @param rp Recurrence rule | 123 | * @param rp Recurrence rule |
122 | * @param date The new start date | 124 | * @param date The new start date |
123 | */ | 125 | */ |
124 | void OPimRecurrenceWidget::setRecurrence( const OPimRecurrence& rp, const QDate& date ) { | 126 | void OPimRecurrenceWidget::setRecurrence( const Opie::OPimRecurrence& rp, const QDate& date ) { |
125 | start = date; | 127 | start = date; |
126 | end = rp.endDate(); | 128 | end = rp.endDate(); |
127 | switch ( rp.type() ) { | 129 | switch ( rp.type() ) { |
128 | default: | 130 | default: |
129 | case OPimRecurrence::NoRepeat: | 131 | case OPimRecurrence::NoRepeat: |
130 | currInterval = None; | 132 | currInterval = None; |