summaryrefslogtreecommitdiff
path: root/libopie2/opiepim
authorzecke <zecke>2004-03-14 20:40:33 (UTC)
committer zecke <zecke>2004-03-14 20:40:33 (UTC)
commitb7362708c9d5a1765aa22fdcc87a9b3009cda6b9 (patch) (side-by-side diff)
treef6dc914fbc7bf86f4fc311bd80aeb1cfb03218de /libopie2/opiepim
parentfb19e9dc49a8ed0f1b85fa88ed97d357000955e1 (diff)
downloadopie-b7362708c9d5a1765aa22fdcc87a9b3009cda6b9.zip
opie-b7362708c9d5a1765aa22fdcc87a9b3009cda6b9.tar.gz
opie-b7362708c9d5a1765aa22fdcc87a9b3009cda6b9.tar.bz2
No using namespace in a public header
Diffstat (limited to 'libopie2/opiepim') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiepim/ui/opimrecurrencewidget.cpp8
-rw-r--r--libopie2/opiepim/ui/opimrecurrencewidget.h10
2 files changed, 9 insertions, 9 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
@@ -7,6 +7,8 @@
#include "opimrecurrencewidget.h"
+
+using namespace Opie;
// Global Templates for use in setting up the repeat label...
// the problem is these strings get initialized before QPEApplication can install the translator -zecke
namespace {
@@ -83,7 +85,7 @@ OPimRecurrenceWidget::OPimRecurrenceWidget( bool startOnMonday,
* @param fl The flags for window
*/
OPimRecurrenceWidget::OPimRecurrenceWidget( bool startOnMonday,
- const OPimRecurrence& rp, const QDate& startDate,
+ const Opie::OPimRecurrence& rp, const QDate& startDate,
QWidget* parent, const char* name,
bool modal, WFlags fl)
: OPimRecurrenceBase( parent, name, modal, fl ),
@@ -112,7 +114,7 @@ void OPimRecurrenceWidget::setStartDate( const QDate& date ) {
* set the recurrence
* @param rp The OPimRecurrence object with the new recurrence rules
*/
-void OPimRecurrenceWidget::setRecurrence( const OPimRecurrence& rp ) {
+void OPimRecurrenceWidget::setRecurrence( const Opie::OPimRecurrence& rp ) {
setRecurrence( rp, start );
}
@@ -121,7 +123,7 @@ void OPimRecurrenceWidget::setRecurrence( const OPimRecurrence& rp ) {
* @param rp Recurrence rule
* @param date The new start date
*/
-void OPimRecurrenceWidget::setRecurrence( const OPimRecurrence& rp, const QDate& date ) {
+void OPimRecurrenceWidget::setRecurrence( const Opie::OPimRecurrence& rp, const QDate& date ) {
start = date;
end = rp.endDate();
switch ( rp.type() ) {
diff --git a/libopie2/opiepim/ui/opimrecurrencewidget.h b/libopie2/opiepim/ui/opimrecurrencewidget.h
index 3f28565..2c315b3 100644
--- a/libopie2/opiepim/ui/opimrecurrencewidget.h
+++ b/libopie2/opiepim/ui/opimrecurrencewidget.h
@@ -17,8 +17,6 @@
#include "opimrecurrencebase.h"
-using namespace Opie;
-
/**
* A widget to let the user select rules for recurrences.
* This widget can take care of weekly, monthly, daily and yearly recurrence
@@ -37,11 +35,11 @@ public:
const char* name = 0, bool modal = TRUE,
WFlags fl = 0 );
OPimRecurrenceWidget( bool startOnMonday,
- const OPimRecurrence& rp, const QDate& start,
+ const Opie::OPimRecurrence& rp, const QDate& start,
QWidget* parent = 0, const char* name =0,
bool modal = TRUE, WFlags = 0 );
~OPimRecurrenceWidget();
- OPimRecurrence recurrence()const;
+ Opie::OPimRecurrence recurrence()const;
QDate endDate()const;
public slots:
@@ -55,8 +53,8 @@ public slots:
*/
void slotNoEnd( bool unused );
void setStartDate( const QDate& );
- void setRecurrence( const OPimRecurrence& recur, const QDate& start );
- void setRecurrence( const OPimRecurrence& recur );
+ void setRecurrence( const Opie::OPimRecurrence& recur, const QDate& start );
+ void setRecurrence( const Opie::OPimRecurrence& recur );
private slots:
void setupRepeatLabel( const QString& );