diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2015-03-20 23:27:15 +0100 |
---|---|---|
committer | Daniel Schürmann <daschuer@mixxx.org> | 2015-03-20 23:27:15 +0100 |
commit | bab23b47265dfe487a9f5b6fda1e720a1731cb8f (patch) | |
tree | cf13bcaa187375986553c843678d798677bf8a80 /src/widget/wlabel.cpp | |
parent | 028abc0909ba6d128e07fb2cdf6167f24c2c5c6c (diff) |
Add qDebug for invalid alignment and elide options and added a TODO for Helvecia
Diffstat (limited to 'src/widget/wlabel.cpp')
-rw-r--r-- | src/widget/wlabel.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/widget/wlabel.cpp b/src/widget/wlabel.cpp index 9dcafb4e11..ca64644be2 100644 --- a/src/widget/wlabel.cpp +++ b/src/widget/wlabel.cpp @@ -53,6 +53,7 @@ void WLabel::setup(QDomNode node, const SkinContext& context) { QString strFontSize; if (context.hasNodeSelectString(node, "FontSize", &strFontSize)) { int fontsize = strFontSize.toInt(); + // TODO(XXX) "Helvetica" should retrain the Qt default font matching, verify that. setFont(QFont("Helvetica", fontsize, QFont::Normal)); } @@ -66,6 +67,9 @@ void WLabel::setup(QDomNode node, const SkinContext& context) { setAlignment(Qt::AlignHCenter | Qt::AlignVCenter); } else if (alignment == "left") { setAlignment(Qt::AlignLeft | Qt::AlignVCenter); + } else { + qDebug() << "WLabel::setup(): Alignment =" << alignment << + " unknown, use right, center or left"; } } @@ -81,6 +85,9 @@ void WLabel::setup(QDomNode node, const SkinContext& context) { m_elideMode = Qt::ElideLeft; } else if (elide == "none") { m_elideMode = Qt::ElideNone; + } else { + qDebug() << "WLabel::setup(): Alide =" << elide << + "unknown, use right, middle, left or none."; } } } |