diff options
author | Timothy Pearson <[email protected]> | 2011-12-16 09:56:31 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2011-12-16 09:56:31 -0600 |
commit | c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54 (patch) | |
tree | 1ee1912ac4bb966475f0db0f2a78678661b4b4a5 /kplato/kptdatetable.cc | |
parent | 94844816550ad672ccfcdc25659c625546239998 (diff) | |
download | koffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.tar.gz koffice-c9cb4f487428aad5d8cda5e3a4b9ad87390d7e54.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 94844816550ad672ccfcdc25659c625546239998.
Diffstat (limited to 'kplato/kptdatetable.cc')
-rw-r--r-- | kplato/kptdatetable.cc | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kplato/kptdatetable.cc b/kplato/kptdatetable.cc index c4d8022d..afa06591 100644 --- a/kplato/kptdatetable.cc +++ b/kplato/kptdatetable.cc @@ -32,7 +32,7 @@ #include <tqpainter.h> #include <tqdialog.h> #include <assert.h> -#include <layout.h> +#include <tqlayout.h> #include <tqvaluelist.h> #include <kglobalsettings.h> @@ -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::currentDate(); + date_=TQDate::tqcurrentDate(); } setFocusPolicy( TQ_StrongFocus ); setNumCols(7+m_dateStartCol); // 7 days a week + maybe 1 for weeknumbers @@ -175,7 +175,7 @@ void DateTable::paintWeekNumber(TQPainter *painter, int row) { painter->drawRect(0, 0, w, h); painter->setPen(KGlobalSettings::textColor()); - painter->drawText(0, 0, w, h-1, AlignCenter, TQString("%1").arg(m_weeks[row].first), -1, &rect); + painter->drawText(0, 0, w, h-1, AlignCenter, TQString("%1").tqarg(m_weeks[row].first), -1, &rect); painter->setPen(colorLine); painter->moveTo(w-1, 0); painter->lineTo(w-1, h-1); @@ -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::currentDate()) { + if (d == TQDate::tqcurrentDate()) { 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::currentDate()); + setDate(TQDate::tqcurrentDate()); 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::fromLatin1("88")); + rect=metrics.boundingRect(TQString::tqfromLatin1("88")); maxCell.setWidth(TQMAX(maxCell.width()+2, rect.width())); maxCell.setHeight(TQMAX(maxCell.height()+4, rect.height())); } @@ -527,7 +527,7 @@ bool DateTable::selectDate(const TQDate& date_) { return true; } -bool DateTable::setDate(const TQDate& date_, bool repaint) { +bool DateTable::setDate(const TQDate& date_, bool tqrepaint) { //kdDebug()<<k_funcinfo<<"date="<<date_.toString()<<endl; bool changed=false; TQDate temp; @@ -562,7 +562,7 @@ bool DateTable::setDate(const TQDate& date_, bool repaint) { m_selectedDates.insert(date); }*/ numDaysPrevMonth=temp.daysInMonth(); - if(changed && repaint) { + if(changed && tqrepaint) { repaintContents(false); } if (m_enabled) @@ -582,12 +582,12 @@ void DateTable::focusOutEvent( TQFocusEvent *e ) { TQGridView::focusOutEvent( e ); } -TQSize DateTable::sizeHint() const { +TQSize DateTable::tqsizeHint() const { if(maxCell.height()>0 && maxCell.width()>0) { return TQSize(maxCell.width()*numCols()+2*frameWidth(), (maxCell.height()+2)*numRows()+2*frameWidth()); } else { - //kdDebug() << "DateTable::sizeHint: obscure failure - " << endl; + //kdDebug() << "DateTable::tqsizeHint: obscure failure - " << endl; return TQSize(-1, -1); } } @@ -794,7 +794,7 @@ DateInternalMonthPicker::DateInternalMonthPicker } TQSize -DateInternalMonthPicker::sizeHint() const +DateInternalMonthPicker::tqsizeHint() const { return TQSize((max.width()+6)*numCols()+2*frameWidth(), (max.height()+6)*numRows()+2*frameWidth()); @@ -894,7 +894,7 @@ DateInternalMonthPicker::contentsMouseMoveEvent(TQMouseEvent *e) updateCell( row, col /*, false */ ); // mark the new active cell } } - if ( tmpRow > -1 ) // repaint the former active cell + if ( tmpRow > -1 ) // tqrepaint the former active cell updateCell( tmpRow, tmpCol /*, true */ ); } } @@ -1053,7 +1053,7 @@ int PopupFrame::exec(TQPoint pos) { popup(pos); - repaint(); + tqrepaint(); tqApp->enter_loop(); hide(); return result; |