Replace TQ_*Focus* and TQ_Scale* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/22/head
Michele Calgaro 1 year ago
parent 9f3f41c457
commit 8b08e8d5f6
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -252,7 +252,7 @@ KAstTopLevel::KAstTopLevel()
setupGUI( TDEMainWindow::Save | Create );
setFocusPolicy( TQ_StrongFocus );
setFocusPolicy( TQWidget::StrongFocus );
setFocus();
#ifdef KA_ENABLE_SOUND

@ -45,7 +45,7 @@ Feld::Feld( TQWidget *parent, const char *name ) :
setMouseTracking(true);
setFocusPolicy(TQ_StrongFocus);
setFocusPolicy(TQWidget::StrongFocus);
setBackgroundColor( TQColor( 0, 0, 0) );
setFixedSize(15 * 30, 15 * 30);

@ -28,7 +28,7 @@ KBBGraphic::KBBGraphic( TQPixmap **p, TQWidget* parent, const char* name )
int i;
curRow = curCol = 0;
setFocusPolicy( TQ_NoFocus );
setFocusPolicy( TQWidget::NoFocus );
setBackgroundColor( gray );
setCellWidth( CELLW ); // set width of cell in pixels
setCellHeight( CELLH ); // set height of cell in pixels
@ -454,8 +454,8 @@ void KBBGraphic::focusOutEvent( TQFocusEvent* )
void KBBGraphic::setInputAccepted( bool b )
{
inputAccepted = b;
if (b) setFocusPolicy( TQ_StrongFocus );
else setFocusPolicy( TQ_NoFocus );
if (b) setFocusPolicy( TQWidget::StrongFocus );
else setFocusPolicy( TQWidget::NoFocus );
}
/*

@ -103,7 +103,7 @@ KJezzball::KJezzball()
.arg(m_newAction->shortcut().toString()) );
//m_gameWidget->display( i18n("Press <Space> to start a game!") );
setFocusPolicy(TQ_StrongFocus);
setFocusPolicy(TQWidget::StrongFocus);
setFocus();
setupGUI();
}

@ -84,7 +84,7 @@ KLines::KLines()
connect(&demoTimer, TQT_SIGNAL(timeout()), TQT_TQOBJECT(this), TQT_SLOT(slotDemo()));
setFocusPolicy(TQ_StrongFocus);
setFocusPolicy(TQWidget::StrongFocus);
setFocus();
startGame();

@ -51,7 +51,7 @@ LinesBoard::LinesBoard( BallPainter * abPainter, TQWidget* parent, const char* n
bPainter = abPainter;
setFocusPolicy( TQ_NoFocus );
setFocusPolicy( TQWidget::NoFocus );
setBackgroundColor( gray );
setMouseTracking( FALSE );

@ -25,7 +25,7 @@ LinesPrompt::LinesPrompt( BallPainter * abPainter, TQWidget* parent, const char*
bPainter = abPainter;
setFocusPolicy( TQ_NoFocus );
setFocusPolicy( TQWidget::NoFocus );
setBackgroundColor( gray );
setMouseTracking( FALSE );

@ -61,7 +61,7 @@ Editor::Editor
drawFrame->setGeometry( 10, 40 ,sWidth ,sHeight);
drawFrame->setMinimumSize( 0, 0 );
drawFrame->setMaximumSize( 32767, 32767 );
drawFrame->setFocusPolicy( TQ_NoFocus );
drawFrame->setFocusPolicy( TQWidget::NoFocus );
drawFrame->setBackgroundMode( TQWidget::PaletteBackground );
drawFrame->setFrameStyle( 49 );
drawFrame->setMouseTracking(true);

@ -112,7 +112,7 @@ HighScore::HighScore
qtarch_PushButton_1->setGeometry( 110+35, 340+50, 100, 30 );
qtarch_PushButton_1->setMinimumSize( 0, 0 );
qtarch_PushButton_1->setMaximumSize( 32767, 32767 );
qtarch_PushButton_1->setFocusPolicy( TQ_TabFocus );
qtarch_PushButton_1->setFocusPolicy( TQWidget::TabFocus );
qtarch_PushButton_1->setAutoRepeat( false );
qtarch_PushButton_1->setDefault(true);
@ -121,7 +121,7 @@ HighScore::HighScore
resetBtn->setGeometry( 10, 5, 25, 25);
resetBtn->setMinimumSize( 0, 0 );
resetBtn->setMaximumSize( 32767, 32767 );
resetBtn->setFocusPolicy( TQ_TabFocus );
resetBtn->setFocusPolicy( TQWidget::TabFocus );
//resetBtn->setText(i18n( "Reset" ));
resetBtn->setAutoRepeat( false );
@ -136,7 +136,7 @@ HighScore::HighScore
lineEdit = new TQLineEdit(this, "");
lineEdit->setGeometry( 50, 40+(20*30), 190, 30 );
lineEdit->setFocusPolicy(TQ_StrongFocus);
lineEdit->setFocusPolicy(TQWidget::StrongFocus);
lineEdit->setFrame(true);
lineEdit->setEchoMode(TQLineEdit::Normal);
lineEdit->setText("");
@ -147,7 +147,7 @@ HighScore::HighScore
combo->setGeometry( 65, 5, 220, 25 );
combo->setMinimumSize( 0, 0 );
combo->setMaximumSize( 32767, 32767 );
combo->setFocusPolicy( TQ_StrongFocus );
combo->setFocusPolicy( TQWidget::StrongFocus );
combo->setSizeLimit( 10 );
connect( combo, TQT_SIGNAL(activated(int)), TQT_SLOT(selectionChanged(int)) );

@ -74,7 +74,7 @@ Status::Status(TQWidget *parent)
// smiley
smiley = new Smiley(this);
connect(smiley, TQT_SIGNAL(clicked()), TQT_SLOT(smileyClicked()));
smiley->setFocusPolicy(TQ_NoFocus);
smiley->setFocusPolicy(TQWidget::NoFocus);
TQWhatsThis::add(smiley, i18n("Press to start a new game"));
top->addWidget(smiley, 0, 2);

@ -2197,7 +2197,7 @@ KolfGame::KolfGame(ObjectList *obj, PlayerList *players, TQString filename, TQWi
margin = 10;
setFocusPolicy(TQ_StrongFocus);
setFocusPolicy(TQWidget::StrongFocus);
setFixedSize(width + 2 * margin, height + 2 * margin);
setMargins(margin, margin, margin, margin);

@ -17,7 +17,7 @@ ScoreBoard::ScoreBoard(TQWidget *parent, const char *name)
vh->setLabel(numRows() - 1, i18n("Par"));
hh->setLabel(numCols() - 1, i18n("Total"));
setFocusPolicy(TQ_NoFocus);
setFocusPolicy(TQWidget::NoFocus);
setRowReadOnly(0, true);
setRowReadOnly(1, true);
}

@ -82,7 +82,7 @@ GameBoard::GameBoard( TQWidget *parent )
setMinimumSize( 600, 600 );
setMouseTracking( true );
setFocusPolicy( TQ_StrongFocus );
setFocusPolicy( TQWidget::StrongFocus );
setFocus();
//********************************************************************

@ -46,7 +46,7 @@ int speed[4] = { 130, 95, 55, 40 };
Rattler::Rattler( TQWidget *parent, const char *name )
: TQWidget( parent, name )
{
setFocusPolicy(TQ_StrongFocus);
setFocusPolicy(TQWidget::StrongFocus);
numBalls = Settings::balls();
ballsAI = Settings::ballsAI();

@ -54,7 +54,7 @@ PlayField::PlayField(TQWidget *parent, const char *name, WFlags f)
pushesText_(i18n("Pushes:")),
statusFont_(TDEGlobalSettings::generalFont().family(), 18, TQFont::Bold), statusMetrics_(statusFont_) {
setFocusPolicy(TQ_StrongFocus);
setFocusPolicy(TQWidget::StrongFocus);
setFocus();
setBackgroundMode(TQt::NoBackground);
setMouseTracking(true);

@ -31,7 +31,7 @@ void MyTopLevelWidget::initGameWidgets( ){
toplayout->addWidget(playerinfo[1]);
toplayout->activate();
playfield->setFocusPolicy(TQ_StrongFocus);
playfield->setFocusPolicy(TQWidget::StrongFocus);
playfield->setFocus();
TQObject::connect(TQT_TQOBJECT(playfield),TQT_SIGNAL(energy(int,int)),

@ -51,7 +51,7 @@ Tron::Tron(TQWidget *parent,const char *name)
random.setSeed(0);
setFocusPolicy(TQ_StrongFocus);
setFocusPolicy(TQWidget::StrongFocus);
setBackgroundMode(NoBackground);
gameBlocked=false;

@ -20,7 +20,7 @@ void MainWindow::init()
{
Interface *inter = static_cast<Interface *>(_inter);
inter->normalGame();
setFocusPolicy(TQ_StrongFocus);
setFocusPolicy(TQWidget::StrongFocus);
// Modes
bool ama = ( bfactory->bbi.nbArcadeStages!=0 );

@ -211,7 +211,7 @@ void KChatBase::init(bool noComboBox)
l->addWidget(d->mBox);
d->mBox->setVScrollBarMode(TQScrollView::AlwaysOn);
d->mBox->setHScrollBarMode(TQScrollView::AlwaysOff);
d->mBox->setFocusPolicy(TQ_NoFocus);
d->mBox->setFocusPolicy(TQWidget::NoFocus);
// d->mBox->setSelectionMode(TQListBox::NoSelection);
d->mBox->setSelectionMode(TQListBox::Single);

Loading…
Cancel
Save