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 ); setupGUI( TDEMainWindow::Save | Create );
setFocusPolicy( TQ_StrongFocus ); setFocusPolicy( TQWidget::StrongFocus );
setFocus(); setFocus();
#ifdef KA_ENABLE_SOUND #ifdef KA_ENABLE_SOUND

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save