Fix too small size of some icons in system tray

This resolves bug 2687

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/2/head
Slávek Banko 6 years ago
parent 1757afecf6
commit 6bd9497d8e

@ -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();

@ -131,7 +131,6 @@ public:
~TrayEmbed();
bool kdeTray() const { return kde_tray; }
void setBackground();
void getIconSize(int defaultIconSize);
private:
bool kde_tray;
TQWidget *m_scaledWidget;

Loading…
Cancel
Save