Diffstat (limited to 'libopie2/opiepim/ui/opimrecurrencewidget.cpp') (more/less context) (show 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 @@ -1,21 +1,23 @@ #include <qapplication.h> #include <qlabel.h> #include <qpopupmenu.h> #include <qspinbox.h> #include <qpe/timestring.h> #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 { QString strDayTemplate; QString strYearTemplate; QString strMonthDateTemplate; QString strMonthDayTemplate; QString strWeekTemplate; QString dayLabel[7]; } /* @@ -74,25 +76,25 @@ OPimRecurrenceWidget::OPimRecurrenceWidget( bool startOnMonday, /** * Different constructor * @param startOnMonday Does the week start on monday? * @param rp Already set OPimRecurrence object * @param startDate The start date * @param parent The parent widget * @param name The name of the object * @param modal * @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 ), start( startDate ), end( rp.endDate() ), startWeekOnMonday( startOnMonday ) { if (strDayTemplate.isEmpty() ) fillStrings(); // do some stuff with the repeat pattern init(); setRecurrence( rp ); @@ -103,34 +105,34 @@ OPimRecurrenceWidget::~OPimRecurrenceWidget() { /** * set the start date * @param date the new start date */ void OPimRecurrenceWidget::setStartDate( const QDate& date ) { setRecurrence( recurrence(), 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 ); } /** * overloaded method taking OPimRecurrence and a new start date * @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() ) { default: case OPimRecurrence::NoRepeat: currInterval = None; setupNone(); break; case OPimRecurrence::Daily: currInterval = Day; setupDaily(); break; |