summaryrefslogtreecommitdiffstats
path: root/kommander
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-10-30 16:48:40 -0500
committerTimothy Pearson <[email protected]>2012-10-30 16:48:40 -0500
commit27ccd2aacf0aa799d4adca6b3bf1457ce24e2592 (patch)
tree572c15b4a2825860243ebb75dd8379323bd60a9e /kommander
parent8a511b5ac9055821d5eba49a6706dd9065d0769a (diff)
downloadtdewebdev-27ccd2aacf0aa799d4adca6b3bf1457ce24e2592.tar.gz
tdewebdev-27ccd2aacf0aa799d4adca6b3bf1457ce24e2592.zip
Fix FTBFS on TQt3
Diffstat (limited to 'kommander')
-rw-r--r--kommander/editor/actiondnd.h8
-rw-r--r--kommander/editor/layout.h8
-rw-r--r--kommander/editor/resource.h2
-rw-r--r--kommander/editor/widgetfactory.h14
4 files changed, 16 insertions, 16 deletions
diff --git a/kommander/editor/actiondnd.h b/kommander/editor/actiondnd.h
index b15d47ff..b71d2c2c 100644
--- a/kommander/editor/actiondnd.h
+++ b/kommander/editor/actiondnd.h
@@ -106,17 +106,17 @@ class QDesignerToolBarSeparator : public TQWidget
public:
- QDesignerToolBarSeparator( Qt::Orientation, TQToolBar *parent, const char* name=0 );
+ QDesignerToolBarSeparator( Orientation, TQToolBar *parent, const char* name=0 );
TQSize sizeHint() const;
- Qt::Orientation orientation() const { return orient; }
+ Orientation orientation() const { return orient; }
public slots:
- void setOrientation( Qt::Orientation );
+ void setOrientation( Orientation );
protected:
void styleChange( TQStyle& );
void paintEvent( TQPaintEvent * );
private:
- Qt::Orientation orient;
+ Orientation orient;
};
diff --git a/kommander/editor/layout.h b/kommander/editor/layout.h
index e42759cb..ee266127 100644
--- a/kommander/editor/layout.h
+++ b/kommander/editor/layout.h
@@ -115,7 +115,7 @@ class Spacer : public TQWidget
TQ_OVERRIDE( TQCString name )
- TQ_PROPERTY( Qt::Orientation orientation READ orientation WRITE setOrientation )
+ TQ_PROPERTY( Orientation orientation READ orientation WRITE setOrientation )
TQ_ENUMS( SizeType )
TQ_PROPERTY( SizeType sizeType READ sizeType WRITE setSizeType )
TQ_PROPERTY( TQSize sizeHint READ sizeHint WRITE setSizeHint DESIGNABLE true STORED true )
@@ -140,8 +140,8 @@ public:
void setSizeType( SizeType t );
SizeType sizeType() const;
int alignment() const;
- Qt::Orientation orientation() const;
- void setOrientation( Qt::Orientation o );
+ Orientation orientation() const;
+ void setOrientation( Orientation o );
void setInteraciveMode( bool b ) { interactive = b; };
void setSizeHint( const TQSize &s );
@@ -149,7 +149,7 @@ protected:
void paintEvent( TQPaintEvent *e );
void resizeEvent( TQResizeEvent* e );
void updateMask();
- Qt::Orientation orient;
+ Orientation orient;
bool interactive;
TQSize sh;
};
diff --git a/kommander/editor/resource.h b/kommander/editor/resource.h
index c3304acc..511d5273 100644
--- a/kommander/editor/resource.h
+++ b/kommander/editor/resource.h
@@ -104,7 +104,7 @@ private:
#endif
TQObject *createObject( const TQDomElement &e, TQWidget *parent, TQLayout* layout = 0 );
- TQWidget *createSpacer( const TQDomElement &e, TQWidget *parent, TQLayout *layout, Qt::Orientation o );
+ TQWidget *createSpacer( const TQDomElement &e, TQWidget *parent, TQLayout *layout, TQt::Orientation o );
void createItem( const TQDomElement &e, TQWidget *widget, TQListViewItem *i = 0 );
void createColumn( const TQDomElement &e, TQWidget *widget );
void setObjectProperty( TQObject* widget, const TQString &prop, const TQDomElement &e);
diff --git a/kommander/editor/widgetfactory.h b/kommander/editor/widgetfactory.h
index 913e855c..2341b676 100644
--- a/kommander/editor/widgetfactory.h
+++ b/kommander/editor/widgetfactory.h
@@ -71,7 +71,7 @@ public:
};
static TQWidget *create( int id, TQWidget *parent, const char *name = 0, bool init = TRUE,
- const TQRect *rect = 0, Qt::Orientation orient = Qt::Horizontal );
+ const TQRect *rect = 0, Orientation orient = TQt::Horizontal );
static TQLayout *createLayout( TQWidget *widget, TQLayout* layout, LayoutType type );
static void deleteLayout( TQWidget *widget );
@@ -102,7 +102,7 @@ public:
private:
static TQWidget *createWidget( const TQString &className, TQWidget *parent, const char *name, bool init,
- const TQRect *r = 0, Qt::Orientation orient = Qt::Horizontal );
+ const TQRect *r = 0, Orientation orient = TQt::Horizontal );
static TQWidget *createCustomWidget( TQWidget *parent, const char *name, MetaDataBase::CustomWidget *w );
};
@@ -281,7 +281,7 @@ class Line : public TQFrame
Q_OBJECT
- TQ_PROPERTY( Qt::Orientation orientation READ orientation WRITE setOrientation )
+ TQ_PROPERTY( Orientation orientation READ orientation WRITE setOrientation )
TQ_OVERRIDE( int frameWidth DESIGNABLE false )
TQ_OVERRIDE( Shape frameShape DESIGNABLE false )
TQ_OVERRIDE( TQRect frameRect DESIGNABLE false )
@@ -292,14 +292,14 @@ public:
setFrameStyle( HLine | Sunken );
}
- void setOrientation( Qt::Orientation orient ) {
- if ( orient ==Qt::Horizontal )
+ void setOrientation( Orientation orient ) {
+ if ( orient ==TQt::Horizontal )
setFrameShape( HLine );
else
setFrameShape( VLine );
}
- Qt::Orientation orientation() const {
- return frameShape() == HLine ?Qt::Horizontal :Qt::Vertical;
+ Orientation orientation() const {
+ return frameShape() == HLine ?TQt::Horizontal :TQt::Vertical;
}
};