Diffstat (limited to 'core/applets/clipboardapplet/clipboard.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/applets/clipboardapplet/clipboard.cpp | 14 |
1 files changed, 10 insertions, 4 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 | |||
@@ -35,9 +35,13 @@ | |||
35 | 35 | ||
36 | ClipboardApplet::ClipboardApplet( QWidget *parent, const char *name ) : QWidget( parent, name ) | 36 | ClipboardApplet::ClipboardApplet( QWidget *parent, const char *name ) : QWidget( parent, name ) |
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) | |||
140 | void ClipboardApplet::paintEvent ( QPaintEvent* ) | 144 | void 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 | ||
146 | void ClipboardApplet::newData ( ) | 152 | void ClipboardApplet::newData ( ) |