summaryrefslogtreecommitdiffstats
path: root/src/widget/wpushbutton.cpp
diff options
context:
space:
mode:
authorOwen Williams <owilliams@mixxx.org>2014-10-11 12:47:25 -0400
committerOwen Williams <owilliams@mixxx.org>2014-10-11 12:47:25 -0400
commit005152af35abd32dfa5d8a6be81ca5fa56aeb441 (patch)
tree53b6bac7be7adee254b0be36d87598030efc75c0 /src/widget/wpushbutton.cpp
parente7403aa48ec70b575456e07dc7c0d6acb4bea7ed (diff)
LateNight: fix labels being centered even when specfied as left-justified.
The parsing code was case-sensitive -- fixed. The style.qss file had an override to make all WLabel's centered -- removed. Fixed lp#1380113
Diffstat (limited to 'src/widget/wpushbutton.cpp')
-rw-r--r--src/widget/wpushbutton.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widget/wpushbutton.cpp b/src/widget/wpushbutton.cpp
index 325292bbae..6aaf8fa44a 100644
--- a/src/widget/wpushbutton.cpp
+++ b/src/widget/wpushbutton.cpp
@@ -72,19 +72,19 @@ void WPushButton::setup(QDomNode node, const SkinContext& context) {
int iState = context.selectInt(state, "Number");
if (iState < m_iNoStates) {
QString pixmapPath;
-
+
pixmapPath = context.getPixmapPath(context.selectNode(state, "Unpressed"));
if (!pixmapPath.isEmpty()) {
setPixmap(iState, false, pixmapPath);
}
-
+
pixmapPath = context.getPixmapPath(context.selectNode(state, "Pressed"));
if (!pixmapPath.isEmpty()) {
setPixmap(iState, true, pixmapPath);
}
-
+
m_text.replace(iState, context.selectString(state, "Text"));
- QString alignment = context.selectString(state, "Alignment");
+ QString alignment = context.selectString(state, "Alignment").toLower();
if (alignment == "left") {
m_align.replace(iState, Qt::AlignLeft);
} else if (alignment == "right") {