summaryrefslogtreecommitdiffstats
path: root/korganizer/kdatenavigator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/kdatenavigator.cpp')
-rw-r--r--korganizer/kdatenavigator.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/korganizer/kdatenavigator.cpp b/korganizer/kdatenavigator.cpp
index 980bd1124..d47b79748 100644
--- a/korganizer/kdatenavigator.cpp
+++ b/korganizer/kdatenavigator.cpp
@@ -25,7 +25,7 @@
#include <tqstring.h>
#include <tqkeycode.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <tqtimer.h>
#include <tqframe.h>
#include <tqlabel.h>
@@ -67,7 +67,7 @@ KDateNavigator::KDateNavigator( TQWidget *parent, const char *name )
for( i = 0; i < 7; i++ ) {
mHeadings[i] = new TQLabel( this );
mHeadings[i]->setFont( TQFont( generalFont, 10, TQFont::Bold ) );
- mHeadings[i]->setAlignment( AlignCenter );
+ mHeadings[i]->tqsetAlignment( AlignCenter );
topLayout->addWidget( mHeadings[i], 1, i + 1 );
}
@@ -75,7 +75,7 @@ KDateNavigator::KDateNavigator( TQWidget *parent, const char *name )
// Create the weeknumber labels
for( i = 0; i < 6; i++ ) {
mWeeknos[i] = new TQLabel( this );
- mWeeknos[i]->setAlignment( AlignCenter );
+ mWeeknos[i]->tqsetAlignment( AlignCenter );
mWeeknos[i]->setFont( TQFont( generalFont, 10 ) );
mWeeknos[i]->installEventFilter( this );
@@ -121,8 +121,8 @@ void KDateNavigator::setBaseDate( const TQDate &date )
dates.append( date );
mNavigatorBar->selectDates( dates );
- repaint();
- mDayMatrix->repaint();
+ tqrepaint();
+ mDayMatrix->tqrepaint();
}
}
@@ -135,7 +135,7 @@ TQSizePolicy KDateNavigator::sizePolicy () const
void KDateNavigator::updateToday()
{
mDayMatrix->recalculateToday();
- mDayMatrix->repaint();
+ mDayMatrix->tqrepaint();
}
TQDate KDateNavigator::startDate() const
@@ -188,21 +188,21 @@ void KDateNavigator::updateDates()
if ( weeknumstart != weeknumend ) {
weeknum = i18n("start/end week number of line in date picker", "%1/%2")
- .arg( weeknumstart ).arg( weeknumend );
+ .tqarg( weeknumstart ).tqarg( weeknumend );
} else {
weeknum.setNum( weeknumstart );
}
mWeeknos[i]->setText( weeknum );
}
-// each updateDates is followed by an updateView -> repaint is issued there !
-// mDayMatrix->repaint();
+// each updateDates is followed by an updateView -> tqrepaint is issued there !
+// mDayMatrix->tqrepaint();
}
void KDateNavigator::updateDayMatrix()
{
mDayMatrix->updateView();
- mDayMatrix->repaint();
+ mDayMatrix->tqrepaint();
}
void KDateNavigator::setUpdateNeeded()
@@ -228,7 +228,7 @@ void KDateNavigator::updateView()
// kdDebug(5850) << "KDateNavigator::updateView(), view " << this << endl;
updateDayMatrix();
- repaint();
+ tqrepaint();
}
void KDateNavigator::updateConfig()