Commit ed19fe68 authored by Jarosław Staniek's avatar Jarosław Staniek

Fix width of ruler in "Detail" section of the Report Designer

The width increases if ruler is put into a layout, so we're setting fixed width based on sizeHint.

BUG:338942
FIXED-IN:2.8.7
parent 5d02a6c4
......@@ -92,6 +92,7 @@ ReportSection::ReportSection(KoReportDesigner * rptdes)
glayout->addWidget(m_sectionRuler, 1, 0);
glayout->addWidget(m_sceneView , 1, 1);
glayout->addWidget(m_resizeBar, 2, 0, 1, 2);
m_sectionRuler->setFixedWidth(m_sectionRuler->sizeHint().width());
setLayout(glayout);
slotResizeBarDragged(0);
......
......@@ -92,6 +92,12 @@ public:
*/
QList<QAction*> popupActionList() const;
/// reimplemented
virtual QSize minimumSizeHint() const;
/// reimplemented
virtual QSize sizeHint() const;
public slots:
/// Set the unit of the ruler
void setUnit(const KoUnit &unit);
......@@ -260,10 +266,6 @@ protected:
virtual void mouseReleaseEvent(QMouseEvent *ev);
/// reimplemented
virtual void mouseMoveEvent(QMouseEvent *ev);
/// reimplemented
virtual QSize minimumSizeHint() const;
/// reimplemented
virtual QSize sizeHint() const;
private:
KoRulerPrivate * const d;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment