diff options
| author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 10:00:25 -0600 | 
|---|---|---|
| committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 10:00:25 -0600 | 
| commit | 1623fe64102c18ab098b79656b80f28cef840756 (patch) | |
| tree | 78f35fef11ea3dbbca1ba4c99937736a1a0894cf /kdevdesigner/designer/actiondnd.cpp | |
| parent | b6ba5d642f3fc7d320e3d6f4650eb259a3a52b04 (diff) | |
| download | tdevelop-1623fe64102c18ab098b79656b80f28cef840756.tar.gz tdevelop-1623fe64102c18ab098b79656b80f28cef840756.zip | |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit b6ba5d642f3fc7d320e3d6f4650eb259a3a52b04.
Diffstat (limited to 'kdevdesigner/designer/actiondnd.cpp')
| -rw-r--r-- | kdevdesigner/designer/actiondnd.cpp | 26 | 
1 files changed, 13 insertions, 13 deletions
| diff --git a/kdevdesigner/designer/actiondnd.cpp b/kdevdesigner/designer/actiondnd.cpp index a4988bda..9eb97cbd 100644 --- a/kdevdesigner/designer/actiondnd.cpp +++ b/kdevdesigner/designer/actiondnd.cpp @@ -38,7 +38,7 @@  #include <tqbitmap.h>  #include <tqdragobject.h>  #include <tqinputdialog.h> -#include <layout.h> +#include <tqlayout.h>  #include <tqmainwindow.h>  #include <tqmenudata.h>  #include <tqmessagebox.h> @@ -140,7 +140,7 @@ QDesignerToolBarSeparator::QDesignerToolBarSeparator(Qt::Orientation o , TQToolB      setOrientation( o );      setBackgroundMode( parent->backgroundMode() );      setBackgroundOrigin( ParentOrigin ); -    setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) ); +    tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum ) );  }  void QDesignerToolBarSeparator::setOrientation( Qt::Orientation o ) @@ -153,9 +153,9 @@ void QDesignerToolBarSeparator::styleChange( TQStyle& )      setOrientation( orient );  } -TQSize QDesignerToolBarSeparator::sizeHint() const +TQSize QDesignerToolBarSeparator::tqsizeHint() const  { -    int extent = tqstyle().pixelMetric( TQStyle::PM_DockWindowSeparatorExtent, +    int extent = tqstyle().tqpixelMetric( TQStyle::PM_DockWindowSeparatorExtent,  				      this );      if ( orient ==Qt::Horizontal )  	return TQSize( extent, 0 ); @@ -172,7 +172,7 @@ void QDesignerToolBarSeparator::paintEvent( TQPaintEvent * )  	flags |= TQStyle::Style_Horizontal;      tqstyle().tqdrawPrimitive( TQStyle::PE_DockWindowSeparator, &p, rect(), -			   colorGroup(), flags ); +			   tqcolorGroup(), flags );  } @@ -349,7 +349,7 @@ void QDesignerToolBar::contextMenuEvent( TQContextMenuEvent *e )      menu.insertItem( i18n( "Delete Toolbar" ), 1 );      int res = menu.exec( e->globalPos() );      if ( res != -1 ) { -	RemoveToolBarCommand *cmd = new RemoveToolBarCommand( i18n( "Delete Toolbar '%1'" ).arg( name() ), +	RemoveToolBarCommand *cmd = new RemoveToolBarCommand( i18n( "Delete Toolbar '%1'" ).tqarg( name() ),  							      formWindow, 0, this );  	formWindow->commandHistory()->addCommand( cmd );  	cmd->execute(); @@ -409,7 +409,7 @@ void QDesignerToolBar::buttonContextMenuEvent( TQContextMenuEvent *e, TQObject *  	int index = actionList.find( a );  	RemoveActionFromToolBarCommand *cmd = new RemoveActionFromToolBarCommand(  	    i18n( "Delete Action '%1' From Toolbar '%2'" ). -	    arg( a->name() ).arg( caption() ), +	    tqarg( a->name() ).tqarg( caption() ),  	    formWindow, a, this, index );  	formWindow->commandHistory()->addCommand( cmd );  	cmd->execute(); @@ -429,7 +429,7 @@ void QDesignerToolBar::buttonContextMenuEvent( TQContextMenuEvent *e, TQObject *  	formWindow->commandHistory()->addCommand( cmd );  	cmd->execute();      } else if ( res == ID_DELTOOLBAR ) { -	RemoveToolBarCommand *cmd = new RemoveToolBarCommand( i18n( "Delete Toolbar '%1'" ).arg( name() ), +	RemoveToolBarCommand *cmd = new RemoveToolBarCommand( i18n( "Delete Toolbar '%1'" ).tqarg( name() ),  							      formWindow, 0, this );  	formWindow->commandHistory()->addCommand( cmd );  	cmd->execute(); @@ -464,7 +464,7 @@ void QDesignerToolBar::removeWidget( TQWidget *w )      int index = actionList.find( a );      RemoveActionFromToolBarCommand *cmd =  	new RemoveActionFromToolBarCommand( i18n( "Delete Action '%1' From Toolbar '%2'" ). -					    arg( a->name() ).arg( caption() ), +					    tqarg( a->name() ).tqarg( caption() ),  					    formWindow, a, this, index );      formWindow->commandHistory()->addCommand( cmd );      cmd->execute(); @@ -487,7 +487,7 @@ void QDesignerToolBar::buttonMouseMoveEvent( TQMouseEvent *e, TQObject *o )      int index = actionList.find( a );      RemoveActionFromToolBarCommand *cmd =  	new RemoveActionFromToolBarCommand( i18n( "Delete Action '%1' From Toolbar '%2'" ). -					    arg( a->name() ).arg( caption() ), +					    tqarg( a->name() ).tqarg( caption() ),  					    formWindow, a, this, index );      formWindow->commandHistory()->addCommand( cmd );      cmd->execute(); @@ -504,7 +504,7 @@ void QDesignerToolBar::buttonMouseMoveEvent( TQMouseEvent *e, TQObject *o )      }      if ( !drag->drag() ) {  	AddActionToToolBarCommand *cmd = new AddActionToToolBarCommand( i18n( "Add Action '%1' to Toolbar '%2'" ). -									arg( a->name() ).arg( caption() ), +									tqarg( a->name() ).tqarg( caption() ),  									formWindow, a, this, index );  	formWindow->commandHistory()->addCommand( cmd );  	cmd->execute(); @@ -571,7 +571,7 @@ void QDesignerToolBar::dropEvent( TQDropEvent *e )      }      AddActionToToolBarCommand *cmd = new AddActionToToolBarCommand( i18n( "Add Action '%1' to Toolbar '%2'" ). -								    arg( a->name() ).arg( caption() ), +								    tqarg( a->name() ).tqarg( caption() ),  								    formWindow, a, this, index );      formWindow->commandHistory()->addCommand( cmd );      cmd->execute(); @@ -699,7 +699,7 @@ void QDesignerToolBar::doInsertWidget( const TQPoint &p )      if ( !insertAnchor )  	index = 0;      AddActionToToolBarCommand *cmd = new AddActionToToolBarCommand( i18n( "Add Widget '%1' to Toolbar '%2'" ). -								    arg( w->name() ).arg( caption() ), +								    tqarg( w->name() ).tqarg( caption() ),  								    formWindow, a, this, index );      formWindow->commandHistory()->addCommand( cmd );      cmd->execute(); | 
