From face65bf8a74a6af70d9ae2ffc381ddc46485539 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 21 Dec 2011 14:05:09 -0600 Subject: Rename obsolete tq methods to standard names --- knights/console.cpp | 2 +- knights/knights.cpp | 2 +- knights/setpagedisplay.cpp | 2 +- knights/setpageengines.cpp | 2 +- knights/setpageservers.cpp | 4 ++-- knights/tabbox.cpp | 2 +- knights/thinbuttons.cpp | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/knights/console.cpp b/knights/console.cpp index 326acc6..443a1cc 100644 --- a/knights/console.cpp +++ b/knights/console.cpp @@ -32,7 +32,7 @@ Console::Console(TQWidget *parent, { myResource = Rsrc; SelfMoving = FALSE; - TQStyle& Style = TQApplication::tqstyle(); + TQStyle& Style = TQApplication::style(); margin = Style.defaultFrameWidth(); myTextView = new KnightsTextView( this, myResource ); diff --git a/knights/knights.cpp b/knights/knights.cpp index a82895a..30e4a8e 100644 --- a/knights/knights.cpp +++ b/knights/knights.cpp @@ -383,7 +383,7 @@ void Knights::initMenus( void ) /////////////////////////////////////// void Knights::resizeMainFrame(void) { - TQStyle& Style = TQApplication::tqstyle(); + TQStyle& Style = TQApplication::style(); TQSize S_Message; TQSize S_Menu; diff --git a/knights/setpagedisplay.cpp b/knights/setpagedisplay.cpp index a05b33a..ba2122d 100644 --- a/knights/setpagedisplay.cpp +++ b/knights/setpagedisplay.cpp @@ -28,7 +28,7 @@ setPageDisplay::setPageDisplay(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(parent) { - TQStyle& Style = TQApplication::tqstyle(); + TQStyle& Style = TQApplication::style(); Resource = Rsrc; margin = Style.defaultFrameWidth(); NewBoards = 0; diff --git a/knights/setpageengines.cpp b/knights/setpageengines.cpp index baac2bb..b3fe11b 100644 --- a/knights/setpageengines.cpp +++ b/knights/setpageengines.cpp @@ -73,7 +73,7 @@ setPageEngines::setPageEngines(TQWidget *parent, resource *Rsrc ) : TQVBoxLayou Engines_Button_Add = Engines_ButtonBox->addButton( i18n( "&Add..." ) ); Engines_Button_Change = Engines_ButtonBox->addButton( i18n( "&Modify..." ) ); Engines_Button_Delete = Engines_ButtonBox->addButton( i18n( "&Delete..." ) ); - Engines_ButtonBox->tqlayout(); + Engines_ButtonBox->layout(); BuildEngineData(); diff --git a/knights/setpageservers.cpp b/knights/setpageservers.cpp index 068e052..ffd6a4f 100644 --- a/knights/setpageservers.cpp +++ b/knights/setpageservers.cpp @@ -21,7 +21,7 @@ setPageServers::setPageServers(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(parent) { - TQStyle& Style = TQApplication::tqstyle(); + TQStyle& Style = TQApplication::style(); margin = Style.defaultFrameWidth(); Resource = Rsrc; Servers_ListView = NULL; @@ -77,7 +77,7 @@ void setPageServers::initTab1( void ) Servers_Button_Add = Servers_ButtonBox->addButton( i18n( "&Add..." ) ); Servers_Button_Change = Servers_ButtonBox->addButton( i18n( "&Modify..." ) ); Servers_Button_Delete = Servers_ButtonBox->addButton( i18n( "&Delete..." ) ); - Servers_ButtonBox->tqlayout(); + Servers_ButtonBox->layout(); BuildServerData(); diff --git a/knights/tabbox.cpp b/knights/tabbox.cpp index 00286c3..8f9ecdf 100644 --- a/knights/tabbox.cpp +++ b/knights/tabbox.cpp @@ -26,7 +26,7 @@ TabBox::TabBox( resource *rsrc ) : TQVBox(0,"TabBox",TQt::WDestructiveClose) { myResource = rsrc; - setMargin( TQApplication::tqstyle().defaultFrameWidth() ); + setMargin( TQApplication::style().defaultFrameWidth() ); myTabs = new TQTabWidget( this, "myTabs" ); myTabs->setTabShape( TQTabWidget::Rounded ); diff --git a/knights/thinbuttons.cpp b/knights/thinbuttons.cpp index 52b308c..ba899ac 100644 --- a/knights/thinbuttons.cpp +++ b/knights/thinbuttons.cpp @@ -193,7 +193,7 @@ void thinbuttons::buttonClicked( void ) void thinbuttons::resize( const int Width ) { Buttons *button; - TQStyle& Style = TQApplication::tqstyle(); + TQStyle& Style = TQApplication::style(); int margin; unsigned int Index; @@ -215,7 +215,7 @@ void thinbuttons::resize( const int Width ) /////////////////////////////////////// void thinbuttons::mousePressEvent( TQMouseEvent *event ) { - TQStyle& Style = TQApplication::tqstyle(); + TQStyle& Style = TQApplication::style(); int margin, xpos(0), index(0); /* We only want RightClick */ -- cgit v1.2.1