summaryrefslogtreecommitdiffstats
path: root/src/widget/wnumber.cpp
diff options
context:
space:
mode:
authorRJ Ryan <rryan@mixxx.org>2014-01-07 18:43:48 -0500
committerRJ Ryan <rryan@mixxx.org>2014-01-10 13:25:04 -0500
commit8af748c5c5a4f0672cca7d9a7ee54414f087a0af (patch)
tree601ad54a17b245980e78d3bf6cdd2afc0260c4a5 /src/widget/wnumber.cpp
parent94dcef7472fcf30b4590d1da9ff021c2846e041c (diff)
Make WLabel inherit QLabel instead of WWidget.
WLabel and its variants don't really need anything provided by WWidget. As far as I can tell no existing CSS styles use WWidget to style WLabel either, so this should be safe skin-wise. This also gets rid of WWidget::getComposedWidget since its sole purpose was for styling labels.
Diffstat (limited to 'src/widget/wnumber.cpp')
-rw-r--r--src/widget/wnumber.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widget/wnumber.cpp b/src/widget/wnumber.cpp
index 30eb8f0aea..a3a862ab5b 100644
--- a/src/widget/wnumber.cpp
+++ b/src/widget/wnumber.cpp
@@ -52,7 +52,7 @@ void WNumber::setValue(double dValue) {
int d1 = (int)floor((v-floor(v))*10.);
int d2 = (int)floor((v-floor(v))*100.)%10;
- m_pLabel->setText(QString(m_qsText).append("%1.%2%3").arg(
+ setText(QString(m_qsText).append("%1.%2%3").arg(
QString("%1").arg(static_cast<int>(v), 3, 10),
QString("%1").arg(d1, 1, 10),
QString("%1").arg(d2, 1, 10)));