summaryrefslogtreecommitdiffstats
path: root/src/widget/wpushbutton.cpp
diff options
context:
space:
mode:
authorJean Claveau <jean.claveau@c277.fr>2014-11-19 00:38:40 +0100
committerJean Claveau <jean.claveau@c277.fr>2014-11-19 00:38:40 +0100
commit95fe8e2380695939bcc4a65dcd83284c1df13536 (patch)
tree09854be6e25690213536596cb48b1d48d56986dd /src/widget/wpushbutton.cpp
parent21c3269be7e918c24c6c5587a683309838ee94cf (diff)
little debug + cleanup
Diffstat (limited to 'src/widget/wpushbutton.cpp')
-rw-r--r--src/widget/wpushbutton.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/widget/wpushbutton.cpp b/src/widget/wpushbutton.cpp
index 6578ff5e12..d08d9672c2 100644
--- a/src/widget/wpushbutton.cpp
+++ b/src/widget/wpushbutton.cpp
@@ -75,14 +75,15 @@ void WPushButton::setup(QDomNode node, const SkinContext& context) {
int iState = stateContext.selectInt(state, "Number");
if (iState < m_iNoStates) {
- PixmapSource pixmapSource;
- pixmapSource = stateContext.getPixmapSource(stateContext.selectNode(state, "Unpressed"));
+ PixmapSource pixmapSource = stateContext.getPixmapSource(
+ stateContext.selectNode(state, "Unpressed"));
if (!pixmapSource.isEmpty()) {
setPixmap(iState, false, pixmapSource);
}
- pixmapSource = stateContext.getPixmapSource(stateContext.selectNode(state, "Pressed"));
+ pixmapSource = stateContext.getPixmapSource(
+ stateContext.selectNode(state, "Pressed"));
if (!pixmapSource.isEmpty()) {
setPixmap(iState, true, pixmapSource);
}