summaryrefslogtreecommitdiffstats
path: root/kmymoney2/widgets/transactionform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmymoney2/widgets/transactionform.cpp')
-rw-r--r--kmymoney2/widgets/transactionform.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kmymoney2/widgets/transactionform.cpp b/kmymoney2/widgets/transactionform.cpp
index b1d55cd..281bcc5 100644
--- a/kmymoney2/widgets/transactionform.cpp
+++ b/kmymoney2/widgets/transactionform.cpp
@@ -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);
}