diff options
author | Michele Calgaro <[email protected]> | 2023-08-25 11:21:54 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-08-29 12:16:41 +0900 |
commit | 73836b4ca5f241d070dd34ac1d9bb828e05f9544 (patch) | |
tree | 001b3935b9362f17083be2a8225e6ff42afc2019 /kexi/widget | |
parent | 1607518b8c749b4195c5ab11b405f77001526a6a (diff) | |
download | koffice-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.cpp | 36 | ||||
-rw-r--r-- | kexi/widget/utils/kexiflowlayout.h | 4 |
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); |