summaryrefslogtreecommitdiff
path: root/noncore/applets/memoryapplet/swapfile.cpp
authordrw <drw>2005-06-04 00:26:18 (UTC)
committer drw <drw>2005-06-04 00:26:18 (UTC)
commitc21c13d9c1aa69cbc6ef5dd596e3345f0cb0e2c6 (patch) (unidiff)
tree1437946e2e4ca0c2997e62d3bb08e439d2991c6c /noncore/applets/memoryapplet/swapfile.cpp
parentd5f6413fb06e8363eb6c3170905b1b18831438f4 (diff)
downloadopie-c21c13d9c1aa69cbc6ef5dd596e3345f0cb0e2c6.zip
opie-c21c13d9c1aa69cbc6ef5dd596e3345f0cb0e2c6.tar.gz
opie-c21c13d9c1aa69cbc6ef5dd596e3345f0cb0e2c6.tar.bz2
Resource -> OResource
Diffstat (limited to 'noncore/applets/memoryapplet/swapfile.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/applets/memoryapplet/swapfile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/applets/memoryapplet/swapfile.cpp b/noncore/applets/memoryapplet/swapfile.cpp
index 50c173b..cd16d6d 100644
--- a/noncore/applets/memoryapplet/swapfile.cpp
+++ b/noncore/applets/memoryapplet/swapfile.cpp
@@ -20,13 +20,13 @@
20**********************************************************************/ 20**********************************************************************/
21 21
22#include "swapfile.h" 22#include "swapfile.h"
23 23
24/* OPIE */ 24/* OPIE */
25#include <opie2/odebug.h> 25#include <opie2/odebug.h>
26#include <qpe/resource.h> 26#include <opie2/oresource.h>
27using namespace Opie::Core; 27using namespace Opie::Core;
28 28
29/* QT */ 29/* QT */
30#include <qfile.h> 30#include <qfile.h>
31#include <qtextstream.h> 31#include <qtextstream.h>
32#include <qlabel.h> 32#include <qlabel.h>
@@ -290,13 +290,13 @@ void Swapfile::swapon()
290} 290}
291 291
292 292
293void Swapfile::setStatusMessage(const QString& text, bool error /* = false */) 293void Swapfile::setStatusMessage(const QString& text, bool error /* = false */)
294{ 294{
295 swapStatus->setText("<b>" + text + "</b>"); 295 swapStatus->setText("<b>" + text + "</b>");
296 swapStatusIcon->setPixmap(Resource::loadPixmap(error ? "close" : "done")); 296 swapStatusIcon->setPixmap(Opie::Core::OResource::loadPixmap(error ? "close" : "done", Opie::Core::OResource::SmallIcon));
297} 297}
298 298
299 299
300void Swapfile::swapoff() 300void Swapfile::swapoff()
301{ 301{
302 char swapcmd[128] ="swapoff "; 302 char swapcmd[128] ="swapoff ";