diff options
Diffstat (limited to 'kexi/widget/tableview/kexicomboboxtableedit.h')
-rw-r--r-- | kexi/widget/tableview/kexicomboboxtableedit.h | 45 |
1 files changed, 23 insertions, 22 deletions
diff --git a/kexi/widget/tableview/kexicomboboxtableedit.h b/kexi/widget/tableview/kexicomboboxtableedit.h index 713fa55e..7b8a7339 100644 --- a/kexi/widget/tableview/kexicomboboxtableedit.h +++ b/kexi/widget/tableview/kexicomboboxtableedit.h @@ -37,9 +37,10 @@ class KexiTableViewColumn; class KexiComboBoxTableEdit : public KexiInputTableEdit, public KexiComboBoxBase { Q_OBJECT + TQ_OBJECT public: - KexiComboBoxTableEdit(KexiTableViewColumn &column, QWidget *parent=0); + KexiComboBoxTableEdit(KexiTableViewColumn &column, TQWidget *tqparent=0); virtual ~KexiComboBoxTableEdit(); //! Implemented for KexiComboBoxBase @@ -49,55 +50,55 @@ class KexiComboBoxTableEdit : public KexiInputTableEdit, public KexiComboBoxBase virtual KexiDB::Field *field() const { return m_column->field(); } //! Implemented for KexiComboBoxBase - virtual QVariant origValue() const { return m_origValue; } + virtual TQVariant origValue() const { return m_origValue; } - virtual void setValueInternal(const QVariant& add, bool removeOld) + virtual void setValueInternal(const TQVariant& add, bool removeOld) { KexiComboBoxBase::setValueInternal(add, removeOld); } - virtual QVariant value() { return KexiComboBoxBase::value(); } + virtual TQVariant value() { return KexiComboBoxBase::value(); } virtual void clear(); virtual bool valueChanged(); - virtual QVariant visibleValue(); + virtual TQVariant visibleValue(); /*! Reimplemented: resizes a view(). */ virtual void resize(int w, int h); - virtual void showFocus( const QRect& r, bool readOnly ); + virtual void showFocus( const TQRect& r, bool readOnly ); virtual void hideFocus(); - virtual void paintFocusBorders( QPainter *p, QVariant &cal, int x, int y, int w, int h ); + virtual void paintFocusBorders( TQPainter *p, TQVariant &cal, int x, int y, int w, int h ); /*! Setups contents of the cell. As a special case, if there is lookup field schema defined, \a val already contains the visible value (usually the text) set by \ref KexiTableView::paintcell(), so there is noo need to lookup the value in the combo box's popup. */ - virtual void setupContents( QPainter *p, bool focused, const QVariant& val, - QString &txt, int &align, int &x, int &y_offset, int &w, int &h ); + virtual void setupContents( TQPainter *p, bool focused, const TQVariant& val, + TQString &txt, int &align, int &x, int &y_offset, int &w, int &h ); /*! Used to handle key press events for the item. */ - virtual bool handleKeyPress( QKeyEvent *ke, bool editorActive ); + virtual bool handleKeyPress( TQKeyEvent *ke, bool editorActive ); - virtual int widthForValue( QVariant &val, const QFontMetrics &fm ); + virtual int widthForValue( TQVariant &val, const TQFontMetrics &fm ); virtual void hide(); virtual void show(); /*! \return total size of this editor, including popup button. */ - virtual QSize totalSize() const; + virtual TQSize totalSize() const; virtual void createInternalEditor(KexiDB::QuerySchema& schema); /*! Reimplemented after KexiInputTableEdit. */ - virtual void handleAction(const QString& actionName); + virtual void handleAction(const TQString& actionName); /*! Reimplemented after KexiInputTableEdit. For a special case (combo box), \a visibleValue can be provided, so it can be copied to the clipboard instead of unreadable \a value. */ - virtual void handleCopyAction(const QVariant& value, const QVariant& visibleValue); + virtual void handleCopyAction(const TQVariant& value, const TQVariant& visibleValue); public slots: //! Implemented for KexiDataItemInterface @@ -113,19 +114,19 @@ class KexiComboBoxTableEdit : public KexiInputTableEdit, public KexiComboBoxBase void slotButtonClicked(); void slotRowAccepted(KexiTableItem *item, int row) { KexiComboBoxBase::slotRowAccepted(item, row); } void slotItemSelected(KexiTableItem* item) { KexiComboBoxBase::slotItemSelected(item); } - void slotInternalEditorValueChanged(const QVariant& v) + void slotInternalEditorValueChanged(const TQVariant& v) { KexiComboBoxBase::slotInternalEditorValueChanged(v); } - void slotLineEditTextChanged(const QString& s); + void slotLineEditTextChanged(const TQString& s); void slotPopupHidden(); protected: //! internal - void updateFocus( const QRect& r ); + void updateFocus( const TQRect& r ); - virtual bool eventFilter( QObject *o, QEvent *e ); + virtual bool eventFilter( TQObject *o, TQEvent *e ); //! Implemented for KexiComboBoxBase - virtual QWidget *internalEditor() const; + virtual TQWidget *internalEditor() const; //! Implemented for KexiComboBoxBase virtual void moveCursorToEndInInternalEditor(); @@ -134,10 +135,10 @@ class KexiComboBoxTableEdit : public KexiInputTableEdit, public KexiComboBoxBase virtual void selectAllInInternalEditor(); //! Implemented for KexiComboBoxBase - virtual void setValueInInternalEditor(const QVariant& value); + virtual void setValueInInternalEditor(const TQVariant& value); //! Implemented for KexiComboBoxBase - virtual QVariant valueFromInternalEditor(); + virtual TQVariant valueFromInternalEditor(); //! Implemented for KexiComboBoxBase virtual void editRequested() { KexiInputTableEdit::editRequested(); } @@ -146,7 +147,7 @@ class KexiComboBoxTableEdit : public KexiInputTableEdit, public KexiComboBoxBase virtual void acceptRequested() { KexiInputTableEdit::acceptRequested(); } //! Implemented for KexiComboBoxBase - virtual QPoint mapFromParentToGlobal(const QPoint& pos) const; + virtual TQPoint mapFromParentToGlobal(const TQPoint& pos) const; //! Implemented for KexiComboBoxBase virtual int popupWidthHint() const; |