author | mickeyl <mickeyl> | 2004-11-10 19:41:11 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-11-10 19:41:11 (UTC) |
commit | d2f3b6f525be4d652fbac7c87ab0ad40e21af184 (patch) (side-by-side diff) | |
tree | 1be63fb1e8d3cc16daa2d52f2df37125b7be5c9b | |
parent | 9088b52d1ef7c4e70e62a53e225c69508cc8afe3 (diff) | |
download | opie-d2f3b6f525be4d652fbac7c87ab0ad40e21af184.zip opie-d2f3b6f525be4d652fbac7c87ab0ad40e21af184.tar.gz opie-d2f3b6f525be4d652fbac7c87ab0ad40e21af184.tar.bz2 |
BUGFIX: write to the proper config file *cough*
-rw-r--r-- | noncore/applets/brightnessapplet/brightnessapplet.cpp | 4 | ||||
-rw-r--r-- | noncore/applets/brightnessapplet/brightnessapplet.pro | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/noncore/applets/brightnessapplet/brightnessapplet.cpp b/noncore/applets/brightnessapplet/brightnessapplet.cpp index 5aaa27e..90fde05 100644 --- a/noncore/applets/brightnessapplet/brightnessapplet.cpp +++ b/noncore/applets/brightnessapplet/brightnessapplet.cpp @@ -147,48 +147,48 @@ void BrightnessAppletControl::hideEvent( QHideEvent* e ) } BrightnessApplet::BrightnessApplet( QWidget *parent, const char *name ) :OTaskbarApplet( parent, name ) { setFixedHeight( AppLnk::smallIconSize() ); setFixedWidth( AppLnk::smallIconSize() ); _pixmap.convertFromImage( Resource::loadImage( "brightnessapplet/icon" ).smoothScale( height(), width() ) ); _control = new BrightnessAppletControl( this, "control" ); } void BrightnessApplet::writeSystemBrightness(int brightness) { PowerStatus ps = PowerStatusManager::readStatus(); - Config cfg("qpe"); + Config cfg( "apm" ); if (ps.acStatus() == PowerStatus::Online) { cfg.setGroup("AC"); } else { cfg.setGroup("Battery"); } cfg.writeEntry("Brightness", brightness); odebug << "writing brightness " << brightness << oendl; cfg.write(); } int BrightnessApplet::readSystemBrightness(void) { PowerStatus ps = PowerStatusManager::readStatus(); - Config cfg("qpe"); + Config cfg( "apm" ); if (ps.acStatus() == PowerStatus::Online) { cfg.setGroup("AC"); } else { cfg.setGroup("Battery"); } odebug << "reading brightness " << cfg.readNumEntry("Brightness", 128) << oendl; return cfg.readNumEntry("Brightness", 128); } BrightnessApplet::~BrightnessApplet() { } diff --git a/noncore/applets/brightnessapplet/brightnessapplet.pro b/noncore/applets/brightnessapplet/brightnessapplet.pro index 8c65120..79a44d3 100644 --- a/noncore/applets/brightnessapplet/brightnessapplet.pro +++ b/noncore/applets/brightnessapplet/brightnessapplet.pro @@ -1,13 +1,13 @@ TEMPLATE = lib CONFIG += qt plugin warn_on HEADERS = brightnessapplet.h SOURCES = brightnessapplet.cpp TARGET = brightnessapplet DESTDIR = $(OPIEDIR)/plugins/applets INCLUDEPATH += $(OPIEDIR)/include DEPENDPATH += $(OPIEDIR)/include LIBS += -lqpe -lopiecore2 -lopieui2 -VERSION = 0.1.1 +VERSION = 0.1.2 include ( $(OPIEDIR)/include.pro ) |