diff options
Diffstat (limited to 'korganizer/plugins/datenums')
-rw-r--r-- | korganizer/plugins/datenums/configdialog.cpp | 24 | ||||
-rw-r--r-- | korganizer/plugins/datenums/configdialog.h | 4 | ||||
-rw-r--r-- | korganizer/plugins/datenums/datenums.cpp | 12 | ||||
-rw-r--r-- | korganizer/plugins/datenums/datenums.h | 8 |
4 files changed, 24 insertions, 24 deletions
diff --git a/korganizer/plugins/datenums/configdialog.cpp b/korganizer/plugins/datenums/configdialog.cpp index d26a1fd86..3766e2ffd 100644 --- a/korganizer/plugins/datenums/configdialog.cpp +++ b/korganizer/plugins/datenums/configdialog.cpp @@ -18,10 +18,10 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#include <qlayout.h> -#include <qlabel.h> -#include <qvbuttongroup.h> -#include <qradiobutton.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqvbuttongroup.h> +#include <tqradiobutton.h> #include <klocale.h> #include <kmessagebox.h> @@ -34,20 +34,20 @@ #include "configdialog.h" #include "configdialog.moc" -ConfigDialog::ConfigDialog(QWidget *parent) +ConfigDialog::ConfigDialog(TQWidget *parent) : KDialogBase(Plain,i18n("Configure Day Numbers"),Ok|Cancel,Ok,parent) { - QFrame *topFrame = plainPage(); - QVBoxLayout *topLayout = new QVBoxLayout(topFrame,0,spacingHint()); + TQFrame *topFrame = plainPage(); + TQVBoxLayout *topLayout = new TQVBoxLayout(topFrame,0,spacingHint()); -// QLabel *label = new QLabel(i18n("Show date numbers:"),topFrame); +// TQLabel *label = new TQLabel(i18n("Show date numbers:"),topFrame); // topLayout->addWidget(label); - mDayNumGroup = new QVButtonGroup( i18n("Show Date Number"), topFrame ); + mDayNumGroup = new TQVButtonGroup( i18n("Show Date Number"), topFrame ); topLayout->addWidget( mDayNumGroup ); - new QRadioButton( i18n("Show day number"), mDayNumGroup ); - new QRadioButton( i18n("Show days to end of year"), mDayNumGroup ); - new QRadioButton( i18n("Show both"), mDayNumGroup ); + new TQRadioButton( i18n("Show day number"), mDayNumGroup ); + new TQRadioButton( i18n("Show days to end of year"), mDayNumGroup ); + new TQRadioButton( i18n("Show both"), mDayNumGroup ); load(); } diff --git a/korganizer/plugins/datenums/configdialog.h b/korganizer/plugins/datenums/configdialog.h index 15efaf049..cef3e013b 100644 --- a/korganizer/plugins/datenums/configdialog.h +++ b/korganizer/plugins/datenums/configdialog.h @@ -27,7 +27,7 @@ class ConfigDialog : public KDialogBase { Q_OBJECT public: - ConfigDialog(QWidget *parent=0); + ConfigDialog(TQWidget *parent=0); virtual ~ConfigDialog(); protected: @@ -38,7 +38,7 @@ class ConfigDialog : public KDialogBase void slotOk(); private: - QButtonGroup *mDayNumGroup; + TQButtonGroup *mDayNumGroup; }; #endif diff --git a/korganizer/plugins/datenums/datenums.cpp b/korganizer/plugins/datenums/datenums.cpp index a849f39f3..af022837e 100644 --- a/korganizer/plugins/datenums/datenums.cpp +++ b/korganizer/plugins/datenums/datenums.cpp @@ -40,7 +40,7 @@ Datenums::Datenums() mDateNum = config.readNumEntry( "ShowDayNumbers", 0 ); } -void Datenums::configure(QWidget *parent) +void Datenums::configure(TQWidget *parent) { ConfigDialog *dlg = new ConfigDialog(parent); dlg->exec(); @@ -48,12 +48,12 @@ void Datenums::configure(QWidget *parent) } -QString Datenums::shortText(const QDate &date) +TQString Datenums::shortText(const TQDate &date) { int doy = KOGlobals::self()->calendarSystem()->dayOfYear(date); switch (mDateNum) { case 1: // only days until end of year - return QString::number( KOGlobals::self()->calendarSystem()->daysInYear(date) - doy ); + return TQString::number( KOGlobals::self()->calendarSystem()->daysInYear(date) - doy ); break; case 2: // both day of year and days till end of year return i18n("dayOfYear / daysTillEndOfYear", "%1 / %2").arg( doy ) @@ -61,12 +61,12 @@ QString Datenums::shortText(const QDate &date) break; case 0: // only day of year default: - return QString::number( doy ); + return TQString::number( doy ); } - return QString::number( doy ); + return TQString::number( doy ); } -QString Datenums::info() +TQString Datenums::info() { return i18n("This plugin provides numbers of days and weeks."); } diff --git a/korganizer/plugins/datenums/datenums.h b/korganizer/plugins/datenums/datenums.h index af3e46473..f9ca7783a 100644 --- a/korganizer/plugins/datenums/datenums.h +++ b/korganizer/plugins/datenums/datenums.h @@ -19,7 +19,7 @@ #ifndef KORG_DATENUMS_H #define KORG_DATENUMS_H -#include <qstring.h> +#include <tqstring.h> #include <calendar/calendardecoration.h> @@ -30,10 +30,10 @@ class Datenums : public CalendarDecoration { Datenums(); ~Datenums() {} - void configure(QWidget *parent); - QString shortText(const QDate &); + void configure(TQWidget *parent); + TQString shortText(const TQDate &); - QString info(); + TQString info(); protected: int mDateNum; }; |