Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Unmaintained
KDE Workspace
Commits
f371688e
Commit
f371688e
authored
Dec 17, 2013
by
Hugo Pereira Da Costa
Browse files
added UI option for UseBackgroundGradient
CCBUG: 273423
parent
0725ddb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
kstyles/oxygen/config/oxygenstyleconfig.cpp
View file @
f371688e
...
...
@@ -74,6 +74,7 @@ namespace Oxygen
// load setup from configData
load
();
connect
(
_useBackgroundGradient
,
SIGNAL
(
toggled
(
bool
)),
SLOT
(
updateChanged
())
);
connect
(
_toolBarDrawItemSeparator
,
SIGNAL
(
toggled
(
bool
)),
SLOT
(
updateChanged
())
);
connect
(
_checkDrawX
,
SIGNAL
(
toggled
(
bool
)),
SLOT
(
updateChanged
())
);
connect
(
_splitterProxyEnabled
,
SIGNAL
(
toggled
(
bool
)),
SLOT
(
updateChanged
())
);
...
...
@@ -100,6 +101,7 @@ namespace Oxygen
//__________________________________________________________________
void
StyleConfig
::
save
(
void
)
{
StyleConfigData
::
setUseBackgroundGradient
(
_useBackgroundGradient
->
isChecked
()
);
StyleConfigData
::
setToolBarDrawItemSeparator
(
_toolBarDrawItemSeparator
->
isChecked
()
);
StyleConfigData
::
setCheckBoxStyle
(
(
_checkDrawX
->
isChecked
()
?
StyleConfigData
::
CS_X
:
StyleConfigData
::
CS_CHECK
)
);
StyleConfigData
::
setSplitterProxyEnabled
(
_splitterProxyEnabled
->
isChecked
()
);
...
...
@@ -271,6 +273,7 @@ namespace Oxygen
bool
modified
(
false
);
// check if any value was modified
if
(
_useBackgroundGradient
->
isChecked
()
!=
StyleConfigData
::
useBackgroundGradient
()
)
modified
=
true
;
if
(
_toolBarDrawItemSeparator
->
isChecked
()
!=
StyleConfigData
::
toolBarDrawItemSeparator
()
)
modified
=
true
;
else
if
(
_mnemonicsMode
->
currentIndex
()
!=
StyleConfigData
::
mnemonicsMode
()
)
modified
=
true
;
else
if
(
_viewDrawTriangularExpander
->
isChecked
()
!=
StyleConfigData
::
viewDrawTriangularExpander
()
)
modified
=
true
;
...
...
@@ -319,6 +322,7 @@ namespace Oxygen
void
StyleConfig
::
load
(
void
)
{
_useBackgroundGradient
->
setChecked
(
StyleConfigData
::
useBackgroundGradient
()
);
_toolBarDrawItemSeparator
->
setChecked
(
StyleConfigData
::
toolBarDrawItemSeparator
()
);
_mnemonicsMode
->
setCurrentIndex
(
StyleConfigData
::
mnemonicsMode
()
);
_splitterProxyEnabled
->
setChecked
(
StyleConfigData
::
splitterProxyEnabled
()
);
...
...
kstyles/oxygen/config/ui/oxygenstyleconfig.ui
View file @
f371688e
...
...
@@ -45,6 +45,13 @@
<string>
General
</string>
</attribute>
<layout
class=
"QVBoxLayout"
name=
"verticalLayout_3"
>
<item>
<widget
class=
"QCheckBox"
name=
"_useBackgroundGradient"
>
<property
name=
"text"
>
<string>
Draw window background gradient
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QCheckBox"
name=
"_toolBarDrawItemSeparator"
>
<property
name=
"text"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment