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/kexitimetableedit.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/kexitimetableedit.h')
-rw-r--r-- | kexi/widget/tableview/kexitimetableedit.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/kexi/widget/tableview/kexitimetableedit.h b/kexi/widget/tableview/kexitimetableedit.h index 4daa68ec..6c427bbd 100644 --- a/kexi/widget/tableview/kexitimetableedit.h +++ b/kexi/widget/tableview/kexitimetableedit.h @@ -24,7 +24,7 @@ #include <widget/utils/kexidatetimeformatter.h> /*! @short Editor class for Time type. - It is a replacement QTimeEdit due to usability problems: + It is a replacement TQTimeEdit due to usability problems: people are accustomed to use single-character cursor. Time format is retrieved from the KDE global settings and input/output is performed using KLineEdit (from KexiInputTableEdit). @@ -32,28 +32,29 @@ class KexiTimeTableEdit : public KexiInputTableEdit { Q_OBJECT + TQ_OBJECT public: - KexiTimeTableEdit(KexiTableViewColumn &column, QWidget *parent=0); + KexiTimeTableEdit(KexiTableViewColumn &column, TQWidget *tqparent=0); virtual ~KexiTimeTableEdit(); - virtual void setupContents( QPainter *p, bool focused, const QVariant& val, - QString &txt, int &align, int &x, int &y_offset, int &w, int &h ); - virtual QVariant value(); + virtual void setupContents( TQPainter *p, bool focused, const TQVariant& val, + TQString &txt, int &align, int &x, int &y_offset, int &w, int &h ); + virtual TQVariant value(); virtual bool valueIsNull(); virtual bool valueIsEmpty(); virtual bool valueIsValid(); /*! Reimplemented after KexiInputTableEdit. */ - virtual void handleAction(const QString& actionName); + virtual void handleAction(const TQString& actionName); /*! Reimplemented after KexiInputTableEdit. */ - virtual void handleCopyAction(const QVariant& value, const QVariant& visibleValue); + virtual void handleCopyAction(const TQVariant& value, const TQVariant& visibleValue); protected: //! helper - void setValueInInternalEditor(const QVariant &value); - virtual void setValueInternal(const QVariant& add, bool removeOld); - QTime timeValue(); + void setValueInInternalEditor(const TQVariant &value); + virtual void setValueInternal(const TQVariant& add, bool removeOld); + TQTime timeValue(); //! Used to format and convert time values KexiTimeFormatter m_formatter; |