summaryrefslogtreecommitdiff
path: root/core/applets/clipboardapplet/clipboard.cpp
Unidiff
Diffstat (limited to 'core/applets/clipboardapplet/clipboard.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/applets/clipboardapplet/clipboard.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/core/applets/clipboardapplet/clipboard.cpp b/core/applets/clipboardapplet/clipboard.cpp
index 21b68e3..bb0db9b 100644
--- a/core/applets/clipboardapplet/clipboard.cpp
+++ b/core/applets/clipboardapplet/clipboard.cpp
@@ -37,7 +37,11 @@ ClipboardApplet::ClipboardApplet( QWidget *parent, const char *name ) : QWidget(
37{ 37{
38 setFixedWidth ( AppLnk::smallIconSize() ); 38 setFixedWidth ( AppLnk::smallIconSize() );
39 setFixedHeight ( AppLnk::smallIconSize() ); 39 setFixedHeight ( AppLnk::smallIconSize() );
40 m_clipboardPixmap = QPixmap ( Resource::loadPixmap( "paste" ) ); 40
41 QImage img = Resource::loadImage( "paste");
42 img = img.smoothScale( AppLnk::smallIconSize(), AppLnk::smallIconSize() );
43
44 m_clipboardPixmap.convertFromImage( img );
41 45
42 m_timer = new QTimer ( this ); 46 m_timer = new QTimer ( this );
43 47
@@ -140,7 +144,9 @@ void ClipboardApplet::action(int id)
140void ClipboardApplet::paintEvent ( QPaintEvent* ) 144void ClipboardApplet::paintEvent ( QPaintEvent* )
141{ 145{
142 QPainter p ( this ); 146 QPainter p ( this );
143 p. drawPixmap( 0, 1, m_clipboardPixmap ); 147 /* center the height but our pixmap is as big as the height ;)*/
148 p. drawPixmap( 0, 0,
149 m_clipboardPixmap );
144} 150}
145 151
146void ClipboardApplet::newData ( ) 152void ClipboardApplet::newData ( )