summaryrefslogtreecommitdiffstats
path: root/libkdepim/kdatepickerpopup.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /libkdepim/kdatepickerpopup.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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 'libkdepim/kdatepickerpopup.cpp')
-rw-r--r--libkdepim/kdatepickerpopup.cpp40
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"