diff options
Diffstat (limited to 'kexi/plugins/forms/kexiformscrollview.cpp')
-rw-r--r-- | kexi/plugins/forms/kexiformscrollview.cpp | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/kexi/plugins/forms/kexiformscrollview.cpp b/kexi/plugins/forms/kexiformscrollview.cpp index 351a1e3e..2ddcb123 100644 --- a/kexi/plugins/forms/kexiformscrollview.cpp +++ b/kexi/plugins/forms/kexiformscrollview.cpp @@ -30,8 +30,8 @@ #include <kpopupmenu.h> #include <kdebug.h> -KexiFormScrollView::KexiFormScrollView(QWidget *parent, bool preview) - : KexiScrollView(parent, preview) +KexiFormScrollView::KexiFormScrollView(TQWidget *tqparent, bool preview) + : KexiScrollView(tqparent, preview) , KexiRecordNavigatorHandler() , KexiSharedActionClient() , KexiDataAwareObjectInterface() @@ -49,7 +49,7 @@ KexiFormScrollView::KexiFormScrollView(QWidget *parent, bool preview) // recordNavigator()->showEditingIndicator(true); } - connect(this, SIGNAL(resizingStarted()), this, SLOT(slotResizingStarted())); + connect(this, TQT_SIGNAL(resizingStarted()), this, TQT_SLOT(slotResizingStarted())); m_popupMenu = new KPopupMenu(this, "contextMenu"); @@ -71,7 +71,7 @@ KexiFormScrollView::show() #if 0 //moved to KexiFormView, OK? //now get resize mode settings for entire form if (m_preview) { - KexiFormView* fv = dynamic_cast<KexiFormView*>(parent()); + KexiFormView* fv = dynamic_cast<KexiFormView*>(tqparent()); int resizeMode = fv ? fv->resizeMode() : KexiFormView::ResizeAuto; if (resizeMode == KexiFormView::ResizeAuto) setResizePolicy(AutoOneFit); @@ -150,14 +150,14 @@ void KexiFormScrollView::moveToFirstRecordRequested() selectFirstRow(); } -void KexiFormScrollView::clearColumnsInternal(bool repaint) +void KexiFormScrollView::clearColumnsInternal(bool tqrepaint) { - Q_UNUSED( repaint ); + Q_UNUSED( tqrepaint ); //! @todo } -void KexiFormScrollView::addHeaderColumn(const QString& caption, const QString& description, - const QIconSet& icon, int width) +void KexiFormScrollView::addHeaderColumn(const TQString& caption, const TQString& description, + const TQIconSet& icon, int width) { Q_UNUSED( caption ); Q_UNUSED( description ); @@ -197,7 +197,7 @@ void KexiFormScrollView::updateGUIAfterSorting() //! @todo } -void KexiFormScrollView::createEditor(int row, int col, const QString& addText, +void KexiFormScrollView::createEditor(int row, int col, const TQString& addText, bool removeOld) { Q_UNUSED( row ); @@ -238,7 +238,7 @@ void KexiFormScrollView::createEditor(int row, int col, const QString& addText, updateWidgetContentsSize(); //refr. current and next row // updateContents(columnPos(0), rowPos(row), viewport()->width(), d->rowHeight*2); -//js: warning this breaks behaviour (cursor is skipping, etc.): qApp->processEvents(500); +//js: warning this breaks behaviour (cursor is skipping, etc.): tqApp->processEvents(500); // ensureVisible(columnPos(m_curCol), rowPos(row+1)+d->rowHeight-1, columnWidth(m_curCol), d->rowHeight); // m_verticalHeader->setOffset(contentsY()); @@ -288,9 +288,9 @@ KexiDataItemInterface *KexiFormScrollView::editor( int col, bool ignoreMissingEd return 0; } editor->hide(); - connect(editor,SIGNAL(editRequested()),this,SLOT(slotEditRequested())); - connect(editor,SIGNAL(cancelRequested()),this,SLOT(cancelEditor())); - connect(editor,SIGNAL(acceptRequested()),this,SLOT(acceptEditor())); + connect(editor,TQT_SIGNAL(editRequested()),this,TQT_SLOT(slotEditRequested())); + connect(editor,TQT_SIGNAL(cancelRequested()),this,TQT_SLOT(cancelEditor())); + connect(editor,TQT_SIGNAL(acceptRequested()),this,TQT_SLOT(acceptEditor())); editor->resize(columnWidth(col)-1, rowHeight()-1); editor->installEventFilter(this); @@ -349,7 +349,7 @@ void KexiFormScrollView::slotRowRepaintRequested(KexiTableItem& item) } /*void KexiFormScrollView::slotAboutToDeleteRow(KexiTableItem& item, - KexiDB::ResultInfo* result, bool repaint) + KexiDB::ResultInfo* result, bool tqrepaint) { //! @todo }*/ @@ -359,22 +359,22 @@ void KexiFormScrollView::slotRowRepaintRequested(KexiTableItem& item) //! @todo }*/ -void KexiFormScrollView::slotRowInserted(KexiTableItem *item, bool repaint) +void KexiFormScrollView::slotRowInserted(KexiTableItem *item, bool tqrepaint) { Q_UNUSED( item ); - Q_UNUSED( repaint ); + Q_UNUSED( tqrepaint ); //! @todo } -void KexiFormScrollView::slotRowInserted(KexiTableItem *item, uint row, bool repaint) +void KexiFormScrollView::slotRowInserted(KexiTableItem *item, uint row, bool tqrepaint) { Q_UNUSED( item ); Q_UNUSED( row ); - Q_UNUSED( repaint ); + Q_UNUSED( tqrepaint ); //! @todo } -void KexiFormScrollView::slotRowsDeleted( const QValueList<int> & ) +void KexiFormScrollView::slotRowsDeleted( const TQValueList<int> & ) { //! @todo } @@ -394,23 +394,23 @@ int KexiFormScrollView::columns() const KexiFormDataItemInterface *item = dynamic_cast<KexiFormDataItemInterface*>(dbFormWidget()->orderedDataAwareWidgets()->at( col )); if (!item) return -1; - KexiFormDataItemInterfaceToIntMap::ConstIterator it(m_fieldNumbersForDataItems.find( item )); + KexiFormDataItemInterfaceToIntMap::ConstIterator it(m_fieldNumbersForDataItems.tqfind( item )); return it!=m_fieldNumbersForDataItems.constEnd() ? it.data() : -1; }*/ bool KexiFormScrollView::columnEditable(int col) { kexipluginsdbg << "KexiFormScrollView::columnEditable(" << col << ")" << endl; - foreach_list (QPtrListIterator<KexiFormDataItemInterface>, it, m_dataItems) { - kexipluginsdbg << (dynamic_cast<QWidget*>(it.current()) ? dynamic_cast<QWidget*>(it.current())->name() : "" ) + foreach_list (TQPtrListIterator<KexiFormDataItemInterface>, it, m_dataItems) { + kexipluginsdbg << (dynamic_cast<TQWidget*>(it.current()) ? dynamic_cast<TQWidget*>(it.current())->name() : "" ) << " " << it.current()->dataSource() << endl; } kexipluginsdbg << "-- focus widgets --" << endl; - foreach_list (QPtrListIterator<QWidget>, it, *dbFormWidget()->orderedFocusWidgets()) { + foreach_list (TQPtrListIterator<TQWidget>, it, *dbFormWidget()->orderedFocusWidgets()) { kexipluginsdbg << it.current()->name() << endl; } kexipluginsdbg << "-- data-aware widgets --" << endl; - foreach_list (QPtrListIterator<QWidget>, it, *dbFormWidget()->orderedDataAwareWidgets()) { + foreach_list (TQPtrListIterator<TQWidget>, it, *dbFormWidget()->orderedDataAwareWidgets()) { kexipluginsdbg << it.current()->name() << endl; } @@ -421,7 +421,7 @@ bool KexiFormScrollView::columnEditable(int col) if (!item || item->isReadOnly()) return false; -// KexiFormDataItemInterfaceToIntMap::ConstIterator it(m_fieldNumbersForDataItems.find( item )); +// KexiFormDataItemInterfaceToIntMap::ConstIterator it(m_fieldNumbersForDataItems.tqfind( item )); // return KexiDataAwareObjectInterface::columnEditable( it!=m_fieldNumbersForDataItems.constEnd() ? it.data() : -1 ); return KexiDataAwareObjectInterface::columnEditable( col ); } @@ -432,9 +432,9 @@ void KexiFormScrollView::valueChanged(KexiDataItemInterface* item) return; //only signal start editing when no row editing was started already kexipluginsdbg << "** KexiFormScrollView::valueChanged(): editedItem=" - << (dbFormWidget()->editedItem ? dbFormWidget()->editedItem->value().toString() : QString::null) + << (dbFormWidget()->editedItem ? dbFormWidget()->editedItem->value().toString() : TQString()) << ", " - << (item ? item->value().toString() : QString::null) + << (item ? item->value().toString() : TQString()) << endl; if (dbFormWidget()->editedItem!=item) { kexipluginsdbg << "**>>> dbFormWidget()->editedItem = dynamic_cast<KexiFormDataItemInterface*>(item)" << endl; @@ -444,7 +444,7 @@ void KexiFormScrollView::valueChanged(KexiDataItemInterface* item) fillDuplicatedDataItems(dynamic_cast<KexiFormDataItemInterface*>(item), item->value()); //value changed: clear 'default value' mode (e.g. a blue italic text) - dynamic_cast<KexiFormDataItemInterface*>(item)->setDisplayDefaultValue(dynamic_cast<QWidget*>(item), false); + dynamic_cast<KexiFormDataItemInterface*>(item)->setDisplayDefaultValue(dynamic_cast<TQWidget*>(item), false); } bool KexiFormScrollView::cursorAtNewRow() const @@ -497,7 +497,7 @@ bool KexiFormScrollView::cancelEditor() const bool displayDefaultValue = shouldDisplayDefaultValueForItem(itemIface); // now disable/enable "display default value" if needed (do it after setValue(), before setValue() turns it off) if (itemIface->hasDisplayedDefaultValue() != displayDefaultValue) - itemIface->setDisplayDefaultValue( dynamic_cast<QWidget*>(itemIface), displayDefaultValue ); + itemIface->setDisplayDefaultValue( dynamic_cast<TQWidget*>(itemIface), displayDefaultValue ); fillDuplicatedDataItems(itemIface, m_editor->value()); @@ -507,17 +507,17 @@ bool KexiFormScrollView::cancelEditor() void KexiFormScrollView::updateAfterCancelRowEdit() { - for (QPtrListIterator<KexiFormDataItemInterface> it(m_dataItems); it.current(); ++it) { - if (dynamic_cast<QWidget*>(it.current())) { + for (TQPtrListIterator<KexiFormDataItemInterface> it(m_dataItems); it.current(); ++it) { + if (dynamic_cast<TQWidget*>(it.current())) { kexipluginsdbg << "KexiFormScrollView::updateAfterCancelRowEdit(): " - << dynamic_cast<QWidget*>(it.current())->className() << " " - << dynamic_cast<QWidget*>(it.current())->name() << endl; + << dynamic_cast<TQWidget*>(it.current())->className() << " " + << dynamic_cast<TQWidget*>(it.current())->name() << endl; } KexiFormDataItemInterface *itemIface = it.current(); const bool displayDefaultValue = shouldDisplayDefaultValueForItem(itemIface); itemIface->undoChanges(); if (itemIface->hasDisplayedDefaultValue() != displayDefaultValue) - itemIface->setDisplayDefaultValue( dynamic_cast<QWidget*>(itemIface), displayDefaultValue ); + itemIface->setDisplayDefaultValue( dynamic_cast<TQWidget*>(itemIface), displayDefaultValue ); } recordNavigator()->showEditingIndicator(false); dbFormWidget()->editedItem = 0; @@ -549,15 +549,15 @@ void KexiFormScrollView::refreshContentsSize() } } -void KexiFormScrollView::handleDataWidgetAction(const QString& actionName) +void KexiFormScrollView::handleDataWidgetAction(const TQString& actionName) { - QWidget *w = focusWidget(); + TQWidget *w = tqfocusWidget(); KexiFormDataItemInterface *item = 0; while (w) { item = dynamic_cast<KexiFormDataItemInterface*>(w); if (item) break; - w = w->parentWidget(); + w = w->tqparentWidget(); } if (item) item->handleAction(actionName); |