summaryrefslogtreecommitdiffstats
path: root/tools/designer/designer/actiondnd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/designer/designer/actiondnd.cpp')
-rw-r--r--tools/designer/designer/actiondnd.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/tools/designer/designer/actiondnd.cpp b/tools/designer/designer/actiondnd.cpp
index def64548..b0e619c2 100644
--- a/tools/designer/designer/actiondnd.cpp
+++ b/tools/designer/designer/actiondnd.cpp
@@ -110,7 +110,7 @@ bool TQDesignerAction::addTo( TQWidget *w )
if ( !widgetToInsert )
return TQAction::addTo( w );
- if ( ::qt_cast<TQPopupMenu*>(w) )
+ if ( ::tqt_cast<TQPopupMenu*>(w) )
return FALSE;
widgetToInsert->reparent( w, TQPoint( 0, 0 ), FALSE );
@@ -201,11 +201,11 @@ TQSeparatorAction::TQSeparatorAction( TQObject *parent )
bool TQSeparatorAction::addTo( TQWidget *w )
{
- if ( ::qt_cast<TQToolBar*>(w) ) {
+ if ( ::tqt_cast<TQToolBar*>(w) ) {
TQToolBar *tb = (TQToolBar*)w;
wid = new TQDesignerToolBarSeparator( tb->orientation(), tb );
return TRUE;
- } else if ( ::qt_cast<TQPopupMenu*>(w) ) {
+ } else if ( ::tqt_cast<TQPopupMenu*>(w) ) {
idx = ( (TQPopupMenu*)w )->count();
( (TQPopupMenu*)w )->insertSeparator( idx );
return TRUE;
@@ -215,10 +215,10 @@ bool TQSeparatorAction::addTo( TQWidget *w )
bool TQSeparatorAction::removeFrom( TQWidget *w )
{
- if ( ::qt_cast<TQToolBar*>(w) ) {
+ if ( ::tqt_cast<TQToolBar*>(w) ) {
delete wid;
return TRUE;
- } else if ( ::qt_cast<TQPopupMenu*>(w) ) {
+ } else if ( ::tqt_cast<TQPopupMenu*>(w) ) {
( (TQPopupMenu*)w )->removeItemAt( idx );
return TRUE;
}
@@ -267,7 +267,7 @@ void TQDesignerToolBar::findFormWindow()
{
TQWidget *w = this;
while ( w ) {
- formWindow = ::qt_cast<FormWindow*>(w);
+ formWindow = ::tqt_cast<FormWindow*>(w);
if ( formWindow )
break;
w = w->parentWidget();
@@ -278,10 +278,10 @@ void TQDesignerToolBar::addAction( TQAction *a )
{
actionList.append( a );
connect( a, SIGNAL( destroyed() ), this, SLOT( actionRemoved() ) );
- if ( ::qt_cast<TQActionGroup*>(a) ) {
+ if ( ::tqt_cast<TQActionGroup*>(a) ) {
( (TQDesignerActionGroup*)a )->widget()->installEventFilter( this );
actionMap.insert( ( (TQDesignerActionGroup*)a )->widget(), a );
- } else if ( ::qt_cast<TQSeparatorAction*>(a) ) {
+ } else if ( ::tqt_cast<TQSeparatorAction*>(a) ) {
( (TQSeparatorAction*)a )->widget()->installEventFilter( this );
actionMap.insert( ( (TQSeparatorAction*)a )->widget(), a );
} else {
@@ -292,7 +292,7 @@ void TQDesignerToolBar::addAction( TQAction *a )
static void fixObject( TQObject *&o )
{
- while ( o && o->parent() && !::qt_cast<TQDesignerToolBar*>(o->parent()) )
+ while ( o && o->parent() && !::tqt_cast<TQDesignerToolBar*>(o->parent()) )
o = o->parent();
}
@@ -410,7 +410,7 @@ void TQDesignerToolBar::buttonContextMenuEvent( TQContextMenuEvent *e, TQObject
const int ID_SEP = 2;
const int ID_DELTOOLBAR = 3;
TQMap<TQWidget*, TQAction*>::Iterator it = actionMap.find( (TQWidget*)o );
- if ( it != actionMap.end() && ::qt_cast<TQSeparatorAction*>(*it) )
+ if ( it != actionMap.end() && ::tqt_cast<TQSeparatorAction*>(*it) )
menu.insertItem( tr( "Delete Separator" ), ID_DELETE );
else
menu.insertItem( tr( "Delete Item" ), ID_DELETE );
@@ -511,11 +511,11 @@ void TQDesignerToolBar::buttonMouseMoveEvent( TQMouseEvent *e, TQObject *o )
TQApplication::sendPostedEvents();
adjustSize();
- TQString type = ::qt_cast<TQActionGroup*>(a) ? TQString( "application/x-designer-actiongroup" ) :
- ::qt_cast<TQSeparatorAction*>(a) ? TQString( "application/x-designer-separator" ) : TQString( "application/x-designer-actions" );
+ TQString type = ::tqt_cast<TQActionGroup*>(a) ? TQString( "application/x-designer-actiongroup" ) :
+ ::tqt_cast<TQSeparatorAction*>(a) ? TQString( "application/x-designer-separator" ) : TQString( "application/x-designer-actions" );
TQStoredDrag *drag = new ActionDrag( type, a, this );
drag->setPixmap( a->iconSet().pixmap() );
- if ( ::qt_cast<TQDesignerAction*>(a) ) {
+ if ( ::tqt_cast<TQDesignerAction*>(a) ) {
if ( formWindow->widgets()->find( ( (TQDesignerAction*)a )->widget() ) )
formWindow->selectWidget( ( (TQDesignerAction*)a )->widget(), FALSE );
}
@@ -572,11 +572,11 @@ void TQDesignerToolBar::dropEvent( TQDropEvent *e )
if ( e->provides( "application/x-designer-actions" ) ||
e->provides( "application/x-designer-separator" ) ) {
if ( e->provides( "application/x-designer-actions" ) )
- a = ::qt_cast<TQDesignerAction*>(ActionDrag::action());
+ a = ::tqt_cast<TQDesignerAction*>(ActionDrag::action());
else
- a = ::qt_cast<TQSeparatorAction*>(ActionDrag::action());
+ a = ::tqt_cast<TQSeparatorAction*>(ActionDrag::action());
} else {
- a = ::qt_cast<TQDesignerActionGroup*>(ActionDrag::action());
+ a = ::tqt_cast<TQDesignerActionGroup*>(ActionDrag::action());
}
if ( actionList.findRef( a ) != -1 ) {
@@ -605,14 +605,14 @@ void TQDesignerToolBar::reInsert()
clear();
for ( a = actionList.first(); a; a = actionList.next() ) {
a->addTo( this );
- if ( ::qt_cast<TQActionGroup*>(a) ) {
+ if ( ::tqt_cast<TQActionGroup*>(a) ) {
actionMap.insert( ( (TQDesignerActionGroup*)a )->widget(), a );
if ( ( (TQDesignerActionGroup*)a )->widget() )
( (TQDesignerActionGroup*)a )->widget()->installEventFilter( this );
- } else if ( ::qt_cast<TQDesignerAction*>(a) ) {
+ } else if ( ::tqt_cast<TQDesignerAction*>(a) ) {
actionMap.insert( ( (TQDesignerAction*)a )->widget(), a );
( (TQDesignerAction*)a )->widget()->installEventFilter( this );
- } else if ( ::qt_cast<TQSeparatorAction*>(a) ) {
+ } else if ( ::tqt_cast<TQSeparatorAction*>(a) ) {
actionMap.insert( ( (TQSeparatorAction*)a )->widget(), a );
( (TQSeparatorAction*)a )->widget()->installEventFilter( this );
}
@@ -724,7 +724,7 @@ void TQDesignerToolBar::doInsertWidget( const TQPoint &p )
void TQDesignerToolBar::clear()
{
for ( TQAction *a = actionList.first(); a; a = actionList.next() ) {
- if ( ::qt_cast<TQDesignerAction*>(a) )
+ if ( ::tqt_cast<TQDesignerAction*>(a) )
( (TQDesignerAction*)a )->remove();
}
TQToolBar::clear();