Fixed Klipper icon size when running as applet

git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1176514 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 14 years ago
parent eac7424f22
commit 4e9fd5f6e0

@ -196,7 +196,12 @@ KlipperWidget::KlipperWidget( TQWidget *parent, KConfig* config )
connect( poll, TQT_SIGNAL( clipboardChanged( bool ) ),
this, TQT_SLOT( newClipData( bool ) ) );
m_pixmap = KSystemTray::loadSizedIcon( "klipper", width() );
if ( isApplet() ) {
m_pixmap = KSystemTray::loadIcon( "klipper" );
}
else {
m_pixmap = KSystemTray::loadSizedIcon( "klipper", width() );
}
m_iconOrigWidth = width();
m_iconOrigHeight = height();
adjustSize();

@ -174,8 +174,8 @@ private:
KAction* quitAction;
TQPixmap m_pixmap;
TQPixmap m_scaledpixmap;
int m_iconOrigWidth :0;
int m_iconOrigHeight :0;
int m_iconOrigWidth;
int m_iconOrigHeight;
bool bPopupAtMouse :1;
bool bKeepContents :1;
bool bURLGrabber :1;

Loading…
Cancel
Save