Skip to content

Commit

Permalink
Ui: Promote QGraphicsView to View in LevelCelView/CelView
Browse files Browse the repository at this point in the history
This patch promotes QGraphicsView widget to View class in
LevelCelView/CelView ui forms, so events for mouse can be dispatched
properly.
  • Loading branch information
tetektoza committed Nov 1, 2023
1 parent 8430ad2 commit 4cfb4d7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
11 changes: 9 additions & 2 deletions source/celview.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>660</width>
<height>482</height>
<height>486</height>
</rect>
</property>
<property name="sizePolicy">
Expand Down Expand Up @@ -61,7 +61,7 @@
</widget>
</item>
<item>
<widget class="QGraphicsView" name="celGraphicsView">
<widget class="View" name="celGraphicsView">
<property name="minimumSize">
<size>
<width>500</width>
Expand Down Expand Up @@ -777,6 +777,13 @@
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>View</class>
<extends>QGraphicsView</extends>
<header>view.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>
11 changes: 9 additions & 2 deletions source/levelcelview.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>874</width>
<height>523</height>
<height>528</height>
</rect>
</property>
<property name="sizePolicy">
Expand Down Expand Up @@ -84,7 +84,7 @@
</layout>
</item>
<item>
<widget class="QGraphicsView" name="celGraphicsView">
<widget class="View" name="celGraphicsView">
<property name="minimumSize">
<size>
<width>500</width>
Expand Down Expand Up @@ -1146,6 +1146,13 @@
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>View</class>
<extends>QGraphicsView</extends>
<header>view.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>

0 comments on commit 4cfb4d7

Please sign in to comment.