summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/actiondnd.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-11-26 02:33:14 +0900
committerMichele Calgaro <[email protected]>2023-11-26 02:33:14 +0900
commit676a13490dc7163e5c99a0f39094a2a4148d3963 (patch)
tree2eff206a80899e040b1c6221e0c4fdcb9b38d237 /kdevdesigner/designer/actiondnd.cpp
parentaefcba8280fc1520675866143baf2f8c020ec82e (diff)
downloadtdevelop-676a13490dc7163e5c99a0f39094a2a4148d3963.tar.gz
tdevelop-676a13490dc7163e5c99a0f39094a2a4148d3963.zip
Replaced various '#define' with actual strings - part 4
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kdevdesigner/designer/actiondnd.cpp')
-rw-r--r--kdevdesigner/designer/actiondnd.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/kdevdesigner/designer/actiondnd.cpp b/kdevdesigner/designer/actiondnd.cpp
index 9539a372..071845c9 100644
--- a/kdevdesigner/designer/actiondnd.cpp
+++ b/kdevdesigner/designer/actiondnd.cpp
@@ -105,7 +105,7 @@ bool QDesignerAction::addTo( TQWidget *w )
if ( !widgetToInsert )
return TQAction::addTo( w );
- if ( ::tqqt_cast<TQPopupMenu*>(w) )
+ if ( ::tqt_cast<TQPopupMenu*>(w) )
return FALSE;
widgetToInsert->reparent( w, TQPoint( 0, 0 ), FALSE );
@@ -184,11 +184,11 @@ QSeparatorAction::QSeparatorAction( TQObject *parent )
bool QSeparatorAction::addTo( TQWidget *w )
{
- if ( ::tqqt_cast<TQToolBar*>(w) ) {
+ if ( ::tqt_cast<TQToolBar*>(w) ) {
TQToolBar *tb = (TQToolBar*)w;
wid = new QDesignerToolBarSeparator( tb->orientation(), tb );
return TRUE;
- } else if ( ::tqqt_cast<TQPopupMenu*>(w) ) {
+ } else if ( ::tqt_cast<TQPopupMenu*>(w) ) {
idx = ( (TQPopupMenu*)w )->count();
( (TQPopupMenu*)w )->insertSeparator( idx );
return TRUE;
@@ -198,10 +198,10 @@ bool QSeparatorAction::addTo( TQWidget *w )
bool QSeparatorAction::removeFrom( TQWidget *w )
{
- if ( ::tqqt_cast<TQToolBar*>(w) ) {
+ if ( ::tqt_cast<TQToolBar*>(w) ) {
delete wid;
return TRUE;
- } else if ( ::tqqt_cast<TQPopupMenu*>(w) ) {
+ } else if ( ::tqt_cast<TQPopupMenu*>(w) ) {
( (TQPopupMenu*)w )->removeItemAt( idx );
return TRUE;
}
@@ -250,7 +250,7 @@ void QDesignerToolBar::findFormWindow()
{
TQWidget *w = this;
while ( w ) {
- formWindow = ::tqqt_cast<FormWindow*>(w);
+ formWindow = ::tqt_cast<FormWindow*>(w);
if ( formWindow )
break;
w = w->parentWidget();
@@ -261,10 +261,10 @@ void QDesignerToolBar::addAction( TQAction *a )
{
actionList.append( a );
connect( a, TQT_SIGNAL( destroyed() ), this, TQT_SLOT( actionRemoved() ) );
- if ( ::tqqt_cast<TQActionGroup*>(a) ) {
+ if ( ::tqt_cast<TQActionGroup*>(a) ) {
( (QDesignerActionGroup*)a )->widget()->installEventFilter( this );
actionMap.insert( ( (QDesignerActionGroup*)a )->widget(), a );
- } else if ( ::tqqt_cast<QSeparatorAction*>(a) ) {
+ } else if ( ::tqt_cast<QSeparatorAction*>(a) ) {
( (QSeparatorAction*)a )->widget()->installEventFilter( this );
actionMap.insert( ( (QSeparatorAction*)a )->widget(), a );
} else {
@@ -275,7 +275,7 @@ void QDesignerToolBar::addAction( TQAction *a )
static void fixObject( TQObject *&o )
{
- while ( o && o->parent() && !::tqqt_cast<QDesignerToolBar*>(o->parent()) )
+ while ( o && o->parent() && !::tqt_cast<QDesignerToolBar*>(o->parent()) )
o = o->parent();
}
@@ -393,7 +393,7 @@ void QDesignerToolBar::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() && ::tqqt_cast<QSeparatorAction*>(*it) )
+ if ( it != actionMap.end() && ::tqt_cast<QSeparatorAction*>(*it) )
menu.insertItem( i18n( "Delete Separator" ), ID_DELETE );
else
menu.insertItem( i18n( "Delete Item" ), ID_DELETE );
@@ -494,11 +494,11 @@ void QDesignerToolBar::buttonMouseMoveEvent( TQMouseEvent *e, TQObject *o )
TQApplication::sendPostedEvents();
adjustSize();
- TQString type = ::tqqt_cast<TQActionGroup*>(a) ? TQString( "application/x-designer-actiongroup" ) :
- ::tqqt_cast<QSeparatorAction*>(a) ? TQString( "application/x-designer-separator" ) : TQString( "application/x-designer-actions" );
+ TQString type = ::tqt_cast<TQActionGroup*>(a) ? TQString( "application/x-designer-actiongroup" ) :
+ ::tqt_cast<QSeparatorAction*>(a) ? TQString( "application/x-designer-separator" ) : TQString( "application/x-designer-actions" );
TQStoredDrag *drag = new ActionDrag( type, a, this );
drag->setPixmap( a->iconSet().pixmap() );
- if ( ::tqqt_cast<QDesignerAction*>(a) ) {
+ if ( ::tqt_cast<QDesignerAction*>(a) ) {
if ( formWindow->widgets()->find( ( (QDesignerAction*)a )->widget() ) )
formWindow->selectWidget( ( TQT_TQOBJECT(( (QDesignerAction*)a )->widget())), FALSE );
}
@@ -555,11 +555,11 @@ void QDesignerToolBar::dropEvent( TQDropEvent *e )
if ( e->provides( "application/x-designer-actions" ) ||
e->provides( "application/x-designer-separator" ) ) {
if ( e->provides( "application/x-designer-actions" ) )
- a = ::tqqt_cast<QDesignerAction*>(ActionDrag::action());
+ a = ::tqt_cast<QDesignerAction*>(ActionDrag::action());
else
- a = ::tqqt_cast<QSeparatorAction*>(ActionDrag::action());
+ a = ::tqt_cast<QSeparatorAction*>(ActionDrag::action());
} else {
- a = ::tqqt_cast<QDesignerActionGroup*>(ActionDrag::action());
+ a = ::tqt_cast<QDesignerActionGroup*>(ActionDrag::action());
}
if ( actionList.findRef( a ) != -1 ) {
@@ -588,14 +588,14 @@ void QDesignerToolBar::reInsert()
clear();
for ( a = actionList.first(); a; a = actionList.next() ) {
a->addTo( this );
- if ( ::tqqt_cast<TQActionGroup*>(a) ) {
+ if ( ::tqt_cast<TQActionGroup*>(a) ) {
actionMap.insert( ( (QDesignerActionGroup*)a )->widget(), a );
if ( ( (QDesignerActionGroup*)a )->widget() )
( (QDesignerActionGroup*)a )->widget()->installEventFilter( this );
- } else if ( ::tqqt_cast<QDesignerAction*>(a) ) {
+ } else if ( ::tqt_cast<QDesignerAction*>(a) ) {
actionMap.insert( ( (QDesignerAction*)a )->widget(), a );
( (QDesignerAction*)a )->widget()->installEventFilter( this );
- } else if ( ::tqqt_cast<QSeparatorAction*>(a) ) {
+ } else if ( ::tqt_cast<QSeparatorAction*>(a) ) {
actionMap.insert( ( (QSeparatorAction*)a )->widget(), a );
( (QSeparatorAction*)a )->widget()->installEventFilter( this );
}
@@ -709,7 +709,7 @@ void QDesignerToolBar::doInsertWidget( const TQPoint &p )
void QDesignerToolBar::clear()
{
for ( TQAction *a = actionList.first(); a; a = actionList.next() ) {
- if ( ::tqqt_cast<QDesignerAction*>(a) )
+ if ( ::tqt_cast<QDesignerAction*>(a) )
( (QDesignerAction*)a )->remove();
}
TQToolBar::clear();