summaryrefslogtreecommitdiffstats
path: root/libtdepim/kdateedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libtdepim/kdateedit.cpp')
-rw-r--r--libtdepim/kdateedit.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/libtdepim/kdateedit.cpp b/libtdepim/kdateedit.cpp
index 44c4e696..df2b98c9 100644
--- a/libtdepim/kdateedit.cpp
+++ b/libtdepim/kdateedit.cpp
@@ -72,13 +72,13 @@ KDateEdit::KDateEdit( TQWidget *parent, const char *name )
// need at least one entry for popup to work
setMaxCount( 1 );
- mDate = TQDate::tqcurrentDate();
+ mDate = TQDate::currentDate();
TQString today = KGlobal::locale()->formatDate( mDate, true );
insertItem( today );
setCurrentItem( 0 );
changeItem( today, 0 );
- setMinimumSize( tqsizeHint() );
+ setMinimumSize( sizeHint() );
connect( lineEdit(), TQT_SIGNAL( returnPressed() ),
this, TQT_SLOT( lineEnterPressed() ) );
@@ -138,13 +138,13 @@ void KDateEdit::popup()
TQPoint popupPoint = mapToGlobal( TQPoint( 0,0 ) );
- int dateFrameHeight = mPopup->tqsizeHint().height();
+ int dateFrameHeight = mPopup->sizeHint().height();
if ( popupPoint.y() + height() + dateFrameHeight > desk.bottom() )
popupPoint.setY( popupPoint.y() - dateFrameHeight );
else
popupPoint.setY( popupPoint.y() + height() );
- int dateFrameWidth = mPopup->tqsizeHint().width();
+ int dateFrameWidth = mPopup->sizeHint().width();
if ( popupPoint.x() + dateFrameWidth > desk.right() )
popupPoint.setX( desk.right() - dateFrameWidth );
@@ -157,7 +157,7 @@ void KDateEdit::popup()
if ( mDate.isValid() )
mPopup->setDate( mDate );
else
- mPopup->setDate( TQDate::tqcurrentDate() );
+ mPopup->setDate( TQDate::currentDate() );
mPopup->popup( popupPoint );
@@ -215,7 +215,7 @@ TQDate KDateEdit::parseDate( bool *replaced ) const
if ( text.isEmpty() )
result = TQDate();
else if ( mKeywordMap.contains( text.lower() ) ) {
- TQDate today = TQDate::tqcurrentDate();
+ TQDate today = TQDate::currentDate();
int i = mKeywordMap[ text.lower() ];
if ( i >= 100 ) {
/* A day name has been entered. Convert to offset from today.