From 94844816550ad672ccfcdc25659c625546239998 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 15 Dec 2011 15:32:11 -0600 Subject: Rename a number of old tq methods that are no longer tq specific --- kexi/widget/tableview/kexitableviewdata.cpp | 52 ++++++++++++++--------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'kexi/widget/tableview/kexitableviewdata.cpp') diff --git a/kexi/widget/tableview/kexitableviewdata.cpp b/kexi/widget/tableview/kexitableviewdata.cpp index 5905706b..a4e45daf 100644 --- a/kexi/widget/tableview/kexitableviewdata.cpp +++ b/kexi/widget/tableview/kexitableviewdata.cpp @@ -509,8 +509,8 @@ int KexiTableViewData::cmpStr(Item item1, Item item2) const TQString &as = m_leftTmp.toString(); const TQString &bs = m_rightTmp.toString(); - const TQChar *a = as.tqunicode(); - const TQChar *b = bs.tqunicode(); + const TQChar *a = as.unicode(); + const TQChar *b = bs.unicode(); if ( a == b ) return 0; @@ -524,16 +524,16 @@ int KexiTableViewData::cmpStr(Item item1, Item item2) int l=TQMIN(as.length(),bs.length()); - au = a->tqunicode(); - bu = b->tqunicode(); + au = a->unicode(); + bu = b->unicode(); au = (au <= 0x17e ? charTable[au] : 0xffff); bu = (bu <= 0x17e ? charTable[bu] : 0xffff); while (l-- && au == bu) { a++,b++; - au = a->tqunicode(); - bu = b->tqunicode(); + au = a->unicode(); + bu = b->unicode(); au = (au <= 0x17e ? charTable[au] : 0xffff); bu = (bu <= 0x17e ? charTable[bu] : 0xffff); } @@ -635,7 +635,7 @@ bool KexiTableViewData::updateRowEditBufferRef(KexiTableItem *item, } //! @todo if there're multiple views for this data, we need multiple buffers! -bool KexiTableViewData::saveRow(KexiTableItem& item, bool insert, bool tqrepaint) +bool KexiTableViewData::saveRow(KexiTableItem& item, bool insert, bool repaint) { if (!m_pRowEditBuffer) return true; //nothing to do @@ -655,7 +655,7 @@ bool KexiTableViewData::saveRow(KexiTableItem& item, bool insert, bool tqrepaint if (val->isNull() && !f->isAutoIncrement()) { //NOT NULL violated m_result.msg = i18n("\"%1\" column requires a value to be entered.") - .tqarg(f->captionOrName()) + "\n\n" + Kexi::msgYouCanImproveData(); + .arg(f->captionOrName()) + "\n\n" + Kexi::msgYouCanImproveData(); m_result.desc = i18n("The column's constraint is declared as NOT NULL."); m_result.column = col; return false; @@ -666,7 +666,7 @@ bool KexiTableViewData::saveRow(KexiTableItem& item, bool insert, bool tqrepaint if (!f->isAutoIncrement() && (val->isNull() || KexiDB::isEmptyValue( f, *val ))) { //NOT EMPTY violated m_result.msg = i18n("\"%1\" column requires a value to be entered.") - .tqarg(f->captionOrName()) + "\n\n" + Kexi::msgYouCanImproveData(); + .arg(f->captionOrName()) + "\n\n" + Kexi::msgYouCanImproveData(); m_result.desc = i18n("The column's constraint is declared as NOT EMPTY."); m_result.column = col; return false; @@ -721,12 +721,12 @@ js: TODO: use KexiMainWindowImpl::showErrorMessage(const TQString &title, KexiDB m_pRowEditBuffer->clear(); - if (tqrepaint) + if (repaint) emit rowRepaintRequested(item); return true; } -bool KexiTableViewData::saveRowChanges(KexiTableItem& item, bool tqrepaint) +bool KexiTableViewData::saveRowChanges(KexiTableItem& item, bool repaint) { kdDebug() << "KexiTableViewData::saveRowChanges()..." << endl; m_result.clear(); @@ -734,32 +734,32 @@ bool KexiTableViewData::saveRowChanges(KexiTableItem& item, bool tqrepaint) if (!m_result.success) return false; - if (saveRow(item, false /*update*/, tqrepaint)) { + if (saveRow(item, false /*update*/, repaint)) { emit rowUpdated(&item); return true; } return false; } -bool KexiTableViewData::saveNewRow(KexiTableItem& item, bool tqrepaint) +bool KexiTableViewData::saveNewRow(KexiTableItem& item, bool repaint) { kdDebug() << "KexiTableViewData::saveNewRow()..." << endl; m_result.clear(); - emit aboutToInsertRow(&item, &m_result, tqrepaint); + emit aboutToInsertRow(&item, &m_result, repaint); if (!m_result.success) return false; - if (saveRow(item, true /*insert*/, tqrepaint)) { - emit rowInserted(&item, tqrepaint); + if (saveRow(item, true /*insert*/, repaint)) { + emit rowInserted(&item, repaint); return true; } return false; } -bool KexiTableViewData::deleteRow(KexiTableItem& item, bool tqrepaint) +bool KexiTableViewData::deleteRow(KexiTableItem& item, bool repaint) { m_result.clear(); - emit aboutToDeleteRow(item, &m_result, tqrepaint); + emit aboutToDeleteRow(item, &m_result, repaint); if (!m_result.success) return false; @@ -784,9 +784,9 @@ bool KexiTableViewData::deleteRow(KexiTableItem& item, bool tqrepaint) return true; } -void KexiTableViewData::deleteRows( const TQValueList &rowsToDelete, bool tqrepaint ) +void KexiTableViewData::deleteRows( const TQValueList &rowsToDelete, bool repaint ) { - Q_UNUSED( tqrepaint ); + Q_UNUSED( repaint ); if (rowsToDelete.isEmpty()) return; @@ -804,11 +804,11 @@ void KexiTableViewData::deleteRows( const TQValueList &rowsToDelete, bool t emit rowsDeleted( rowsToDelete ); } -void KexiTableViewData::insertRow(KexiTableItem& item, uint index, bool tqrepaint) +void KexiTableViewData::insertRow(KexiTableItem& item, uint index, bool repaint) { if (!insert( index = TQMIN(index, count()), &item )) return; - emit rowInserted(&item, index, tqrepaint); + emit rowInserted(&item, index, repaint); } void KexiTableViewData::clearInternal() @@ -822,12 +822,12 @@ void KexiTableViewData::clearInternal() removeLast(); #ifndef KEXI_NO_PROCESS_EVENTS if (i % 1000 == 0) - tqApp->tqprocessEvents( 1 ); + tqApp->processEvents( 1 ); #endif } } -bool KexiTableViewData::deleteAllRows(bool tqrepaint) +bool KexiTableViewData::deleteAllRows(bool repaint) { clearInternal(); @@ -837,7 +837,7 @@ bool KexiTableViewData::deleteAllRows(bool tqrepaint) res = m_cursor->deleteAllRows(); } - if (tqrepaint) + if (repaint) emit reloadRequested(); return res; } @@ -873,7 +873,7 @@ void KexiTableViewData::preloadAllRows() m_cursor->moveNext(); #ifndef KEXI_NO_PROCESS_EVENTS if ((i % 1000) == 0) - tqApp->tqprocessEvents( 1 ); + tqApp->processEvents( 1 ); #endif } } -- cgit v1.2.1