author | drw <drw> | 2005-06-04 00:13:32 (UTC) |
---|---|---|
committer | drw <drw> | 2005-06-04 00:13:32 (UTC) |
commit | c220c5e580c3cd0e16cf9a7c252a0f66b7034d02 (patch) (unidiff) | |
tree | feec669d11c40c6f66fef806e42df0fdad4f6d5d /noncore/applets/keyhelper/keyhelperapplet/anylnk/AnyLnk.cpp | |
parent | 0fcaa971ee658effa1dc36205df6dfbc43a6b0ad (diff) | |
download | opie-c220c5e580c3cd0e16cf9a7c252a0f66b7034d02.zip opie-c220c5e580c3cd0e16cf9a7c252a0f66b7034d02.tar.gz opie-c220c5e580c3cd0e16cf9a7c252a0f66b7034d02.tar.bz2 |
Resource -> OResource, fix couple compile warnings and add .cvsignore files
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,25 +1,19 @@ | |||
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){ |
20 | QString& str = m_params[1]; | 14 | QString& str = m_params[1]; |
21 | if(str != QString::null && str.length() > 0){ | 15 | if(str != QString::null && str.length() > 0){ |
22 | replaceKeyword(str); | 16 | replaceKeyword(str); |
23 | replaceDate(str); | 17 | replaceDate(str); |
24 | } | 18 | } |
25 | } | 19 | } |