Set a proper sizeHint for the pipeline flowchart

This commit is contained in:
baldurk
2017-06-19 13:55:38 +01:00
parent b2f760a1c6
commit 2831c4dfdd
6 changed files with 7 additions and 48 deletions
+5
View File
@@ -83,6 +83,11 @@ int PipelineFlowChart::selectedStage()
return m_SelectedStage;
}
QSize PipelineFlowChart::sizeHint() const
{
return QSize(0, 60);
}
void PipelineFlowChart::setStagesEnabled(const QList<bool> &enabled)
{
for(int i = 0; i < enabled.count() && i < m_StagesEnabled.count(); i++)
+2
View File
@@ -45,6 +45,8 @@ public:
void setSelectedStage(int idx);
int selectedStage();
QSize sizeHint() const override;
signals:
void stageSelected(int idx);
@@ -160,18 +160,6 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>60</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>75</height>
</size>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
@@ -160,18 +160,6 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>60</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>75</height>
</size>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
@@ -160,18 +160,6 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>60</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>75</height>
</size>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>
@@ -160,18 +160,6 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>60</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>75</height>
</size>
</property>
<property name="font">
<font>
<pointsize>12</pointsize>