[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/kwin/kcmkwin/kwindecoration
From: Sandro Giessl <sandro () giessl ! com>
Date: 2004-11-09 19:34:19
Message-ID: 20041109193419.40CB616D34 () office ! kde ! org
[Download RAW message or body]
CVS commit by giessl:
move border size chooser from "Buttons" into new tab "Border Size"
M +16 -8 kwindecoration.cpp 1.59
--- kdebase/kwin/kcmkwin/kwindecoration/kwindecoration.cpp #1.58:1.59
@@ -125,12 +125,4 @@ KWinDecorationModule::KWinDecorationModu
"If this checkbox is off, no window button \
tooltips will be shown."));
- lBorder = new QLabel( buttonPage );
- slBorder = new QSlider( Horizontal, buttonPage );
- slBorder->setPageStep(1);
- QWhatsThis::add( slBorder, i18n( "This slider shows all border sizes \
supported by this decoration." ));
- lBorder->setBuddy( slBorder );
- lBorder->hide();
- slBorder->hide();
-
cbUseCustomButtonPositions = new QCheckBox(
i18n("Use custom titlebar button &positions"), buttonPage );
@@ -151,4 +143,18 @@ KWinDecorationModule::KWinDecorationModu
buttonSource = new ButtonSource( buttonBox );
+ // Page 3 (Border size chooser)
+ QWidget* borderPage = new QWidget( tabWidget );
+ QVBoxLayout* borderLayout = new QVBoxLayout(borderPage, \
KDialog::marginHint(), KDialog::spacingHint()); + lBorder = new QLabel( \
borderPage ); + slBorder = new QSlider( Horizontal, borderPage );
+ slBorder->setPageStep(1);
+ QWhatsThis::add( slBorder, i18n( "This slider shows all border sizes \
supported by this decoration." )); + lBorder->setBuddy( slBorder );
+ lBorder->hide();
+ slBorder->hide();
+ borderLayout->addWidget(lBorder);
+ borderLayout->addWidget(slBorder);
+ borderLayout->addStretch();
+
// Load all installed decorations into memory
// Set up the decoration lists and other UI settings
@@ -160,4 +166,5 @@ KWinDecorationModule::KWinDecorationModu
tabWidget->insertTab( pluginPage, i18n("&Window Decoration") );
tabWidget->insertTab( buttonPage, i18n("&Buttons") );
+ tabWidget->insertTab( borderPage, i18n("B&order Size") );
connect( dropSite, SIGNAL(buttonAdded(char)), buttonSource, \
SLOT(hideButton(char)) ); @@ -612,3 +619,4 @@ void KWinDecorationModule::resetKWin()
#include "kwindecoration.moc"
// vim: ts=4
+// kate: space-indent off; tab-width 4;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic