Rename obsolete tq methods to standard names

pull/1/head
Timothy Pearson 13 years ago
parent a19492b550
commit face65bf8a

@ -32,7 +32,7 @@ Console::Console(TQWidget *parent,
{ {
myResource = Rsrc; myResource = Rsrc;
SelfMoving = FALSE; SelfMoving = FALSE;
TQStyle& Style = TQApplication::tqstyle(); TQStyle& Style = TQApplication::style();
margin = Style.defaultFrameWidth(); margin = Style.defaultFrameWidth();
myTextView = new KnightsTextView( this, myResource ); myTextView = new KnightsTextView( this, myResource );

@ -383,7 +383,7 @@ void Knights::initMenus( void )
/////////////////////////////////////// ///////////////////////////////////////
void Knights::resizeMainFrame(void) void Knights::resizeMainFrame(void)
{ {
TQStyle& Style = TQApplication::tqstyle(); TQStyle& Style = TQApplication::style();
TQSize S_Message; TQSize S_Message;
TQSize S_Menu; TQSize S_Menu;

@ -28,7 +28,7 @@
setPageDisplay::setPageDisplay(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(parent) setPageDisplay::setPageDisplay(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(parent)
{ {
TQStyle& Style = TQApplication::tqstyle(); TQStyle& Style = TQApplication::style();
Resource = Rsrc; Resource = Rsrc;
margin = Style.defaultFrameWidth(); margin = Style.defaultFrameWidth();
NewBoards = 0; NewBoards = 0;

@ -73,7 +73,7 @@ setPageEngines::setPageEngines(TQWidget *parent, resource *Rsrc ) : TQVBoxLayou
Engines_Button_Add = Engines_ButtonBox->addButton( i18n( "&Add..." ) ); Engines_Button_Add = Engines_ButtonBox->addButton( i18n( "&Add..." ) );
Engines_Button_Change = Engines_ButtonBox->addButton( i18n( "&Modify..." ) ); Engines_Button_Change = Engines_ButtonBox->addButton( i18n( "&Modify..." ) );
Engines_Button_Delete = Engines_ButtonBox->addButton( i18n( "&Delete..." ) ); Engines_Button_Delete = Engines_ButtonBox->addButton( i18n( "&Delete..." ) );
Engines_ButtonBox->tqlayout(); Engines_ButtonBox->layout();
BuildEngineData(); BuildEngineData();

@ -21,7 +21,7 @@
setPageServers::setPageServers(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(parent) setPageServers::setPageServers(TQWidget *parent, resource *Rsrc ) : TQVBoxLayout(parent)
{ {
TQStyle& Style = TQApplication::tqstyle(); TQStyle& Style = TQApplication::style();
margin = Style.defaultFrameWidth(); margin = Style.defaultFrameWidth();
Resource = Rsrc; Resource = Rsrc;
Servers_ListView = NULL; Servers_ListView = NULL;
@ -77,7 +77,7 @@ void setPageServers::initTab1( void )
Servers_Button_Add = Servers_ButtonBox->addButton( i18n( "&Add..." ) ); Servers_Button_Add = Servers_ButtonBox->addButton( i18n( "&Add..." ) );
Servers_Button_Change = Servers_ButtonBox->addButton( i18n( "&Modify..." ) ); Servers_Button_Change = Servers_ButtonBox->addButton( i18n( "&Modify..." ) );
Servers_Button_Delete = Servers_ButtonBox->addButton( i18n( "&Delete..." ) ); Servers_Button_Delete = Servers_ButtonBox->addButton( i18n( "&Delete..." ) );
Servers_ButtonBox->tqlayout(); Servers_ButtonBox->layout();
BuildServerData(); BuildServerData();

@ -26,7 +26,7 @@
TabBox::TabBox( resource *rsrc ) : TQVBox(0,"TabBox",TQt::WDestructiveClose) TabBox::TabBox( resource *rsrc ) : TQVBox(0,"TabBox",TQt::WDestructiveClose)
{ {
myResource = rsrc; myResource = rsrc;
setMargin( TQApplication::tqstyle().defaultFrameWidth() ); setMargin( TQApplication::style().defaultFrameWidth() );
myTabs = new TQTabWidget( this, "myTabs" ); myTabs = new TQTabWidget( this, "myTabs" );
myTabs->setTabShape( TQTabWidget::Rounded ); myTabs->setTabShape( TQTabWidget::Rounded );

@ -193,7 +193,7 @@ void thinbuttons::buttonClicked( void )
void thinbuttons::resize( const int Width ) void thinbuttons::resize( const int Width )
{ {
Buttons *button; Buttons *button;
TQStyle& Style = TQApplication::tqstyle(); TQStyle& Style = TQApplication::style();
int margin; int margin;
unsigned int Index; unsigned int Index;
@ -215,7 +215,7 @@ void thinbuttons::resize( const int Width )
/////////////////////////////////////// ///////////////////////////////////////
void thinbuttons::mousePressEvent( TQMouseEvent *event ) void thinbuttons::mousePressEvent( TQMouseEvent *event )
{ {
TQStyle& Style = TQApplication::tqstyle(); TQStyle& Style = TQApplication::style();
int margin, xpos(0), index(0); int margin, xpos(0), index(0);
/* We only want RightClick */ /* We only want RightClick */

Loading…
Cancel
Save