Use KDecorationOption::defaultTitleButtons(Left|Right) instead of hardcoding the strings in Aurorae theme config.

svn path=/trunk/KDE/kdebase/workspace/; revision=1103187
This commit is contained in:
Martin Gräßlin 2010-03-14 15:35:14 +00:00
parent aaaaee7113
commit 42a0a12252

View file

@ -15,6 +15,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*********************************************************************/ *********************************************************************/
#include "themeconfig.h" #include "themeconfig.h"
#include <kdecoration.h>
#include <KConfig> #include <KConfig>
#include <KConfigGroup> #include <KConfigGroup>
@ -59,8 +60,8 @@ void ThemeConfig::load(KConfig *conf)
m_verticalAlignment = Qt::AlignBottom; m_verticalAlignment = Qt::AlignBottom;
} }
m_animationTime = general.readEntry("Animation", 0); m_animationTime = general.readEntry("Animation", 0);
m_defaultButtonsLeft = general.readEntry("LeftButtons", "MS"); m_defaultButtonsLeft = general.readEntry("LeftButtons", KDecorationOptions::defaultTitleButtonsLeft());
m_defaultButtonsRight = general.readEntry("RightButtons", "HIA__X"); m_defaultButtonsRight = general.readEntry("RightButtons", KDecorationOptions::defaultTitleButtonsRight());
m_shadow = general.readEntry("Shadow", true); m_shadow = general.readEntry("Shadow", true);
KConfigGroup border(conf, "Layout"); KConfigGroup border(conf, "Layout");