Mercurial > hg > sonic-visualiser
comparison main/SVSplash.cpp @ 2089:efd1b3c3d010 spectrogramparam
Merge from default branch
author | Chris Cannam |
---|---|
date | Mon, 12 Nov 2018 11:33:00 +0000 |
parents | 82cac4a6c581 |
children | eb7f4579e5cc |
comparison
equal
deleted
inserted
replaced
2084:1237bb25c957 | 2089:efd1b3c3d010 |
---|---|
89 void | 89 void |
90 SVSplash::drawContents(QPainter *painter) | 90 SVSplash::drawContents(QPainter *painter) |
91 { | 91 { |
92 painter->drawPixmap(rect(), *m_pixmap, m_pixmap->rect()); | 92 painter->drawPixmap(rect(), *m_pixmap, m_pixmap->rect()); |
93 QString text = QString("v%1").arg(SV_VERSION); | 93 QString text = QString("v%1").arg(SV_VERSION); |
94 painter->setPen(Qt::black); | |
94 painter->drawText | 95 painter->drawText |
95 (width() - painter->fontMetrics().width(text) - (width()/50), | 96 (width() - painter->fontMetrics().width(text) - (width()/50), |
96 (width()/70) + painter->fontMetrics().ascent(), | 97 (width()/70) + painter->fontMetrics().ascent(), |
97 text); | 98 text); |
98 } | 99 } |