Replace TQ_*Focus* and TQ_Scale* defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit f673794b12)
r14.1.x
Michele Calgaro 1 year ago
parent a4d6089d31
commit 7a9e5fefa8
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -389,7 +389,7 @@ void DetailedInfoDlg::reloadContent()
if ( TQFile::exists( picpath ) ) if ( TQFile::exists( picpath ) )
{ {
TQImage img( picpath, "JPEG" ); TQImage img( picpath, "JPEG" );
img = img.smoothScale ( 400, 400, TQ_ScaleMin ); img = img.smoothScale ( 400, 400, TQImage::ScaleMin );
TQPixmap pic; TQPixmap pic;
pic.convertFromImage( img ); pic.convertFromImage( img );
piclabel->setPixmap( pic ); piclabel->setPixmap( pic );

@ -40,7 +40,7 @@
KalziumTip::KalziumTip( TQWidget * parent, const char * name, WFlags f ) : TQWidget( parent, name, f ) KalziumTip::KalziumTip( TQWidget * parent, const char * name, WFlags f ) : TQWidget( parent, name, f )
{ {
setFocusPolicy(TQ_NoFocus); //the widget don't get the keyboard focus setFocusPolicy(TQWidget::NoFocus); //the widget don't get the keyboard focus
setBackgroundMode(NoBackground); // widget has no background setBackgroundMode(NoBackground); // widget has no background
resize(0,0); resize(0,0);
hide(); //initailly hide it hide(); //initailly hide it
@ -293,7 +293,7 @@ void KalziumTip::loadIcon()
if ( !iconpath.isEmpty() ) if ( !iconpath.isEmpty() )
{ {
TQImage img ( iconpath, "JPEG" ); TQImage img ( iconpath, "JPEG" );
img = img.smoothScale ( 128, 128, TQ_ScaleMin ); img = img.smoothScale ( 128, 128, TQImage::ScaleMin );
m_icon.convertFromImage( img ); m_icon.convertFromImage( img );
} }

@ -33,7 +33,7 @@ boxAsker::boxAsker(TQWidget *parent, KGmap *m, TQWidget *w, uint count) : askWid
for(int i = 0; i < 4; i++) for(int i = 0; i < 4; i++)
{ {
p_rb[i] = new TQRadioButton(bg); p_rb[i] = new TQRadioButton(bg);
p_rb[i]->setFocusPolicy(TQ_StrongFocus); p_rb[i]->setFocusPolicy(TQWidget::StrongFocus);
} }
p_accept = new KPushButton(this); p_accept = new KPushButton(this);

@ -85,7 +85,7 @@ void mapChooser::putImage(const TQString &mapName)
KGmap *m; KGmap *m;
m = p_maps[mapName]; m = p_maps[mapName];
TQImage image(m -> getMapFile()); TQImage image(m -> getMapFile());
image = image.smoothScale(300, 225, TQ_ScaleMin); image = image.smoothScale(300, 225, TQImage::ScaleMin);
p_image -> setPaletteBackgroundPixmap(TQPixmap(image)); p_image -> setPaletteBackgroundPixmap(TQPixmap(image));
p_image -> setFixedSize(image.size()); p_image -> setFixedSize(image.size());
} }

@ -69,7 +69,7 @@ KigWidget::KigWidget( KigPart* part,
{ {
part->addWidget(this); part->addWidget(this);
setFocusPolicy(TQ_ClickFocus); setFocusPolicy(TQWidget::ClickFocus);
setBackgroundMode( TQt::NoBackground ); setBackgroundMode( TQt::NoBackground );
setMouseTracking(true); setMouseTracking(true);

@ -84,7 +84,7 @@ KigInputDialog::KigInputDialog( const TQString& caption, const TQString& label,
d->m_textEdit = new KTextEdit( frame ); d->m_textEdit = new KTextEdit( frame );
d->m_textEdit->setText( label ); d->m_textEdit->setText( label );
d->m_textEdit->setReadOnly( true ); d->m_textEdit->setReadOnly( true );
d->m_textEdit->setFocusPolicy( TQ_NoFocus ); d->m_textEdit->setFocusPolicy( TQWidget::NoFocus );
// d->m_textEdit->setAlignment( d->m_textEdit->alignment() | TQt::WordBreak ); // d->m_textEdit->setAlignment( d->m_textEdit->alignment() | TQt::WordBreak );
d->m_textEdit->setFrameStyle( TQFrame::NoFrame ); d->m_textEdit->setFrameStyle( TQFrame::NoFrame );
mainlay->addWidget( d->m_textEdit ); mainlay->addWidget( d->m_textEdit );

@ -86,7 +86,7 @@ MainDlg::MainDlg(TQWidget *parentWidget, const char *, TQObject *parent, const c
view = new View( m_readonly, m_modified, m_popupmenu, parentWidget ); view = new View( m_readonly, m_modified, m_popupmenu, parentWidget );
connect( view, TQT_SIGNAL( setStatusBarText(const TQString &)), this, TQT_SLOT( setReadOnlyStatusBarText(const TQString &) ) ); connect( view, TQT_SIGNAL( setStatusBarText(const TQString &)), this, TQT_SLOT( setReadOnlyStatusBarText(const TQString &) ) );
setWidget( view ); setWidget( view );
view->setFocusPolicy(TQ_ClickFocus); view->setFocusPolicy(TQWidget::ClickFocus);
minmaxdlg = new KMinMax(view, m_parent); minmaxdlg = new KMinMax(view, m_parent);
view->setMinMaxDlg(minmaxdlg); view->setMinMaxDlg(minmaxdlg);
m_quickEdit = new KLineEdit( parentWidget ); m_quickEdit = new KLineEdit( parentWidget );

@ -197,9 +197,9 @@ KPercentMain::KPercentMain( TQWidget *parent, const char *name ) :
void KPercentMain::newTask() void KPercentMain::newTask()
{ {
// no Editline can be focused // no Editline can be focused
line_edit_percentage->setFocusPolicy( TQ_NoFocus ); line_edit_percentage->setFocusPolicy( TQWidget::NoFocus );
line_edit_basevalue->setFocusPolicy( TQ_NoFocus ); line_edit_basevalue->setFocusPolicy( TQWidget::NoFocus );
line_edit_percentvalue->setFocusPolicy( TQ_NoFocus ); line_edit_percentvalue->setFocusPolicy( TQWidget::NoFocus );
// set the number of managed tasks into a label // set the number of managed tasks into a label
label_count->setText( TQString( i18n("You got %1 of %2 exercises.").arg(count).arg(number) ) ); // update Label for the Progress label_count->setText( TQString( i18n("You got %1 of %2 exercises.").arg(count).arg(number) ) ); // update Label for the Progress
@ -245,7 +245,7 @@ void KPercentMain::newTask()
// delete this one // delete this one
line_edit_input->clear(); line_edit_input->clear();
// make the line_edit_layout accessable // make the line_edit_layout accessable
line_edit_input->setFocusPolicy( TQ_StrongFocus ); line_edit_input->setFocusPolicy( TQWidget::StrongFocus );
// set the focus on it // set the focus on it
line_edit_input->setFocus(); line_edit_input->setFocus();
} }

@ -373,7 +373,7 @@ void INDI_E::setupElementRead(int length)
read_w = new KLineEdit( pp->pg->propertyContainer ); read_w = new KLineEdit( pp->pg->propertyContainer );
read_w->setMinimumWidth( length ); read_w->setMinimumWidth( length );
read_w->setFocusPolicy( TQ_NoFocus ); read_w->setFocusPolicy( TQWidget::NoFocus );
read_w->setFrameShape( KLineEdit::GroupBoxPanel ); read_w->setFrameShape( KLineEdit::GroupBoxPanel );
read_w->setFrameShadow( KLineEdit::Plain ); read_w->setFrameShadow( KLineEdit::Plain );
read_w->setCursorPosition( 0 ); read_w->setCursorPosition( 0 );

@ -72,7 +72,7 @@ SkyMap::SkyMap(KStarsData *d, TQWidget *parent, const char *name )
setBackgroundColor( TQColor( data->colorScheme()->colorNamed( "SkyColor" ) ) ); setBackgroundColor( TQColor( data->colorScheme()->colorNamed( "SkyColor" ) ) );
setBackgroundMode( TQWidget::NoBackground ); setBackgroundMode( TQWidget::NoBackground );
setFocusPolicy( TQ_StrongFocus ); setFocusPolicy( TQWidget::StrongFocus );
setMinimumSize( 380, 250 ); setMinimumSize( 380, 250 );
setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) ); setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) );

@ -231,7 +231,7 @@ void PlanetViewer::keyPressEvent( TQKeyEvent *e ) {
PVPlotWidget::PVPlotWidget( double x1, double x2, double y1, double y2, TQWidget *par, const char *name ) : PVPlotWidget::PVPlotWidget( double x1, double x2, double y1, double y2, TQWidget *par, const char *name ) :
KStarsPlotWidget( x1, x2, y1, y2, par, name ), KStarsPlotWidget( x1, x2, y1, y2, par, name ),
mouseButtonDown(false), oldx(0), oldy(0) { mouseButtonDown(false), oldx(0), oldy(0) {
setFocusPolicy( TQ_StrongFocus ); setFocusPolicy( TQWidget::StrongFocus );
setMouseTracking (true); setMouseTracking (true);
pv = (PlanetViewer*)topLevelWidget(); pv = (PlanetViewer*)topLevelWidget();
} }
@ -239,7 +239,7 @@ PVPlotWidget::PVPlotWidget( double x1, double x2, double y1, double y2, TQWidget
PVPlotWidget::PVPlotWidget( TQWidget *parent, const char *name ) : PVPlotWidget::PVPlotWidget( TQWidget *parent, const char *name ) :
KStarsPlotWidget( 0.0, 1.0, 0.0, 1.0, parent, name ), KStarsPlotWidget( 0.0, 1.0, 0.0, 1.0, parent, name ),
mouseButtonDown(false), oldx(0), oldy(0) { mouseButtonDown(false), oldx(0), oldy(0) {
setFocusPolicy( TQ_StrongFocus ); setFocusPolicy( TQWidget::StrongFocus );
setMouseTracking (true); setMouseTracking (true);
pv = (PlanetViewer*)topLevelWidget(); pv = (PlanetViewer*)topLevelWidget();
} }

@ -64,7 +64,7 @@ KTouch::KTouch()
m_keyboardWidget(NULL), m_keyboardWidget(NULL),
m_trainer(NULL) m_trainer(NULL)
{ {
setFocusPolicy(TQ_StrongFocus); setFocusPolicy(TQWidget::StrongFocus);
setInputMethodEnabled(true); setInputMethodEnabled(true);
// Set global KTouchPtr to the main KTouch Object // Set global KTouchPtr to the main KTouch Object

@ -208,14 +208,14 @@ void kvoctrainApp::initActions()
lessons = new KComboBox(this); lessons = new KComboBox(this);
lessons->setMinimumWidth(160); lessons->setMinimumWidth(160);
connect(lessons, TQT_SIGNAL(highlighted(int)), this, TQT_SLOT(slotChooseLesson(int))); connect(lessons, TQT_SIGNAL(highlighted(int)), this, TQT_SLOT(slotChooseLesson(int)));
lessons->setFocusPolicy(TQ_NoFocus); lessons->setFocusPolicy(TQWidget::NoFocus);
vocabLessons = new KWidgetAction(lessons, i18n("Lessons"), 0, TQT_TQOBJECT(this), 0, actionCollection(), "vocab_lessons"); vocabLessons = new KWidgetAction(lessons, i18n("Lessons"), 0, TQT_TQOBJECT(this), 0, actionCollection(), "vocab_lessons");
vocabLessons->setWhatsThis(i18n("Choose current lesson")); vocabLessons->setWhatsThis(i18n("Choose current lesson"));
vocabLessons->setToolTip(vocabLessons->whatsThis()); vocabLessons->setToolTip(vocabLessons->whatsThis());
searchLine = new KLineEdit(this); searchLine = new KLineEdit(this);
searchLine->setFocusPolicy(TQ_ClickFocus); searchLine->setFocusPolicy(TQWidget::ClickFocus);
connect (searchLine, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(slotSearchNext())); connect (searchLine, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(slotSearchNext()));
connect (searchLine, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotResumeSearch(const TQString&))); connect (searchLine, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(slotResumeSearch(const TQString&)));

@ -126,7 +126,7 @@ ExtDateTable::ExtDateTable(TQWidget *parent, ExtDate date_, const char* name, WF
kdDebug() << "ExtDateTable ctor: WARNING: Given date is invalid, using current date." << endl; kdDebug() << "ExtDateTable ctor: WARNING: Given date is invalid, using current date." << endl;
date_=ExtDate::currentDate(); date_=ExtDate::currentDate();
} }
setFocusPolicy( TQ_StrongFocus ); setFocusPolicy( TQWidget::StrongFocus );
setNumRows(7); // 6 weeks max + headline setNumRows(7); // 6 weeks max + headline
setNumCols(7); // 7 days a week setNumCols(7); // 7 days a week
setHScrollBarMode(AlwaysOff); setHScrollBarMode(AlwaysOff);

@ -372,7 +372,7 @@ void ExtDateTimeEditor::init()
setBackgroundMode( PaletteBase ); setBackgroundMode( PaletteBase );
setFocusSection( -1 ); setFocusSection( -1 );
installEventFilter( this ); installEventFilter( this );
setFocusPolicy( TQ_WheelFocus ); setFocusPolicy( TQWidget::WheelFocus );
} }

Loading…
Cancel
Save