[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kcontrol/display
From: Nadeem Hasan <nhasan () nadmm ! com>
Date: 2004-03-07 2:09:34
Message-ID: 20040307020934.92A5B997F () office ! kde ! org
[Download RAW message or body]
CVS commit by nhasan:
Add "Display Power Control" aka DPMS module to Display module.
M +7 -2 display.cpp 1.10
M +1 -0 display.h 1.6
--- kdebase/kcontrol/display/display.cpp #1.9:1.10
@@ -1,4 +1,4 @@
/* This file is part of the KDE project
- Copyright (C) 2003 Nadeem Hasan <nhasan@kde.org>
+ Copyright (C) 2003-2004 Nadeem Hasan <nhasan@kde.org>
This program is free software; you can redistribute it and/or
@@ -33,5 +33,5 @@ K_EXPORT_COMPONENT_FACTORY ( kcm_display
KCMDisplay::KCMDisplay( QWidget *parent, const char *name, const QStringList& )
: KCModule( parent, name ),
- m_randr( 0 ), m_gamma( 0 ), m_xiner( 0 )
+ m_randr( 0 ), m_gamma( 0 ), m_xiner( 0 ), m_energy( 0 )
{
m_tabs = new QTabWidget( this );
@@ -41,4 +41,5 @@ KCMDisplay::KCMDisplay( QWidget *parent,
if ( QApplication::desktop()->isVirtualDesktop() )
m_xiner = addTab( "xinerama", i18n( "Multiple Monitors" ) );
+ m_energy = addTab( "energy", i18n( "Power Control" ) );
QVBoxLayout *top = new QVBoxLayout( this, 0, KDialog::spacingHint() );
@@ -77,4 +78,6 @@ void KCMDisplay::load()
if ( m_xiner )
m_xiner->load();
+ if ( m_energy )
+ m_energy->load();
}
@@ -87,4 +90,6 @@ void KCMDisplay::save()
if ( m_xiner )
m_xiner->save();
+ if ( m_energy )
+ m_energy->save();
}
--- kdebase/kcontrol/display/display.h #1.5:1.6
@@ -40,4 +40,5 @@ class KCMDisplay : public KCModule
KCModule *m_gamma;
KCModule *m_xiner;
+ KCModule *m_energy;
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic