From 6e6261b436683673556f7cc1efd90e72d09dad8f Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 15 Jul 2023 21:04:41 +0900 Subject: Drop compatibility code for TQButton Signed-off-by: Michele Calgaro --- kmahjongg/HighScore.cpp | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/kmahjongg/HighScore.cpp b/kmahjongg/HighScore.cpp index 3f947b51..416fae2c 100644 --- a/kmahjongg/HighScore.cpp +++ b/kmahjongg/HighScore.cpp @@ -114,8 +114,7 @@ HighScore::HighScore qtarch_PushButton_1->setMaximumSize( 32767, 32767 ); qtarch_PushButton_1->setFocusPolicy( TQ_TabFocus ); qtarch_PushButton_1->setAutoRepeat( false ); - qtarch_PushButton_1->setAutoResize( false ); - qtarch_PushButton_1->setDefault(true); + qtarch_PushButton_1->setDefault(true); TQPushButton* resetBtn; resetBtn= new TQPushButton( this, "resetBtn" ); @@ -125,10 +124,9 @@ HighScore::HighScore resetBtn->setFocusPolicy( TQ_TabFocus ); //resetBtn->setText(i18n( "Reset" )); resetBtn->setAutoRepeat( false ); - resetBtn->setAutoResize( false ); - TDEIconLoader *loader = TDEGlobal::iconLoader(); - resetBtn->setPixmap(loader->loadIcon("edit-delete", TDEIcon::Toolbar)); + TDEIconLoader *loader = TDEGlobal::iconLoader(); + resetBtn->setPixmap(loader->loadIcon("edit-delete", TDEIcon::Toolbar)); @@ -145,14 +143,13 @@ HighScore::HighScore // the drop down for the board names - combo = new TQComboBox( false, this, "combo" ); - combo->setGeometry( 65, 5, 220, 25 ); - combo->setMinimumSize( 0, 0 ); - combo->setMaximumSize( 32767, 32767 ); - combo->setFocusPolicy( TQ_StrongFocus ); - combo->setSizeLimit( 10 ); - combo->setAutoResize( false ); - connect( combo, TQT_SIGNAL(activated(int)), TQT_SLOT(selectionChanged(int)) ); + combo = new TQComboBox( false, this, "combo" ); + combo->setGeometry( 65, 5, 220, 25 ); + combo->setMinimumSize( 0, 0 ); + combo->setMaximumSize( 32767, 32767 ); + combo->setFocusPolicy( TQ_StrongFocus ); + combo->setSizeLimit( 10 ); + connect( combo, TQT_SIGNAL(activated(int)), TQT_SLOT(selectionChanged(int)) ); resize( 350+70,390+45 ); -- cgit v1.2.1