diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-16 19:02:47 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-16 19:02:47 +0000 |
commit | e985f7e545f4739493965aad69bbecb136dc9346 (patch) | |
tree | 54afd409d8acd6202dd8ab611d24e78c28e4c0a0 /kommander/editor/propertyeditor.h | |
parent | f7670c198945adc3b95ad69a959fe5f8ae55b493 (diff) | |
download | tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.tar.gz tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.zip |
TQt4 port kdewebdev
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kommander/editor/propertyeditor.h')
-rw-r--r-- | kommander/editor/propertyeditor.h | 52 |
1 files changed, 35 insertions, 17 deletions
diff --git a/kommander/editor/propertyeditor.h b/kommander/editor/propertyeditor.h index 42e64e3e..262f0376 100644 --- a/kommander/editor/propertyeditor.h +++ b/kommander/editor/propertyeditor.h @@ -1,7 +1,7 @@ /********************************************************************** ** Copyright (C) 2000 Trolltech AS. All rights reserved. ** -** This file is part of Qt Designer. +** This file is part of TQt Designer. ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software @@ -44,11 +44,11 @@ class FormWindow; class TQCloseEvent; class TQResizeEvent; class PropertyWhatsThis; -class QDateEdit; -class QTimeEdit; -class QDateTimeEdit; +class TQDateEdit; +class TQTimeEdit; +class TQDateTimeEdit; -class PropertyItem : public QListViewItem +class PropertyItem : public TQListViewItem { public: PropertyItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, const TQString &propName ); @@ -118,7 +118,7 @@ private: bool open, changed; PropertyItem *property; TQString propertyName; - TQPtrList<PropertyItem> children; + TQPtrList<PropertyItem> tqchildren; TQColor backColor; TQPushButton *resetButton; @@ -128,6 +128,7 @@ class PropertyTextItem : public TQObject, public PropertyItem { Q_OBJECT + TQ_OBJECT public: PropertyTextItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, @@ -164,6 +165,7 @@ class PropertyBoolItem : public TQObject, public PropertyItem { Q_OBJECT + TQ_OBJECT public: PropertyBoolItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, const TQString &propName ); @@ -188,6 +190,7 @@ class PropertyIntItem : public TQObject, public PropertyItem { Q_OBJECT + TQ_OBJECT public: PropertyIntItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, @@ -213,6 +216,7 @@ class PropertyDoubleItem : public TQObject, public PropertyItem { Q_OBJECT + TQ_OBJECT public: PropertyDoubleItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, @@ -236,6 +240,7 @@ class PropertyListItem : public TQObject, public PropertyItem { Q_OBJECT + TQ_OBJECT public: PropertyListItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, @@ -271,6 +276,7 @@ class PropertyFontItem : public TQObject, public PropertyItem { Q_OBJECT + TQ_OBJECT public: PropertyFontItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, const TQString &propName ); @@ -300,6 +306,7 @@ class PropertyCoordItem : public TQObject, public PropertyItem { Q_OBJECT + TQ_OBJECT public: enum Type { Rect, Size, Point }; @@ -329,10 +336,11 @@ class PropertyColorItem : public TQObject, public PropertyItem { Q_OBJECT + TQ_OBJECT public: PropertyColorItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, - const TQString &propName, bool children ); + const TQString &propName, bool tqchildren ); ~PropertyColorItem(); virtual void createChildren(); @@ -363,6 +371,7 @@ class PropertyPixmapItem : public TQObject, public PropertyItem { Q_OBJECT + TQ_OBJECT public: PropertyPixmapItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, @@ -393,6 +402,7 @@ class PropertySizePolicyItem : public TQObject, public PropertyItem { Q_OBJECT + TQ_OBJECT public: PropertySizePolicyItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, @@ -419,6 +429,7 @@ class PropertyPaletteItem : public TQObject, public PropertyItem { Q_OBJECT + TQ_OBJECT public: PropertyPaletteItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, @@ -447,6 +458,7 @@ class PropertyCursorItem : public TQObject, public PropertyItem { Q_OBJECT + TQ_OBJECT public: PropertyCursorItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, @@ -472,6 +484,7 @@ class PropertyDatabaseItem : public TQObject, public PropertyItem { Q_OBJECT + TQ_OBJECT public: PropertyDatabaseItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, const TQString &propName, bool wField ); @@ -495,9 +508,10 @@ private: }; -class PropertyList : public QListView +class PropertyList : public TQListView { Q_OBJECT + TQ_OBJECT public: PropertyList( PropertyEditor *e ); @@ -550,12 +564,13 @@ private: }; -class PropertyEditor : public QTabWidget +class PropertyEditor : public TQTabWidget { Q_OBJECT + TQ_OBJECT public: - PropertyEditor( TQWidget *parent ); + PropertyEditor( TQWidget *tqparent ); TQObject *widget() const; @@ -575,7 +590,7 @@ public: TQString currentProperty() const; TQString classOfCurrentProperty() const; - TQMetaObject* metaObjectOfCurrentProperty() const; + TQMetaObject* tqmetaObjectOfCurrentProperty() const; void resetFocus(); @@ -602,6 +617,7 @@ class PropertyDateItem : public TQObject, public PropertyItem { Q_OBJECT + TQ_OBJECT public: PropertyDateItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, const TQString &propName ); @@ -616,8 +632,8 @@ private slots: void setValue(); private: - QDateEdit *lined(); - TQGuardedPtr<QDateEdit> lin; + TQDateEdit *lined(); + TQGuardedPtr<TQDateEdit> lin; }; @@ -625,6 +641,7 @@ class PropertyTimeItem : public TQObject, public PropertyItem { Q_OBJECT + TQ_OBJECT public: PropertyTimeItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, const TQString &propName ); @@ -639,8 +656,8 @@ private slots: void setValue(); private: - QTimeEdit *lined(); - TQGuardedPtr<QTimeEdit> lin; + TQTimeEdit *lined(); + TQGuardedPtr<TQTimeEdit> lin; }; @@ -648,6 +665,7 @@ class PropertyDateTimeItem : public TQObject, public PropertyItem { Q_OBJECT + TQ_OBJECT public: PropertyDateTimeItem( PropertyList *l, PropertyItem *after, PropertyItem *prop, const TQString &propName ); @@ -662,8 +680,8 @@ private slots: void setValue(); private: - QDateTimeEdit *lined(); - TQGuardedPtr<QDateTimeEdit> lin; + TQDateTimeEdit *lined(); + TQGuardedPtr<TQDateTimeEdit> lin; }; |