mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-08-11 19:29:56 +00:00
move back layout settings
This commit is contained in:
@ -147,6 +147,10 @@ void AwesomeWidget::createConfigurationInterface(KConfigDialog *parent)
|
||||
uiAdvancedConfig.checkBox_background->setCheckState(Qt::Unchecked);
|
||||
else
|
||||
uiAdvancedConfig.checkBox_background->setCheckState(Qt::Checked);
|
||||
if (configuration[QString("layout")].toInt() == 0)
|
||||
uiAdvancedConfig.checkBox_layout->setCheckState(Qt::Unchecked);
|
||||
else
|
||||
uiAdvancedConfig.checkBox_layout->setCheckState(Qt::Checked);
|
||||
if (configuration[QString("popup")].toInt() == 0)
|
||||
uiAdvancedConfig.checkBox_popup->setCheckState(Qt::Unchecked);
|
||||
else
|
||||
@ -400,6 +404,7 @@ void AwesomeWidget::configAccepted()
|
||||
|
||||
// advanced
|
||||
cg.writeEntry("background", QString::number(uiAdvancedConfig.checkBox_background->checkState()));
|
||||
cg.writeEntry("layout", QString::number(uiAdvancedConfig.checkBox_layout->checkState()));
|
||||
cg.writeEntry("popup", QString::number(uiAdvancedConfig.checkBox_popup->checkState()));
|
||||
cg.writeEntry("leftStretch", QString::number(uiAdvancedConfig.checkBox_leftStretch->checkState()));
|
||||
cg.writeEntry("rightStretch", QString::number(uiAdvancedConfig.checkBox_rightStretch->checkState()));
|
||||
@ -497,6 +502,7 @@ void AwesomeWidget::configChanged()
|
||||
|
||||
// advanced
|
||||
configuration[QString("background")] = cg.readEntry("background", "2");
|
||||
configuration[QString("layout")] = cg.readEntry("layout", "2");
|
||||
configuration[QString("popup")] = cg.readEntry("popup", "2");
|
||||
configuration[QString("leftStretch")] = cg.readEntry("leftStretch", "2");
|
||||
configuration[QString("rightStretch")] = cg.readEntry("rightStretch", "2");
|
||||
|
Reference in New Issue
Block a user