panel: have property-view occupy much less space by default

The initially more important part of the panel is clearly the task structure.
For longer tasks, the empty properties-view adds a scrollbar to the task when none would be needed.
This commit is contained in:
v4hn 2020-04-15 22:19:11 +02:00
parent 73fdca1708
commit 853e7324e9

View File

@ -260,6 +260,9 @@ TaskView::TaskView(moveit_rviz_plugin::TaskPanel* parent, rviz::Property* root)
: SubPanel(parent), d_ptr(new TaskViewPrivate(this)) {
Q_D(TaskView);
d_ptr->tasks_property_splitter->setStretchFactor(0, 3);
d_ptr->tasks_property_splitter->setStretchFactor(1, 1);
// connect signals
connect(d->actionRemoveTaskTreeRows, SIGNAL(triggered()), this, SLOT(removeSelectedStages()));
connect(d->actionAddLocalTask, SIGNAL(triggered()), this, SLOT(addTask()));