introduce KDecorationOptions::defaultTitleButtonsLeft() and KDecorationOptions::defaultTitleButtonsRight() so as to centralize this default

svn path=/trunk/KDE/kdebase/workspace/; revision=737205
This commit is contained in:
Aaron J. Seigo 2007-11-15 20:08:57 +00:00
parent 2d1a7e1ea4
commit 003a0ea7d0
2 changed files with 18 additions and 1 deletions

View file

@ -428,11 +428,21 @@ QString KDecorationOptions::titleButtonsLeft() const
return d->title_buttons_left;
}
QString KDecorationOptions::defaultTitleButtonsLeft()
{
return "MS"; //aseigo: proposed new default "AIS__HM";
}
QString KDecorationOptions::titleButtonsRight() const
{
return d->title_buttons_right;
}
QString KDecorationOptions::defaultTitleButtonsRight()
{
return "HIAX"; //aseigo: proposed new default "X"
}
bool KDecorationOptions::showTooltips() const
{
return d->show_tooltips;

View file

@ -243,6 +243,10 @@ public:
* The changed flags for this setting is SettingButtons.
*/
QString titleButtonsLeft() const;
/**
* Returns the default left button sequence
*/
static QString defaultTitleButtonsLeft();
/**
* If customButtonPositions() returns true, titleButtonsRight
* returns which buttons should be on the right side of the titlebar from left
@ -255,7 +259,10 @@ public:
* The changed flags for this setting is SettingButtons.
*/
QString titleButtonsRight() const;
/**
* Returns the default right button sequence.
*/
static QString defaultTitleButtonsRight();
/**
* @returns true if the style should use tooltips for window buttons
* The changed flags for this setting is SettingTooltips.