diff options
Diffstat (limited to 'libkdepim/kdatepickerpopup.cpp')
-rw-r--r-- | libkdepim/kdatepickerpopup.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/libkdepim/kdatepickerpopup.cpp b/libkdepim/kdatepickerpopup.cpp index 55715a6a7..2e28dd831 100644 --- a/libkdepim/kdatepickerpopup.cpp +++ b/libkdepim/kdatepickerpopup.cpp @@ -19,26 +19,26 @@ Boston, MA 02110-1301, USA. */ -#include <qdatetime.h> -#include <qpopupmenu.h> +#include <tqdatetime.h> +#include <tqpopupmenu.h> #include <klocale.h> #include "kdatepickerpopup.h" -KDatePickerPopup::KDatePickerPopup( int items, const QDate &date, QWidget *parent, +KDatePickerPopup::KDatePickerPopup( int items, const TQDate &date, TQWidget *parent, const char *name ) - : QPopupMenu( parent, name ) + : TQPopupMenu( parent, name ) { mItems = items; mDatePicker = new KDatePicker( this ); mDatePicker->setCloseButton( false ); - connect( mDatePicker, SIGNAL( dateEntered( QDate ) ), - SLOT( slotDateChanged( QDate ) ) ); - connect( mDatePicker, SIGNAL( dateSelected( QDate ) ), - SLOT( slotDateChanged( QDate ) ) ); + connect( mDatePicker, TQT_SIGNAL( dateEntered( TQDate ) ), + TQT_SLOT( slotDateChanged( TQDate ) ) ); + connect( mDatePicker, TQT_SIGNAL( dateSelected( TQDate ) ), + TQT_SLOT( slotDateChanged( TQDate ) ) ); mDatePicker->setDate( date ); @@ -58,17 +58,17 @@ void KDatePickerPopup::buildMenu() } if ( mItems & Words ) { - insertItem( i18n("&Today"), this, SLOT( slotToday() ) ); - insertItem( i18n("To&morrow"), this, SLOT( slotTomorrow() ) ); - insertItem( i18n("Next &Week"), this, SLOT( slotNextWeek() ) ); - insertItem( i18n("Next M&onth"), this, SLOT( slotNextMonth() ) ); + insertItem( i18n("&Today"), this, TQT_SLOT( slotToday() ) ); + insertItem( i18n("To&morrow"), this, TQT_SLOT( slotTomorrow() ) ); + insertItem( i18n("Next &Week"), this, TQT_SLOT( slotNextWeek() ) ); + insertItem( i18n("Next M&onth"), this, TQT_SLOT( slotNextMonth() ) ); if ( mItems & NoDate ) insertSeparator(); } if ( mItems & NoDate ) - insertItem( i18n("No Date"), this, SLOT( slotNoDate() ) ); + insertItem( i18n("No Date"), this, TQT_SLOT( slotNoDate() ) ); } KDatePicker *KDatePickerPopup::datePicker() const @@ -76,7 +76,7 @@ KDatePicker *KDatePickerPopup::datePicker() const return mDatePicker; } -void KDatePickerPopup::setDate( const QDate &date ) +void KDatePickerPopup::setDate( const TQDate &date ) { mDatePicker->setDate( date ); } @@ -89,7 +89,7 @@ void KDatePickerPopup::setItems( int items ) } #endif -void KDatePickerPopup::slotDateChanged( QDate date ) +void KDatePickerPopup::slotDateChanged( TQDate date ) { emit dateChanged( date ); hide(); @@ -97,27 +97,27 @@ void KDatePickerPopup::slotDateChanged( QDate date ) void KDatePickerPopup::slotToday() { - emit dateChanged( QDate::currentDate() ); + emit dateChanged( TQDate::currentDate() ); } void KDatePickerPopup::slotTomorrow() { - emit dateChanged( QDate::currentDate().addDays( 1 ) ); + emit dateChanged( TQDate::currentDate().addDays( 1 ) ); } void KDatePickerPopup::slotNoDate() { - emit dateChanged( QDate() ); + emit dateChanged( TQDate() ); } void KDatePickerPopup::slotNextWeek() { - emit dateChanged( QDate::currentDate().addDays( 7 ) ); + emit dateChanged( TQDate::currentDate().addDays( 7 ) ); } void KDatePickerPopup::slotNextMonth() { - emit dateChanged( QDate::currentDate().addMonths( 1 ) ); + emit dateChanged( TQDate::currentDate().addMonths( 1 ) ); } #include "kdatepickerpopup.moc" |