summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-08-25 17:44:26 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-08-31 09:46:39 +0900
commit5905e4ed02f751bbd26b48a984acd72dd5866b90 (patch)
tree93c6276492cda69fc120614be1f5419bf9896811
parent5b51c9fc784f692e2df23253181a618f94d0db73 (diff)
downloadtdewebdev-5905e4ed02f751bbd26b48a984acd72dd5866b90.tar.gz
tdewebdev-5905e4ed02f751bbd26b48a984acd72dd5866b90.zip
Drop USE_TQT4 code
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 7f1d383a122efafa3c751b47057a5fdf3d5d34e1)
-rw-r--r--kommander/editor/widgetfactory.cpp7
-rw-r--r--lib/compatibility/tdemdi/qextmdi/tdemdichildarea.cpp4
2 files changed, 0 insertions, 11 deletions
diff --git a/kommander/editor/widgetfactory.cpp b/kommander/editor/widgetfactory.cpp
index 2e870a7f..fe38face 100644
--- a/kommander/editor/widgetfactory.cpp
+++ b/kommander/editor/widgetfactory.cpp
@@ -1904,17 +1904,10 @@ void TQLayoutWidget::updateSizePolicy()
vt |= TQSizePolicy::Maximum;
}
}
-#ifdef USE_QT4
if ( layout()->expanding() & TQSizePolicy::Horizontally )
ht = TQSizePolicy::Expanding;
if ( layout()->expanding() & TQSizePolicy::Vertically )
vt = TQSizePolicy::Expanding;
-#else // USE_QT4
- if ( layout()->expanding() & TQSizePolicy::Horizontally )
- ht = TQSizePolicy::Expanding;
- if ( layout()->expanding() & TQSizePolicy::Vertically )
- vt = TQSizePolicy::Expanding;
-#endif // USE_QT4
layout()->invalidate();
}
diff --git a/lib/compatibility/tdemdi/qextmdi/tdemdichildarea.cpp b/lib/compatibility/tdemdi/qextmdi/tdemdichildarea.cpp
index 21c8c9fe..3a4c7a79 100644
--- a/lib/compatibility/tdemdi/qextmdi/tdemdichildarea.cpp
+++ b/lib/compatibility/tdemdi/qextmdi/tdemdichildarea.cpp
@@ -218,12 +218,8 @@ void KMdiChildArea::setTopChild( KMdiChildFrm* child, bool /* bSetFocus */ )
else
child->raise();
-#ifdef USE_QT4
- child->m_pClient->setFocus();
-#else // USE_QT4
TQFocusEvent::setReason( TQFocusEvent::Other );
child->m_pClient->setFocus();
-#endif // USE_QT4
}
}