Unify look of frames in 3d View using stylesheets

This commit is contained in:
Gaute Lindkvist
2019-04-07 18:16:31 +02:00
parent a6dda48606
commit 7f926a5a4d
4 changed files with 17 additions and 12 deletions

View File

@@ -27,8 +27,8 @@
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RiuSimpleHistogramWidget::RiuSimpleHistogramWidget(QWidget * parent /*= 0*/, Qt::WindowFlags f /*= 0*/):
QWidget(parent, f)
RiuSimpleHistogramWidget::RiuSimpleHistogramWidget(const QString& objectName, QWidget * parent /*= 0*/, Qt::WindowFlags f /*= 0*/)
: QWidget(parent, f)
{
m_minPercentile = HUGE_VAL;
m_maxPercentile = HUGE_VAL;
@@ -41,6 +41,8 @@ QWidget(parent, f)
m_height = 0;
m_x = 0;
m_y = 0;
setObjectName(objectName);
}
//--------------------------------------------------------------------------------------------------
@@ -48,7 +50,7 @@ QWidget(parent, f)
//--------------------------------------------------------------------------------------------------
void RiuSimpleHistogramWidget::paintEvent(QPaintEvent* event)
{
QPainter painter(this);
QPainter painter(this);
this->draw(&painter, 0, 0, this->width()-1, this->height()-1);
}