diff options
author | Michele Calgaro <[email protected]> | 2023-08-25 11:21:54 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-08-25 11:21:54 +0900 |
commit | e0df02598b8e19d8b6ddf07fdbca661489ab2e99 (patch) | |
tree | c71373a4969af9527789666f0ff31d24ff175671 /kexi/widget/utils/kexiflowlayout.cpp | |
parent | a7ea84c97639f635d798348432f355e3ac496a1d (diff) | |
download | koffice-e0df02598b8e19d8b6ddf07fdbca661489ab2e99.tar.gz koffice-e0df02598b8e19d8b6ddf07fdbca661489ab2e99.zip |
Drop USE_TQT4 code
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'kexi/widget/utils/kexiflowlayout.cpp')
-rw-r--r-- | kexi/widget/utils/kexiflowlayout.cpp | 36 |
1 files changed, 0 insertions, 36 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 |