Diffstat (limited to 'noncore/applets/keyhelper/keyhelperapplet/anylnk/AnyLnk.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/applets/keyhelper/keyhelperapplet/anylnk/AnyLnk.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/noncore/applets/keyhelper/keyhelperapplet/anylnk/AnyLnk.cpp b/noncore/applets/keyhelper/keyhelperapplet/anylnk/AnyLnk.cpp index 3c2298e..fc02862 100644 --- a/noncore/applets/keyhelper/keyhelperapplet/anylnk/AnyLnk.cpp +++ b/noncore/applets/keyhelper/keyhelperapplet/anylnk/AnyLnk.cpp | |||
@@ -1,19 +1,13 @@ | |||
1 | #include "AnyLnk.h" | 1 | #include "AnyLnk.h" |
2 | #include "KHUtil.h" | 2 | #include "KHUtil.h" |
3 | 3 | ||
4 | void AnyLnk::loadPixmap() | 4 | void AnyLnk::loadPixmap() |
5 | { | 5 | { |
6 | if(m_params.count() >= 3){ | 6 | if(m_params.count() >= 3){ |
7 | QString& str = m_params[2]; | 7 | m_pixmap = Opie::Core::OResource::loadPixmap( m_params[2], Opie::Core::OResource::SmallIcon ); |
8 | QImage image = Resource::loadImage(str); | ||
9 | if(image.isNull() == false){ | ||
10 | const QSize& size = AppLnkManager::getIconSize(); | ||
11 | m_pixmap.convertFromImage( | ||
12 | image.smoothScale(size.width(), size.height()) ); | ||
13 | } | ||
14 | } | 8 | } |
15 | } | 9 | } |
16 | 10 | ||
17 | void AnyLnk::parseText() | 11 | void AnyLnk::parseText() |
18 | { | 12 | { |
19 | if(m_params.count() >= 2){ | 13 | if(m_params.count() >= 2){ |