#4085 3D view: Add check box for version info text

This commit is contained in:
Magne Sjaastad
2019-02-20 14:40:25 +01:00
parent 5449ef39dd
commit eb28bb8520
5 changed files with 31 additions and 2 deletions

View File

@@ -115,6 +115,7 @@ RiuViewer::RiuViewer(const QGLFormat& format, QWidget* parent)
m_versionInfoLabel->setFrameShape(QFrame::NoFrame);
m_versionInfoLabel->setAlignment(Qt::AlignRight);
m_versionInfoLabel->setText(QString("%1 v%2").arg(RI_APPLICATION_NAME, RiaApplication::getVersionStringApp(false)));
m_showVersionInfo = true;
// Z scale label
m_zScaleLabel = new QLabel();
@@ -395,7 +396,7 @@ void RiuViewer::paintOverlayItems(QPainter* painter)
// yPos += m_histogramWidget->height() + margin;
}
if (m_showInfoText) // Version Label
if (m_showVersionInfo) // Version Label
{
QSize size(m_versionInfoLabel->sizeHint().width(), m_versionInfoLabel->sizeHint().height());
QPoint pos(this->width() - size.width() - margin - edgeAxisFrameBorderWidth,
@@ -478,6 +479,14 @@ void RiuViewer::showInfoText(bool enable)
m_showInfoText = enable;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RiuViewer::showVersionInfo(bool enable)
{
m_showVersionInfo = enable;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------