diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /korganizer/plugins/datenums | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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; }; |