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 /kword/KWTableTemplateSelector.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 'kword/KWTableTemplateSelector.h')
-rw-r--r-- | kword/KWTableTemplateSelector.h | 58 |
1 files changed, 30 insertions, 28 deletions
diff --git a/kword/KWTableTemplateSelector.h b/kword/KWTableTemplateSelector.h index ada023bf..43a6e358 100644 --- a/kword/KWTableTemplateSelector.h +++ b/kword/KWTableTemplateSelector.h @@ -20,22 +20,22 @@ #ifndef kwtabletemplateselector_h #define kwtabletemplateselector_h -#include <qwidget.h> -#include <qgroupbox.h> -#include <qptrlist.h> - -#include <qlabel.h> -#include <qpushbutton.h> -/*#include <qlayout.h> -#include <qfont.h> -#include <qbrush.h> +#include <tqwidget.h> +#include <tqgroupbox.h> +#include <tqptrlist.h> + +#include <tqlabel.h> +#include <tqpushbutton.h> +/*#include <tqlayout.h> +#include <tqfont.h> +#include <tqbrush.h> */ -class QListBox; -class QCheckBox; -class QButtonGroup; -class QGroupBox; -class QRect; +class TQListBox; +class TQCheckBox; +class TQButtonGroup; +class TQGroupBox; +class TQRect; class KWTableTemplate; class KWTableTemplateCollection; @@ -50,12 +50,13 @@ class KWTableStyle; /* Class: KWTableTemplatePreview */ /******************************************************************/ -class KWTableTemplatePreview : public QGroupBox +class KWTableTemplatePreview : public TQGroupBox { Q_OBJECT + TQ_OBJECT public: - KWTableTemplatePreview( const QString& title, KWTableStyle *_emptyStyle, QWidget* parent, const char* name=0L ); + KWTableTemplatePreview( const TQString& title, KWTableStyle *_emptyStyle, TQWidget* tqparent, const char* name=0L ); ~KWTableTemplatePreview(); void setTableTemplate(KWTableTemplate *_tableTemplate); KWTableTemplate *getTableTemplate()const ; @@ -70,10 +71,10 @@ public slots: protected: int bottomBorder(const int rows, const int cols, const int rowpos, const int colpos); int rightBorder(const int rows, const int cols, const int rowpos, const int colpos); - void drawCell( QPainter *p, const KWTableStyle *ts, const QRect globalRect, - const int rows, int cols, int rowpos, int colpos, const QString & txt); - void drawPreviewTable(QPainter *p, int rows, int cols, QRect globalRect); - void drawContents( QPainter *p ); + void drawCell( TQPainter *p, const KWTableStyle *ts, const TQRect globalRect, + const int rows, int cols, int rowpos, int colpos, const TQString & txt); + void drawPreviewTable(TQPainter *p, int rows, int cols, TQRect globalRect); + void drawContents( TQPainter *p ); void setSpecialCells(KWTableTemplate *); KWTableStyle *m_emptyStyle; @@ -84,7 +85,7 @@ protected: //necessary when we init preview bool m_disableRepaint; private: - QString m_contents[2][5]; + TQString m_contents[2][5]; void fillContents(); }; @@ -93,13 +94,14 @@ private: /* Class: KWTableTemplateSelector */ /******************************************************************/ -class KWTableTemplateSelector : public QWidget +class KWTableTemplateSelector : public TQWidget { Q_OBJECT + TQ_OBJECT public: enum FormatType { FirstRow = 1 , FirstColumn = 2, LastRow = 4, LastCol =8, Body =16 }; - KWTableTemplateSelector( KWDocument *_doc, QWidget * _parent, const QString & _tableTemplate, int _type = 31 , const char * _name = 0 ); + KWTableTemplateSelector( KWDocument *_doc, TQWidget * _parent, const TQString & _tableTemplate, int _type = 31 , const char * _name = 0 ); KWTableTemplate *getTableTemplate()const ; int getFormatType() const ; @@ -107,12 +109,12 @@ protected: KWDocument *m_doc; KWTableTemplatePreview *preview; - QLabel *lTemplates; - QListBox *lbTemplates; - QPushButton *pbCustomize; + TQLabel *lTemplates; + TQListBox *lbTemplates; + TQPushButton *pbCustomize; - QButtonGroup *bgCustomize; - QCheckBox *cbFirstRow, *cbFirstCol, *cbLastRow, *cbLastCol, *cbBody; + TQButtonGroup *bgCustomize; + TQCheckBox *cbFirstRow, *cbFirstCol, *cbLastRow, *cbLastCol, *cbBody; int selectedTableTemplate; void initFormat( int format); |