diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kexi/widget/tableview/kexibooltableedit.h | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/widget/tableview/kexibooltableedit.h')
-rw-r--r-- | kexi/widget/tableview/kexibooltableedit.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/kexi/widget/tableview/kexibooltableedit.h b/kexi/widget/tableview/kexibooltableedit.h index 3320a573..3fc87d58 100644 --- a/kexi/widget/tableview/kexibooltableedit.h +++ b/kexi/widget/tableview/kexibooltableedit.h @@ -20,7 +20,7 @@ #ifndef KEXIBOOLTABLEEDIT_H #define KEXIBOOLTABLEEDIT_H -#include <qvariant.h> +#include <tqvariant.h> #include "kexitableedit.h" #include "kexicelleditorfactory.h" @@ -30,9 +30,10 @@ class KexiBoolTableEdit : public KexiTableEdit { Q_OBJECT + TQ_OBJECT public: - KexiBoolTableEdit(KexiTableViewColumn &column, QWidget *parent=0); + KexiBoolTableEdit(KexiTableViewColumn &column, TQWidget *tqparent=0); virtual ~KexiBoolTableEdit(); @@ -44,39 +45,39 @@ class KexiBoolTableEdit : public KexiTableEdit //! (check this with KexiDB::Field::hasEmptyProperty()), virtual bool valueIsEmpty(); - virtual QVariant value(); + virtual TQVariant value(); virtual bool cursorAtStart(); virtual bool cursorAtEnd(); virtual void clear(); - 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 ); virtual void clickedOnContents(); /*! Handles action having standard name \a actionName. Action could be: "edit_cut", "edit_paste", etc. */ - virtual void handleAction(const QString& actionName); + virtual void handleAction(const TQString& actionName); /*! Handles copy action for value. Copies empty string for null, "1" for true, "0" for false. \a visibleValue is unused here. Reimplemented after KexiTableEdit. */ - virtual void handleCopyAction(const QVariant& value, const QVariant& visibleValue); + virtual void handleCopyAction(const TQVariant& value, const TQVariant& visibleValue); /*! \return width of \a value. Reimplemented after KexiTableEdit. */ - virtual int widthForValue( QVariant &val, const QFontMetrics &fm ); + virtual int widthForValue( TQVariant &val, const TQFontMetrics &fm ); protected slots: protected: //! initializes this editor with \a add value - virtual void setValueInternal(const QVariant& add, bool removeOld); + virtual void setValueInternal(const TQVariant& add, bool removeOld); void showHintButton(); //! We've no editor widget that would store current value, so we do this here - QVariant m_currentValue; + TQVariant m_currentValue; signals: void hintClicked(); |