diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:31:01 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:31:01 -0600 |
commit | 252fce5a2a5384702fbcc1c9987284d7bd2e6943 (patch) | |
tree | d5768ff1e9065f29bec60c94d31880b38b4e82f2 /kmymoney2/widgets/transactionform.cpp | |
parent | 69ef6c4beaa37474a2170d0bfe842de647f53102 (diff) | |
download | kmymoney-252fce5a2a5384702fbcc1c9987284d7bd2e6943.tar.gz kmymoney-252fce5a2a5384702fbcc1c9987284d7bd2e6943.zip |
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'kmymoney2/widgets/transactionform.cpp')
-rw-r--r-- | kmymoney2/widgets/transactionform.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kmymoney2/widgets/transactionform.cpp b/kmymoney2/widgets/transactionform.cpp index b1d55cd..3b05e30 100644 --- a/kmymoney2/widgets/transactionform.cpp +++ b/kmymoney2/widgets/transactionform.cpp @@ -22,9 +22,9 @@ #include <tqpainter.h> #include <tqtimer.h> #include <tqapplication.h> -#include <tqlayout.h> +#include <layout.h> #include <tqtabbar.h> -#include <tqpalette.h> +#include <palette.h> // ---------------------------------------------------------------------------- // KDE Includes @@ -237,8 +237,8 @@ void TransactionForm::slotSetTransaction(KMyMoneyRegister::Transaction* transact kMyMoneyDateInput dateInput(0, "editDate"); KMyMoneyCategory category(0, "category", true); - // extract the maximal tqsizeHint height - int height = TQMAX(dateInput.tqsizeHint().height(), category.tqsizeHint().height()); + // extract the maximal sizeHint height + int height = TQMAX(dateInput.sizeHint().height(), category.sizeHint().height()); for(int row = 0; row < numRows(); ++row) { if(!transaction || transaction->showRowInForm(row)) { @@ -273,7 +273,7 @@ TabBar* TransactionForm::tabBar(TQWidget* parent) // create the tab bar m_tabBar = new TabBar( parent ); m_tabBar->setSignalEmission(TabBar::SignalAlways); - m_tabBar->tqsetSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, m_tabBar->sizePolicy().hasHeightForWidth() ) ); + m_tabBar->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)0, 0, 0, m_tabBar->sizePolicy().hasHeightForWidth() ) ); connect(m_tabBar, TQT_SIGNAL(tabSelected(int)), this, TQT_SLOT(slotActionSelected(int))); } return m_tabBar; @@ -387,9 +387,9 @@ TQSize TransactionForm::tableSize(void) const rowPos(numRows()-1) + rowHeight(numRows()-1) + 10); } -TQSize TransactionForm::tqsizeHint(void) const +TQSize TransactionForm::sizeHint(void) const { - // I've taken this from qtable.cpp, TQTable::tqsizeHint() + // I've taken this from qtable.cpp, TQTable::sizeHint() int vmargin = TQApplication::reverseLayout() ? rightMargin() : leftMargin(); return TQSize(tableSize().width() + vmargin + 5, tableSize().height() + topMargin() + 10); } @@ -403,7 +403,7 @@ void TransactionForm::adjustColumn(Column col) if(col == ValueColumn2) { kMyMoneyDateInput dateInput; kMyMoneyEdit valInput; - w = TQMAX(dateInput.tqsizeHint().width(), valInput.tqsizeHint().width()); + w = TQMAX(dateInput.sizeHint().width(), valInput.sizeHint().width()); } if(m_transaction) { @@ -416,7 +416,7 @@ void TransactionForm::adjustColumn(Column col) m_transaction->formCellText(txt, align, i, static_cast<int>(col), 0); TQWidget* cw = cellWidget(i, col); if(cw) { - w = TQMAX(w, cw->tqsizeHint().width()+10); + w = TQMAX(w, cw->sizeHint().width()+10); } w = TQMAX(w, fontMetrics.width(txt)+10); } |