summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-09-02 15:48:14 +0900
committerMichele Calgaro <[email protected]>2023-09-03 22:35:32 +0900
commitcc3a167867f6b856f5ef243f0fe043d6baa302fa (patch)
treeb09a43266278edb7042bdb7b913f3fdb0e5385e7
parent1d1e056329b94fd410c4ff99e508291dca8a5785 (diff)
downloadktorrent-cc3a167867f6b856f5ef243f0fe043d6baa302fa.tar.gz
ktorrent-cc3a167867f6b856f5ef243f0fe043d6baa302fa.zip
Replace TQ_*Focus* and TQ_Scale* defines
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit d56a6af0f49543e774f23ecfcffbd5bfc772d3c3)
-rw-r--r--apps/ktorrent/newui/button.cpp2
-rw-r--r--apps/ktorrent/newui/dtabwidget.cpp2
-rw-r--r--plugins/infowidget/flagdb.cpp2
-rw-r--r--plugins/scheduler/bwswidget.cpp2
4 files changed, 4 insertions, 4 deletions
diff --git a/apps/ktorrent/newui/button.cpp b/apps/ktorrent/newui/button.cpp
index 4754cd0..e3c1730 100644
--- a/apps/ktorrent/newui/button.cpp
+++ b/apps/ktorrent/newui/button.cpp
@@ -47,7 +47,7 @@ Button::Button(ButtonBar *parent, const TQString text, const TQIconSet &icon,
hide();
setFlat(true);
setToggleButton(true);
- setFocusPolicy(TQ_NoFocus);
+ setFocusPolicy(TQWidget::NoFocus);
setDescription(m_description);
setSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Minimum);
resize(sizeHint());
diff --git a/apps/ktorrent/newui/dtabwidget.cpp b/apps/ktorrent/newui/dtabwidget.cpp
index 50cf9cd..d7920bb 100644
--- a/apps/ktorrent/newui/dtabwidget.cpp
+++ b/apps/ktorrent/newui/dtabwidget.cpp
@@ -29,7 +29,7 @@
DTabWidget::DTabWidget(TQWidget *parent, const char *name)
:KTabWidget(parent, name), m_closeButton(0)
{
- setFocusPolicy(TQ_NoFocus);
+ setFocusPolicy(TQWidget::NoFocus);
setMargin(0);
loadSettings();
diff --git a/plugins/infowidget/flagdb.cpp b/plugins/infowidget/flagdb.cpp
index c1e1fb4..63ce4c6 100644
--- a/plugins/infowidget/flagdb.cpp
+++ b/plugins/infowidget/flagdb.cpp
@@ -100,7 +100,7 @@ const TQPixmap& kt::FlagDB::getFlag(const TQString& country)
if (TQFile::exists(path)) {
if (img.load(path)) {
if (img.width() != preferredWidth || img.height() != preferredHeight) {
- const TQImage& imgScaled = img.smoothScale(preferredWidth, preferredHeight, TQ_ScaleMin);
+ const TQImage& imgScaled = img.smoothScale(preferredWidth, preferredHeight, TQImage::ScaleMin);
if (!imgScaled.isNull()) {
pixmap.convertFromImage(imgScaled);
break;
diff --git a/plugins/scheduler/bwswidget.cpp b/plugins/scheduler/bwswidget.cpp
index b3358a7..da37f06 100644
--- a/plugins/scheduler/bwswidget.cpp
+++ b/plugins/scheduler/bwswidget.cpp
@@ -63,7 +63,7 @@ namespace kt
setColumnLabels(days);
setRowLabels(hours);
- setFocusPolicy(TQ_StrongFocus);
+ setFocusPolicy(TQWidget::StrongFocus);
TQFont f;
f.setPointSize(8);