author | harlekin <harlekin> | 2003-04-26 18:09:02 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-04-26 18:09:02 (UTC) |
commit | e2d44ce9293a3db6710753c2e7e2c38a54f60faf (patch) (side-by-side diff) | |
tree | 0934dcd9e1af931a3e61f6f0d09e9aaa838b53e1 /core/applets/cardmon/cardmon.cpp | |
parent | fb10c3a3ba4e509db788cee5009b2480a8381190 (diff) | |
download | opie-e2d44ce9293a3db6710753c2e7e2c38a54f60faf.zip opie-e2d44ce9293a3db6710753c2e7e2c38a54f60faf.tar.gz opie-e2d44ce9293a3db6710753c2e7e2c38a54f60faf.tar.bz2 |
make applets more flexible regarding size
Diffstat (limited to 'core/applets/cardmon/cardmon.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/applets/cardmon/cardmon.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/core/applets/cardmon/cardmon.cpp b/core/applets/cardmon/cardmon.cpp index f3f9044..b8c4553 100644 --- a/core/applets/cardmon/cardmon.cpp +++ b/core/applets/cardmon/cardmon.cpp @@ -23,6 +23,8 @@ #include <opie/odevice.h> +#include <qpe/applnk.h> + #include <qcopchannel_qws.h> #include <qpainter.h> #include <qmessagebox.h> @@ -46,8 +48,7 @@ using namespace Opie; CardMonitor::CardMonitor(QWidget * parent):QWidget(parent), -pm(Resource:: - loadPixmap("cardmon/pcmcia")) + pm( Resource::loadPixmap("cardmon/pcmcia") ) { QCopChannel *pcmciaChannel = new QCopChannel("QPE/Card", this); @@ -64,7 +65,11 @@ pm(Resource:: cardInPcmcia1 = FALSE; cardInSd = FALSE; - setFixedSize(pm.size()); + setFocusPolicy( NoFocus ); + + setFixedWidth ( AppLnk::smallIconSize() ); + setFixedHeight ( AppLnk::smallIconSize() ); + getStatusPcmcia(TRUE); getStatusSd(TRUE); repaint(FALSE); |