various graph editor improvements

This commit is contained in:
itsmattkc
2019-01-04 15:26:31 +11:00
parent 50a64c3bf5
commit 6c8ec756d8
5 changed files with 150 additions and 60 deletions
+3 -2
View File
@@ -97,6 +97,7 @@ GraphEditor::GraphEditor(QWidget* parent) : QDockWidget(parent), row(NULL) {
QWidget* central_value_widget = new QWidget();
value_layout = new QHBoxLayout();
value_layout->setMargin(0);
value_layout->addWidget(new QLabel("")); // a spacer so the layout doesn't jump
central_value_widget->setLayout(value_layout);
values->addWidget(central_value_widget);
@@ -193,11 +194,11 @@ void GraphEditor::set_row(EffectRow *r) {
current_row_desc->setText(0);
}
view->set_row(row);
update_panel();
update_panel();
}
bool GraphEditor::view_is_focused() {
return view->hasFocus() || header->hasFocus();
return view->hasFocus() || header->hasFocus();
}
void GraphEditor::set_key_button_enabled(bool e, int type) {