summaryrefslogtreecommitdiffstats
path: root/kplato/kptdatetable.cc
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-18 18:12:30 -0600
committerTimothy Pearson <[email protected]>2011-12-18 18:12:30 -0600
commit11191ef0b9908604d1d7aaca382b011ef22c454c (patch)
treed38f0ccd8bfcc9756f5cfc42fb2ad1dad351e6aa /kplato/kptdatetable.cc
parentc9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 (diff)
downloadkoffice-11191ef0b9908604d1d7aaca382b011ef22c454c.tar.gz
koffice-11191ef0b9908604d1d7aaca382b011ef22c454c.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'kplato/kptdatetable.cc')
-rw-r--r--kplato/kptdatetable.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/kplato/kptdatetable.cc b/kplato/kptdatetable.cc
index afa06591..44f91500 100644
--- a/kplato/kptdatetable.cc
+++ b/kplato/kptdatetable.cc
@@ -88,7 +88,7 @@ DateTable::DateTable(TQWidget *parent, TQDate date_, const char* name, WFlags f)
setFontSize(10);
if(!date_.isValid()) {
kdError() <<k_funcinfo<<"Given date is invalid, using current date." << endl;
- date_=TQDate::tqcurrentDate();
+ date_=TQDate::currentDate();
}
setFocusPolicy( TQ_StrongFocus );
setNumCols(7+m_dateStartCol); // 7 days a week + maybe 1 for weeknumbers
@@ -232,7 +232,7 @@ void DateTable::paintDay(TQPainter *painter, int row, int col) {
painter->lineTo(w-1, h-1);
}
// then paint square if current date
- if (d == TQDate::tqcurrentDate()) {
+ if (d == TQDate::currentDate()) {
painter->setPen(colorLine);
painter->drawRect(1, 1, w-2, h-2);
}
@@ -317,7 +317,7 @@ void DateTable::keyPressEvent( TQKeyEvent *e ) {
return;
}
if ( e->key() == TQt::Key_N ) {
- setDate(TQDate::tqcurrentDate());
+ setDate(TQDate::currentDate());
return;
}
if ( e->key() == TQt::Key_Control ) {
@@ -353,7 +353,7 @@ void DateTable::setFontSize(int size) {
maxCell.setHeight(TQMAX(maxCell.height(), rect.height()));
}
// ----- compare with a real wide number and add some space:
- rect=metrics.boundingRect(TQString::tqfromLatin1("88"));
+ rect=metrics.boundingRect(TQString::fromLatin1("88"));
maxCell.setWidth(TQMAX(maxCell.width()+2, rect.width()));
maxCell.setHeight(TQMAX(maxCell.height()+4, rect.height()));
}
@@ -582,12 +582,12 @@ void DateTable::focusOutEvent( TQFocusEvent *e ) {
TQGridView::focusOutEvent( e );
}
-TQSize DateTable::tqsizeHint() const {
+TQSize DateTable::sizeHint() const {
if(maxCell.height()>0 && maxCell.width()>0) {
return TQSize(maxCell.width()*numCols()+2*frameWidth(),
(maxCell.height()+2)*numRows()+2*frameWidth());
} else {
- //kdDebug() << "DateTable::tqsizeHint: obscure failure - " << endl;
+ //kdDebug() << "DateTable::sizeHint: obscure failure - " << endl;
return TQSize(-1, -1);
}
}
@@ -794,7 +794,7 @@ DateInternalMonthPicker::DateInternalMonthPicker
}
TQSize
-DateInternalMonthPicker::tqsizeHint() const
+DateInternalMonthPicker::sizeHint() const
{
return TQSize((max.width()+6)*numCols()+2*frameWidth(),
(max.height()+6)*numRows()+2*frameWidth());