diff options
Diffstat (limited to 'kommander/editor/actiondnd.h')
-rw-r--r-- | kommander/editor/actiondnd.h | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/kommander/editor/actiondnd.h b/kommander/editor/actiondnd.h index 5d1c314d..66a87c5b 100644 --- a/kommander/editor/actiondnd.h +++ b/kommander/editor/actiondnd.h @@ -30,17 +30,17 @@ #include <tqtoolbar.h> #include <tqguardedptr.h> -class TQDesignerPopupMenu; -class TQDesignerIndicatorWidget; +class QDesignerPopupMenu; +class QDesignerIndicatorWidget; class FormWindow; -class TQDesignerActionGroup : public TQActionGroup +class QDesignerActionGroup : public TQActionGroup { Q_OBJECT TQ_OBJECT public: - TQDesignerActionGroup( TQObject *tqparent ) + QDesignerActionGroup( TQObject *tqparent ) : TQActionGroup( !tqparent || tqparent->inherits( TQACTIONGROUP_OBJECT_NAME_STRING ) ? tqparent : 0 ), wid( 0 ), idx( -1 ) {} TQWidget *widget() const { return wid; } @@ -65,15 +65,15 @@ private: }; -class TQDesignerAction : public TQAction +class QDesignerAction : public TQAction { Q_OBJECT TQ_OBJECT public: - TQDesignerAction( TQObject *tqparent ) + QDesignerAction( TQObject *tqparent ) : TQAction( !tqparent || tqparent->inherits( TQACTIONGROUP_OBJECT_NAME_STRING ) ? tqparent : 0 ), wid( 0 ), idx( -1 ), widgetToInsert( 0 ) {} - TQDesignerAction( TQWidget *w, TQObject *tqparent ) + QDesignerAction( TQWidget *w, TQObject *tqparent ) : TQAction( !tqparent || tqparent->inherits( TQACTIONGROUP_OBJECT_NAME_STRING ) ? tqparent : 0 ), wid( 0 ), idx( -1 ), widgetToInsert( w ) {} TQWidget *widget() const { return wid; } @@ -100,13 +100,13 @@ private: }; -class TQDesignerToolBarSeparator : public TQWidget +class QDesignerToolBarSeparator : public TQWidget { Q_OBJECT TQ_OBJECT public: - TQDesignerToolBarSeparator( Qt::Orientation, TQToolBar *tqparent, const char* name=0 ); + QDesignerToolBarSeparator( Qt::Orientation, TQToolBar *tqparent, const char* name=0 ); TQSize tqsizeHint() const; Qt::Orientation orientation() const { return orient; } @@ -120,13 +120,13 @@ private: }; -class TQSeparatorAction : public TQAction +class QSeparatorAction : public TQAction { Q_OBJECT TQ_OBJECT public: - TQSeparatorAction( TQObject *tqparent ); + QSeparatorAction( TQObject *tqparent ); bool addTo( TQWidget *w ); bool removeFrom( TQWidget *w ); @@ -139,14 +139,14 @@ private: }; -class TQDesignerToolBar : public TQToolBar +class QDesignerToolBar : public TQToolBar { Q_OBJECT TQ_OBJECT public: - TQDesignerToolBar( TQMainWindow *mw ); - TQDesignerToolBar( TQMainWindow *mw, Dock dock ); + QDesignerToolBar( TQMainWindow *mw ); + QDesignerToolBar( TQMainWindow *mw, Dock dock ); TQPtrList<TQAction> insertedActions() const { return actionList; } void addAction( TQAction *a ); @@ -192,24 +192,24 @@ private: TQPtrList<TQAction> actionList; TQMap<TQWidget*, TQAction*> actionMap; TQPoint dragStartPos; - TQDesignerIndicatorWidget *indicator; + QDesignerIndicatorWidget *indicator; bool widgetInserting; FormWindow *formWindow; }; -class TQDesignerMenuBar : public TQMenuBar +class QDesignerMenuBar : public TQMenuBar { Q_OBJECT TQ_OBJECT - friend class TQDesignerPopupMenu; + friend class QDesignerPopupMenu; TQ_PROPERTY( int itemNumber WRITE setItemNumber READ itemNumber ) TQ_PROPERTY( TQString itemText WRITE setItemText READ itemText ) TQ_PROPERTY( TQCString itemName WRITE setItemName READ itemName ) public: - TQDesignerMenuBar( TQWidget *mw ); + QDesignerMenuBar( TQWidget *mw ); void setItemNumber( int num ); int itemNumber() const; @@ -241,19 +241,19 @@ private: bool mousePressed; TQPoint lastIndicatorPos; int insertAt; - TQDesignerIndicatorWidget *indicator; + QDesignerIndicatorWidget *indicator; FormWindow *formWindow; int oldPos; }; -class TQDesignerPopupMenu : public TQPopupMenu +class QDesignerPopupMenu : public TQPopupMenu { Q_OBJECT TQ_OBJECT public: - TQDesignerPopupMenu( TQWidget *w ); + QDesignerPopupMenu( TQWidget *w ); TQPtrList<TQAction> insertedActions() const { return actionList; } void addAction( TQAction *a ); void reInsert(); @@ -288,7 +288,7 @@ private: TQPtrList<TQAction> actionList; TQPoint dragStartPos; bool mousePressed; - TQDesignerIndicatorWidget *indicator; + QDesignerIndicatorWidget *indicator; FormWindow *formWindow; TQGuardedPtr<TQPopupMenu> popupMenu; TQPoint popupPos; @@ -296,13 +296,13 @@ private: }; -class TQDesignerIndicatorWidget : public TQWidget +class QDesignerIndicatorWidget : public TQWidget { Q_OBJECT TQ_OBJECT public: - TQDesignerIndicatorWidget( TQWidget *p ) + QDesignerIndicatorWidget( TQWidget *p ) : TQWidget( p, "qt_dockwidget_internal" ) { setBackgroundColor( red ); } |