[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:02:03
Message-ID: 20040307020203.B22D5997F () office ! kde ! org
[Download RAW message or body]
CVS commit by nhasan:
Only show Xinerama module if we have a Xinerama setup.
CCMAIL: staikos@kde.org
M +5 -2 display.cpp 1.9
--- kdebase/kcontrol/display/display.cpp #1.8:1.9
@@ -24,4 +24,5 @@
#include <kgenericfactory.h>
+#include <qapplication.h>
#include <qlayout.h>
#include <qtabwidget.h>
@@ -31,5 +32,6 @@ K_EXPORT_COMPONENT_FACTORY ( kcm_display
KCMDisplay::KCMDisplay( QWidget *parent, const char *name, const QStringList& )
- : KCModule( parent, name )
+ : KCModule( parent, name ),
+ m_randr( 0 ), m_gamma( 0 ), m_xiner( 0 )
{
m_tabs = new QTabWidget( this );
@@ -37,4 +39,5 @@ KCMDisplay::KCMDisplay( QWidget *parent,
m_randr = addTab( "randr", i18n( "Size && Orientation" ) );
m_gamma = addTab( "kgamma", i18n( "Monitor Gamma" ) );
+ if ( QApplication::desktop()->isVirtualDesktop() )
m_xiner = addTab( "xinerama", i18n( "Multiple Monitors" ) );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic