summaryrefslogtreecommitdiffstats
path: root/kexi/widget
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-08-25 11:21:54 +0900
committerMichele Calgaro <[email protected]>2023-08-29 12:16:41 +0900
commit73836b4ca5f241d070dd34ac1d9bb828e05f9544 (patch)
tree001b3935b9362f17083be2a8225e6ff42afc2019 /kexi/widget
parent1607518b8c749b4195c5ab11b405f77001526a6a (diff)
downloadkoffice-73836b4ca5f241d070dd34ac1d9bb828e05f9544.tar.gz
koffice-73836b4ca5f241d070dd34ac1d9bb828e05f9544.zip
Drop USE_TQT4 code
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit e0df02598b8e19d8b6ddf07fdbca661489ab2e99)
Diffstat (limited to 'kexi/widget')
-rw-r--r--kexi/widget/utils/kexiflowlayout.cpp36
-rw-r--r--kexi/widget/utils/kexiflowlayout.h4
2 files changed, 0 insertions, 40 deletions
diff --git a/kexi/widget/utils/kexiflowlayout.cpp b/kexi/widget/utils/kexiflowlayout.cpp
index 38259277..14e5e959 100644
--- a/kexi/widget/utils/kexiflowlayout.cpp
+++ b/kexi/widget/utils/kexiflowlayout.cpp
@@ -113,13 +113,7 @@ KexiFlowLayout::addSpacing(int size)
TQLayoutIterator
KexiFlowLayout::iterator()
{
- // [FIXME]
-#ifdef USE_QT4
- #warning [FIXME] ContainerAreaLayout iterators may not function correctly under Qt4
- return TQLayoutIterator( this ); // [FIXME]
-#else // USE_QT4
return TQLayoutIterator( new KexiFlowLayoutIterator(&m_list) );
-#endif // USE_QT4
}
TQPtrList<TQWidget>*
@@ -455,33 +449,3 @@ KexiFlowLayout::doVerticalLayout(const TQRect &r, bool testOnly)
// return our width
return x + w - r.x();
}
-
-#ifdef USE_QT4
-/*!
- \reimp
-*/
-int KexiFlowLayout::count() const {
- return m_list.count();
-}
-
-/*!
- \reimp
-*/
-TQLayoutItem* KexiFlowLayout::itemAt(int index) const {
- return index >= 0 && index < m_list.count() ? (const_cast<TQPtrList<TQLayoutItem>&>(m_list).at(index)) : 0;
-}
-
-/*!
- \reimp
-*/
-TQLayoutItem* KexiFlowLayout::takeAt(int index) {
- if (index < 0 || index >= m_list.count())
- return 0;
- TQLayoutItem *item = m_list.at(index);
- m_list.remove(m_list.at(index));
- delete item;
-
- invalidate();
- return item;
-}
-#endif // USE_QT4
diff --git a/kexi/widget/utils/kexiflowlayout.h b/kexi/widget/utils/kexiflowlayout.h
index 7353f16f..fa48df6f 100644
--- a/kexi/widget/utils/kexiflowlayout.h
+++ b/kexi/widget/utils/kexiflowlayout.h
@@ -59,10 +59,6 @@ class KEXIGUIUTILS_EXPORT KexiFlowLayout : public TQLayout
virtual bool isEmpty();
-#ifdef USE_QT4
- QLAYOUT_REQUIRED_METHOD_DECLARATIONS
-#endif // USE_QT4
-
protected:
virtual void setGeometry(const TQRect&);
int simulateLayout(const TQRect &r);