Implemented event filter in PanelWidget to enforce the receiving of mouse events (for the panel resize handle)

This commit is contained in:
Nav
2023-03-23 19:23:39 +00:00
parent 400a735760
commit 5b90c6280e
4 changed files with 25 additions and 2 deletions

View File

@@ -56,6 +56,7 @@ namespace Bloom::Widgets
auto* containerLayout = this->container->findChild<QVBoxLayout*>();
this->snapshotListView = new ListView({}, this);
this->snapshotListView->viewport()->installEventFilter(parent);
this->snapshotListView->setVerticalScrollBarPolicy(Qt::ScrollBarPolicy::ScrollBarAsNeeded);
this->snapshotListScene = this->snapshotListView->listScene();

View File

@@ -117,7 +117,7 @@ namespace Bloom::Widgets
this->rightPanel = new PanelWidget(PanelWidgetType::RIGHT, this->settings.rightPanelState, this);
this->rightPanel->setObjectName("right-panel");
this->rightPanel->setMinimumResize(200);
this->rightPanel->setHandleSize(5);
this->rightPanel->setHandleSize(6);
this->subContainerLayout->insertWidget(2, this->rightPanel);
this->snapshotManager = new SnapshotManager(