Align title left by default
svn path=/trunk/KDE/kdebase/kwin/; revision=410832icc-effect-5.14.5
parent
860ee9fc2a
commit
e1d06ecbeb
|
@ -72,7 +72,7 @@ void PlastikConfig::load(KConfig*)
|
|||
m_config->setGroup("General");
|
||||
|
||||
|
||||
QString value = m_config->readEntry("TitleAlignment", "AlignHCenter");
|
||||
QString value = m_config->readEntry("TitleAlignment", "AlignLeft");
|
||||
QRadioButton *button = (QRadioButton*)m_dialog->titleAlign->child(value.latin1());
|
||||
if (button) button->setChecked(true);
|
||||
bool animateButtons = m_config->readBoolEntry("AnimateButtons", true);
|
||||
|
@ -101,7 +101,7 @@ void PlastikConfig::save(KConfig*)
|
|||
void PlastikConfig::defaults()
|
||||
{
|
||||
QRadioButton *button =
|
||||
(QRadioButton*)m_dialog->titleAlign->child("AlignHCenter");
|
||||
(QRadioButton*)m_dialog->titleAlign->child("AlignLeft");
|
||||
if (button) button->setChecked(true);
|
||||
m_dialog->animateButtons->setChecked(true);
|
||||
m_dialog->menuClose->setChecked(false);
|
||||
|
|
|
@ -184,7 +184,7 @@ void PlastikHandler::readConfig()
|
|||
if ( m_titleHeightTool%2 == 0)
|
||||
m_titleHeightTool++;
|
||||
|
||||
QString value = config.readEntry("TitleAlignment", "AlignHCenter");
|
||||
QString value = config.readEntry("TitleAlignment", "AlignLeft");
|
||||
if (value == "AlignLeft") m_titleAlign = Qt::AlignLeft;
|
||||
else if (value == "AlignHCenter") m_titleAlign = Qt::AlignHCenter;
|
||||
else if (value == "AlignRight") m_titleAlign = Qt::AlignRight;
|
||||
|
|
Loading…
Reference in New Issue