From 8af748c5c5a4f0672cca7d9a7ee54414f087a0af Mon Sep 17 00:00:00 2001 From: RJ Ryan Date: Tue, 7 Jan 2014 18:43:48 -0500 Subject: 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. --- src/widget/wnumber.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/widget/wnumber.cpp') 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(v), 3, 10), QString("%1").arg(d1, 1, 10), QString("%1").arg(d2, 1, 10))); -- cgit v1.2.3