summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-09-02 15:53:00 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-09-04 10:10:24 +0900
commit7a9e5fefa81e292e306c727fab3e2a2b29c35c6e (patch)
treec8228cbdd6ab9c518a234013eb41e07f50ef3284
parenta4d6089d3190091585de62066433167bc70007ab (diff)
downloadtdeedu-7a9e5fefa81e292e306c727fab3e2a2b29c35c6e.tar.gz
tdeedu-7a9e5fefa81e292e306c727fab3e2a2b29c35c6e.zip
Replace TQ_*Focus* and TQ_Scale* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit f673794b12fa8685c6682fad9ce67a3a971e25f9)
-rw-r--r--kalzium/src/detailinfodlg.cpp2
-rw-r--r--kalzium/src/kalziumtip.cpp4
-rw-r--r--kgeography/src/boxasker.cpp2
-rw-r--r--kgeography/src/mapchooser.cpp2
-rw-r--r--kig/kig/kig_view.cpp2
-rw-r--r--kig/misc/kiginputdialog.cpp2
-rw-r--r--kmplot/kmplot/MainDlg.cpp2
-rw-r--r--kpercentage/kpercentage/kpercentmain.cpp8
-rw-r--r--kstars/kstars/indielement.cpp2
-rw-r--r--kstars/kstars/skymap.cpp2
-rw-r--r--kstars/kstars/tools/planetviewer.cpp4
-rw-r--r--ktouch/src/ktouch.cpp2
-rw-r--r--kvoctrain/kvoctrain/kva_init.cpp4
-rw-r--r--libtdeedu/extdate/extdatetbl.cpp2
-rw-r--r--libtdeedu/extdate/extdatetimeedit.cpp2
15 files changed, 21 insertions, 21 deletions
diff --git a/kalzium/src/detailinfodlg.cpp b/kalzium/src/detailinfodlg.cpp
index 97dd76e6..36b8fdd0 100644
--- a/kalzium/src/detailinfodlg.cpp
+++ b/kalzium/src/detailinfodlg.cpp
@@ -389,7 +389,7 @@ void DetailedInfoDlg::reloadContent()
if ( TQFile::exists( picpath ) )
{
TQImage img( picpath, "JPEG" );
- img = img.smoothScale ( 400, 400, TQ_ScaleMin );
+ img = img.smoothScale ( 400, 400, TQImage::ScaleMin );
TQPixmap pic;
pic.convertFromImage( img );
piclabel->setPixmap( pic );
diff --git a/kalzium/src/kalziumtip.cpp b/kalzium/src/kalziumtip.cpp
index e78cb0ef..681c1688 100644
--- a/kalzium/src/kalziumtip.cpp
+++ b/kalzium/src/kalziumtip.cpp
@@ -40,7 +40,7 @@
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
resize(0,0);
hide(); //initailly hide it
@@ -293,7 +293,7 @@ void KalziumTip::loadIcon()
if ( !iconpath.isEmpty() )
{
TQImage img ( iconpath, "JPEG" );
- img = img.smoothScale ( 128, 128, TQ_ScaleMin );
+ img = img.smoothScale ( 128, 128, TQImage::ScaleMin );
m_icon.convertFromImage( img );
}
diff --git a/kgeography/src/boxasker.cpp b/kgeography/src/boxasker.cpp
index 7becc6c1..b2ca281a 100644
--- a/kgeography/src/boxasker.cpp
+++ b/kgeography/src/boxasker.cpp
@@ -33,7 +33,7 @@ boxAsker::boxAsker(TQWidget *parent, KGmap *m, TQWidget *w, uint count) : askWid
for(int i = 0; i < 4; i++)
{
p_rb[i] = new TQRadioButton(bg);
- p_rb[i]->setFocusPolicy(TQ_StrongFocus);
+ p_rb[i]->setFocusPolicy(TQWidget::StrongFocus);
}
p_accept = new KPushButton(this);
diff --git a/kgeography/src/mapchooser.cpp b/kgeography/src/mapchooser.cpp
index 50f720d9..5f921501 100644
--- a/kgeography/src/mapchooser.cpp
+++ b/kgeography/src/mapchooser.cpp
@@ -85,7 +85,7 @@ void mapChooser::putImage(const TQString &mapName)
KGmap *m;
m = p_maps[mapName];
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 -> setFixedSize(image.size());
}
diff --git a/kig/kig/kig_view.cpp b/kig/kig/kig_view.cpp
index 7d988df4..f55f23f3 100644
--- a/kig/kig/kig_view.cpp
+++ b/kig/kig/kig_view.cpp
@@ -69,7 +69,7 @@ KigWidget::KigWidget( KigPart* part,
{
part->addWidget(this);
- setFocusPolicy(TQ_ClickFocus);
+ setFocusPolicy(TQWidget::ClickFocus);
setBackgroundMode( TQt::NoBackground );
setMouseTracking(true);
diff --git a/kig/misc/kiginputdialog.cpp b/kig/misc/kiginputdialog.cpp
index a596c87c..0462cb10 100644
--- a/kig/misc/kiginputdialog.cpp
+++ b/kig/misc/kiginputdialog.cpp
@@ -84,7 +84,7 @@ KigInputDialog::KigInputDialog( const TQString& caption, const TQString& label,
d->m_textEdit = new KTextEdit( frame );
d->m_textEdit->setText( label );
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->setFrameStyle( TQFrame::NoFrame );
mainlay->addWidget( d->m_textEdit );
diff --git a/kmplot/kmplot/MainDlg.cpp b/kmplot/kmplot/MainDlg.cpp
index 6b8ebc10..99cc6704 100644
--- a/kmplot/kmplot/MainDlg.cpp
+++ b/kmplot/kmplot/MainDlg.cpp
@@ -86,7 +86,7 @@ MainDlg::MainDlg(TQWidget *parentWidget, const char *, TQObject *parent, const c
view = new View( m_readonly, m_modified, m_popupmenu, parentWidget );
connect( view, TQT_SIGNAL( setStatusBarText(const TQString &)), this, TQT_SLOT( setReadOnlyStatusBarText(const TQString &) ) );
setWidget( view );
- view->setFocusPolicy(TQ_ClickFocus);
+ view->setFocusPolicy(TQWidget::ClickFocus);
minmaxdlg = new KMinMax(view, m_parent);
view->setMinMaxDlg(minmaxdlg);
m_quickEdit = new KLineEdit( parentWidget );
diff --git a/kpercentage/kpercentage/kpercentmain.cpp b/kpercentage/kpercentage/kpercentmain.cpp
index 2c71fb1a..b686a096 100644
--- a/kpercentage/kpercentage/kpercentmain.cpp
+++ b/kpercentage/kpercentage/kpercentmain.cpp
@@ -197,9 +197,9 @@ KPercentMain::KPercentMain( TQWidget *parent, const char *name ) :
void KPercentMain::newTask()
{
// no Editline can be focused
- line_edit_percentage->setFocusPolicy( TQ_NoFocus );
- line_edit_basevalue->setFocusPolicy( TQ_NoFocus );
- line_edit_percentvalue->setFocusPolicy( TQ_NoFocus );
+ line_edit_percentage->setFocusPolicy( TQWidget::NoFocus );
+ line_edit_basevalue->setFocusPolicy( TQWidget::NoFocus );
+ line_edit_percentvalue->setFocusPolicy( TQWidget::NoFocus );
// 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
@@ -245,7 +245,7 @@ void KPercentMain::newTask()
// delete this one
line_edit_input->clear();
// make the line_edit_layout accessable
- line_edit_input->setFocusPolicy( TQ_StrongFocus );
+ line_edit_input->setFocusPolicy( TQWidget::StrongFocus );
// set the focus on it
line_edit_input->setFocus();
}
diff --git a/kstars/kstars/indielement.cpp b/kstars/kstars/indielement.cpp
index 4308de45..e016fa28 100644
--- a/kstars/kstars/indielement.cpp
+++ b/kstars/kstars/indielement.cpp
@@ -373,7 +373,7 @@ void INDI_E::setupElementRead(int length)
read_w = new KLineEdit( pp->pg->propertyContainer );
read_w->setMinimumWidth( length );
- read_w->setFocusPolicy( TQ_NoFocus );
+ read_w->setFocusPolicy( TQWidget::NoFocus );
read_w->setFrameShape( KLineEdit::GroupBoxPanel );
read_w->setFrameShadow( KLineEdit::Plain );
read_w->setCursorPosition( 0 );
diff --git a/kstars/kstars/skymap.cpp b/kstars/kstars/skymap.cpp
index f236be0a..290540f2 100644
--- a/kstars/kstars/skymap.cpp
+++ b/kstars/kstars/skymap.cpp
@@ -72,7 +72,7 @@ SkyMap::SkyMap(KStarsData *d, TQWidget *parent, const char *name )
setBackgroundColor( TQColor( data->colorScheme()->colorNamed( "SkyColor" ) ) );
setBackgroundMode( TQWidget::NoBackground );
- setFocusPolicy( TQ_StrongFocus );
+ setFocusPolicy( TQWidget::StrongFocus );
setMinimumSize( 380, 250 );
setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding ) );
diff --git a/kstars/kstars/tools/planetviewer.cpp b/kstars/kstars/tools/planetviewer.cpp
index a3f00266..a4074067 100644
--- a/kstars/kstars/tools/planetviewer.cpp
+++ b/kstars/kstars/tools/planetviewer.cpp
@@ -231,7 +231,7 @@ void PlanetViewer::keyPressEvent( TQKeyEvent *e ) {
PVPlotWidget::PVPlotWidget( double x1, double x2, double y1, double y2, TQWidget *par, const char *name ) :
KStarsPlotWidget( x1, x2, y1, y2, par, name ),
mouseButtonDown(false), oldx(0), oldy(0) {
- setFocusPolicy( TQ_StrongFocus );
+ setFocusPolicy( TQWidget::StrongFocus );
setMouseTracking (true);
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 ) :
KStarsPlotWidget( 0.0, 1.0, 0.0, 1.0, parent, name ),
mouseButtonDown(false), oldx(0), oldy(0) {
- setFocusPolicy( TQ_StrongFocus );
+ setFocusPolicy( TQWidget::StrongFocus );
setMouseTracking (true);
pv = (PlanetViewer*)topLevelWidget();
}
diff --git a/ktouch/src/ktouch.cpp b/ktouch/src/ktouch.cpp
index e1e3e172..ebae5299 100644
--- a/ktouch/src/ktouch.cpp
+++ b/ktouch/src/ktouch.cpp
@@ -64,7 +64,7 @@ KTouch::KTouch()
m_keyboardWidget(NULL),
m_trainer(NULL)
{
- setFocusPolicy(TQ_StrongFocus);
+ setFocusPolicy(TQWidget::StrongFocus);
setInputMethodEnabled(true);
// Set global KTouchPtr to the main KTouch Object
diff --git a/kvoctrain/kvoctrain/kva_init.cpp b/kvoctrain/kvoctrain/kva_init.cpp
index f4f36e70..e31bfff7 100644
--- a/kvoctrain/kvoctrain/kva_init.cpp
+++ b/kvoctrain/kvoctrain/kva_init.cpp
@@ -208,14 +208,14 @@ void kvoctrainApp::initActions()
lessons = new KComboBox(this);
lessons->setMinimumWidth(160);
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->setWhatsThis(i18n("Choose current lesson"));
vocabLessons->setToolTip(vocabLessons->whatsThis());
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(textChanged(const TQString&)), this, TQT_SLOT(slotResumeSearch(const TQString&)));
diff --git a/libtdeedu/extdate/extdatetbl.cpp b/libtdeedu/extdate/extdatetbl.cpp
index 7b60954b..dc12d180 100644
--- a/libtdeedu/extdate/extdatetbl.cpp
+++ b/libtdeedu/extdate/extdatetbl.cpp
@@ -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;
date_=ExtDate::currentDate();
}
- setFocusPolicy( TQ_StrongFocus );
+ setFocusPolicy( TQWidget::StrongFocus );
setNumRows(7); // 6 weeks max + headline
setNumCols(7); // 7 days a week
setHScrollBarMode(AlwaysOff);
diff --git a/libtdeedu/extdate/extdatetimeedit.cpp b/libtdeedu/extdate/extdatetimeedit.cpp
index 1fe1a22c..e351f440 100644
--- a/libtdeedu/extdate/extdatetimeedit.cpp
+++ b/libtdeedu/extdate/extdatetimeedit.cpp
@@ -372,7 +372,7 @@ void ExtDateTimeEditor::init()
setBackgroundMode( PaletteBase );
setFocusSection( -1 );
installEventFilter( this );
- setFocusPolicy( TQ_WheelFocus );
+ setFocusPolicy( TQWidget::WheelFocus );
}