summaryrefslogtreecommitdiffstats
path: root/kicker
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-08-27 21:28:15 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-08-27 21:28:15 +0900
commit014f6d2586905e03681aa6fb9a85c2c8190e53f4 (patch)
treec5adcc760a4faedd8a7c690963b2c61af1a68325 /kicker
parent2317bee2466f4613df68e7d6b7d7eee46befd359 (diff)
downloadtdebase-014f6d2586905e03681aa6fb9a85c2c8190e53f4.tar.gz
tdebase-014f6d2586905e03681aa6fb9a85c2c8190e53f4.zip
Drop USE_TQT4 code
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kicker')
-rw-r--r--kicker/kicker/core/containerarealayout.cpp38
-rw-r--r--kicker/kicker/core/containerarealayout.h6
-rw-r--r--kicker/kicker/ui/k_mnu.cpp4
-rw-r--r--kicker/libkicker/global.cpp9
4 files changed, 2 insertions, 55 deletions
diff --git a/kicker/kicker/core/containerarealayout.cpp b/kicker/kicker/core/containerarealayout.cpp
index c12778fbb..11d834630 100644
--- a/kicker/kicker/core/containerarealayout.cpp
+++ b/kicker/kicker/core/containerarealayout.cpp
@@ -211,38 +211,6 @@ ContainerAreaLayout::ContainerAreaLayout(TQWidget* parent)
{
}
-#ifdef USE_QT4
-/*!
- \reimp
-*/
-int ContainerAreaLayout::count() const {
- return m_items.count();
-}
-
-/*!
- \reimp
-*/
-TQLayoutItem* ContainerAreaLayout::itemAt(int index) const {
- return index >= 0 && index < m_items.count() ? (*m_items.at(index))->item : 0;
-}
-
-/*!
- \reimp
-*/
-TQLayoutItem* ContainerAreaLayout::takeAt(int index) {
- if (index < 0 || index >= m_items.count())
- return 0;
- ContainerAreaLayoutItem *b = *m_items.at(index);
- m_items.remove(m_items.at(index));
- TQLayoutItem *item = b->item;
- b->item = 0;
- delete b;
-
- invalidate();
- return item;
-}
-#endif // USE_QT4
-
void ContainerAreaLayout::addItem(TQLayoutItem* item)
{
m_items.append(new ContainerAreaLayoutItem(static_cast<TQLayoutItem*>(item), this));
@@ -445,13 +413,7 @@ TQSize ContainerAreaLayout::minimumSize() const
TQLayoutIterator ContainerAreaLayout::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 ContainerAreaLayoutIterator(&m_items));
-#endif // USE_QT4
}
void ContainerAreaLayout::setGeometry(const TQRect& rect)
diff --git a/kicker/kicker/core/containerarealayout.h b/kicker/kicker/core/containerarealayout.h
index 4edeb8be2..abb28c6f0 100644
--- a/kicker/kicker/core/containerarealayout.h
+++ b/kicker/kicker/core/containerarealayout.h
@@ -108,12 +108,6 @@ class ContainerAreaLayout : public TQLayout
int leftR() const;
int rightR() const;
-#ifdef USE_QT4
-
- QLAYOUT_REQUIRED_METHOD_DECLARATIONS
-
-#endif // USE_QT4
-
private:
int moveContainerPushRecursive(ItemList::const_iterator it, int distance);
int distanceToPreviousItem(ItemList::const_iterator it) const;
diff --git a/kicker/kicker/ui/k_mnu.cpp b/kicker/kicker/ui/k_mnu.cpp
index b99d6e3ba..e9329e225 100644
--- a/kicker/kicker/ui/k_mnu.cpp
+++ b/kicker/kicker/ui/k_mnu.cpp
@@ -122,9 +122,6 @@ void PanelKMenu::hideMenu()
{
hide();
-#ifdef USE_QT4
- // The hacks below aren't needed any more because Qt4 supports true transparency for the fading logout screen
-#else // USE_QT4
// Try to redraw the area under the menu
// Qt makes this surprisingly difficult to do in a timely fashion!
while (isShown() == true)
@@ -148,7 +145,6 @@ void PanelKMenu::hideMenu()
delaytimer->start( 100, TRUE ); // Wait for 100 milliseconds
while (windowTimerTimedOut == false)
kapp->eventLoop()->processEvents(TQEventLoop::ExcludeUserInput, 1000);
-#endif // USE_QT4
}
void PanelKMenu::windowClearTimeout()
diff --git a/kicker/libkicker/global.cpp b/kicker/libkicker/global.cpp
index 62f7f055a..8c45d519d 100644
--- a/kicker/libkicker/global.cpp
+++ b/kicker/libkicker/global.cpp
@@ -470,14 +470,9 @@ void drawBlendedRect(TQPainter *p, const TQRect &r, const TQColor &color, int al
if (pix.isNull() || last_color != color || last_alpha != alpha)
{
TQImage img(16, 16, 32);
-#ifdef USE_QT4
+ img.setAlphaBuffer(false);
+ img.fill(((uint)(alpha & 0xFF) << 24) | (color.rgb() & 0xFFFFFF));
img.setAlphaBuffer(true);
- img.fill(((uint)(alpha & 0xFF) << 24) | (color.rgb() & 0xFFFFFF));
-#else // USE_QT4
- img.setAlphaBuffer(false);
- img.fill(((uint)(alpha & 0xFF) << 24) | (color.rgb() & 0xFFFFFF));
- img.setAlphaBuffer(true);
-#endif // USE_QT4
pix.convertFromImage(img);
last_color = color;
last_alpha = alpha;