summaryrefslogtreecommitdiffstats
path: root/kicker/applets/systemtray/systemtrayapplet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kicker/applets/systemtray/systemtrayapplet.cpp')
-rw-r--r--kicker/applets/systemtray/systemtrayapplet.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/kicker/applets/systemtray/systemtrayapplet.cpp b/kicker/applets/systemtray/systemtrayapplet.cpp
index 59e212611..97b71d1b2 100644
--- a/kicker/applets/systemtray/systemtrayapplet.cpp
+++ b/kicker/applets/systemtray/systemtrayapplet.cpp
@@ -558,9 +558,9 @@ void SystemTrayApplet::embedWindow( WId w, bool kde_tray )
delete emb;
return;
}
-
+
connect(emb, TQT_SIGNAL(embeddedWindowDestroyed()), TQT_SLOT(updateTrayWindows()));
- emb->getIconSize(m_iconSize);
+ emb->setFixedSize(m_iconSize, m_iconSize);
if (shouldHide(w))
{
@@ -1153,22 +1153,6 @@ TrayEmbed::~TrayEmbed()
//
}
-void TrayEmbed::getIconSize(int defaultIconSize)
-{
- TQSize minSize = minimumSizeHint();
-
- int width = minSize.width();
- int height = minSize.height();
-
- if (width < 1 || width > defaultIconSize)
- width = defaultIconSize;
- if (height < 1 || height > defaultIconSize)
- height = defaultIconSize;
-
- setFixedSize(width, height);
- setBackground();
-}
-
void TrayEmbed::setBackground()
{
const TQPixmap *pbg = parentWidget()->backgroundPixmap();