Skip to content

Commit

Permalink
Merge branch 'master' into issue_2794
Browse files Browse the repository at this point in the history
# Fixed conflicts in:
#	spinetoolbox/resources_icons_rc.py
#	spinetoolbox/ui/mainwindow.py
#	spinetoolbox/ui/mainwindow.ui
  • Loading branch information
ptsavol committed Nov 20, 2024
2 parents 89ffdf4 + 206f459 commit f824660
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 35 deletions.
8 changes: 4 additions & 4 deletions spinetoolbox/resources_icons_rc.py
Original file line number Diff line number Diff line change
Expand Up @@ -32602,7 +32602,7 @@
\x00\x00\x02R\x00\x00\x00\x00\x00\x01\x00\x06A\x9c\
\x00\x00\x01\x8f\xec\xcf\x12\xea\
\x00\x00\x03\xf6\x00\x00\x00\x00\x00\x01\x00\x06\x978\
\x00\x00\x01\x93D[e\x88\
\x00\x00\x01\x93IP\xaeM\
\x00\x00\x01\xea\x00\x00\x00\x00\x00\x01\x00\x062\x92\
\x00\x00\x01\x8f\xec\xcf\x13\x09\
\x00\x00\x04\x94\x00\x00\x00\x00\x00\x01\x00\x06\xaa\xa4\
Expand Down Expand Up @@ -32662,7 +32662,7 @@
\x00\x00\x09z\x00\x00\x00\x00\x00\x01\x00\x07P}\
\x00\x00\x01\x8f\xec\xcf\x12\xfa\
\x00\x00\x08\xd8\x00\x00\x00\x00\x00\x01\x00\x07=|\
\x00\x00\x01\x93D[e\x88\
\x00\x00\x01\x93IP\xaeN\
\x00\x00\x0a\x00\x00\x00\x00\x00\x00\x01\x00\x07gO\
\x00\x00\x01\x8f\xec\xcf\x12\xfa\
\x00\x00\x076\x00\x00\x00\x00\x00\x01\x00\x07\x0f\x05\
Expand Down Expand Up @@ -32736,9 +32736,9 @@
\x00\x00\x07\xca\x00\x00\x00\x00\x00\x01\x00\x07!\x85\
\x00\x00\x01\x8f\xec\xcf\x12\xfa\
\x00\x00\x0b\x16\x00\x00\x00\x00\x00\x01\x00\x07\x9c\x9c\
\x00\x00\x01\x93D[e\x89\
\x00\x00\x01\x93IP\xaeP\
\x00\x00\x06\xf8\x00\x00\x00\x00\x00\x01\x00\x06\xfc\x96\
\x00\x00\x01\x93D[e\x89\
\x00\x00\x01\x93IP\xaeO\
\x00\x00\x0a\xfe\x00\x00\x00\x00\x00\x01\x00\x07\x9b6\
\x00\x00\x01\x8f\xec\xcf\x12\xfa\
\x00\x00\x06\xce\x00\x00\x00\x00\x00\x01\x00\x06\xf6R\
Expand Down
30 changes: 15 additions & 15 deletions spinetoolbox/ui/mainwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def setupUi(self, MainWindow):
sizePolicy.setHeightForWidth(self.dockWidget_eventlog.sizePolicy().hasHeightForWidth())
self.dockWidget_eventlog.setSizePolicy(sizePolicy)
self.dockWidget_eventlog.setMinimumSize(QSize(82, 104))
self.dockWidget_eventlog.setFeatures(QDockWidget.DockWidgetClosable|QDockWidget.DockWidgetFloatable|QDockWidget.DockWidgetMovable)
self.dockWidget_eventlog.setFeatures(QDockWidget.DockWidgetFeature.DockWidgetClosable|QDockWidget.DockWidgetFeature.DockWidgetFloatable|QDockWidget.DockWidgetFeature.DockWidgetMovable)
self.dockWidgetContents = QWidget()
self.dockWidgetContents.setObjectName(u"dockWidgetContents")
sizePolicy1 = QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Expanding)
Expand All @@ -260,7 +260,7 @@ def setupUi(self, MainWindow):
self.textBrowser_eventlog.setObjectName(u"textBrowser_eventlog")
sizePolicy.setHeightForWidth(self.textBrowser_eventlog.sizePolicy().hasHeightForWidth())
self.textBrowser_eventlog.setSizePolicy(sizePolicy)
self.textBrowser_eventlog.setContextMenuPolicy(Qt.DefaultContextMenu)
self.textBrowser_eventlog.setContextMenuPolicy(Qt.ContextMenuPolicy.DefaultContextMenu)
self.textBrowser_eventlog.setOpenLinks(False)

self.verticalLayout_7.addWidget(self.textBrowser_eventlog)
Expand All @@ -270,8 +270,8 @@ def setupUi(self, MainWindow):
icon21 = QIcon()
icon21.addFile(u":/icons/check-circle.svg", QSize(), QIcon.Mode.Normal, QIcon.State.Off)
self.toolButton_executions.setIcon(icon21)
self.toolButton_executions.setPopupMode(QToolButton.InstantPopup)
self.toolButton_executions.setToolButtonStyle(Qt.ToolButtonTextBesideIcon)
self.toolButton_executions.setPopupMode(QToolButton.ToolButtonPopupMode.InstantPopup)
self.toolButton_executions.setToolButtonStyle(Qt.ToolButtonStyle.ToolButtonTextBesideIcon)

self.verticalLayout_7.addWidget(self.toolButton_executions)

Expand All @@ -291,7 +291,7 @@ def setupUi(self, MainWindow):
self.verticalLayout_6.setContentsMargins(0, 0, 0, 0)
self.splitter_console = QSplitter(self.dockWidgetContents_console)
self.splitter_console.setObjectName(u"splitter_console")
self.splitter_console.setOrientation(Qt.Vertical)
self.splitter_console.setOrientation(Qt.Orientation.Vertical)
self.splitter_console.setChildrenCollapsible(False)
self.listView_console_executions = QTreeView(self.splitter_console)
self.listView_console_executions.setObjectName(u"listView_console_executions")
Expand All @@ -303,8 +303,8 @@ def setupUi(self, MainWindow):
self.splitter_console.addWidget(self.listView_console_executions)
self.label_no_console = QLabel(self.splitter_console)
self.label_no_console.setObjectName(u"label_no_console")
self.label_no_console.setContextMenuPolicy(Qt.DefaultContextMenu)
self.label_no_console.setAlignment(Qt.AlignCenter)
self.label_no_console.setContextMenuPolicy(Qt.ContextMenuPolicy.DefaultContextMenu)
self.label_no_console.setAlignment(Qt.AlignmentFlag.AlignCenter)
self.label_no_console.setWordWrap(True)
self.splitter_console.addWidget(self.label_no_console)

Expand All @@ -314,7 +314,7 @@ def setupUi(self, MainWindow):
MainWindow.addDockWidget(Qt.DockWidgetArea.BottomDockWidgetArea, self.dockWidget_console)
self.dockWidget_design_view = QDockWidget(MainWindow)
self.dockWidget_design_view.setObjectName(u"dockWidget_design_view")
self.dockWidget_design_view.setFeatures(QDockWidget.DockWidgetMovable)
self.dockWidget_design_view.setFeatures(QDockWidget.DockWidgetFeature.DockWidgetMovable)
self.dockWidgetContents_5 = QWidget()
self.dockWidgetContents_5.setObjectName(u"dockWidgetContents_5")
self.verticalLayout_2 = QVBoxLayout(self.dockWidgetContents_5)
Expand All @@ -323,13 +323,13 @@ def setupUi(self, MainWindow):
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
self.graphicsView = DesignQGraphicsView(self.dockWidgetContents_5)
self.graphicsView.setObjectName(u"graphicsView")
self.graphicsView.setFrameShape(QFrame.NoFrame)
self.graphicsView.setFrameShadow(QFrame.Raised)
self.graphicsView.setRenderHints(QPainter.Antialiasing|QPainter.TextAntialiasing)
self.graphicsView.setDragMode(QGraphicsView.RubberBandDrag)
self.graphicsView.setResizeAnchor(QGraphicsView.AnchorUnderMouse)
self.graphicsView.setViewportUpdateMode(QGraphicsView.FullViewportUpdate)
self.graphicsView.setRubberBandSelectionMode(Qt.ContainsItemBoundingRect)
self.graphicsView.setFrameShape(QFrame.Shape.NoFrame)
self.graphicsView.setFrameShadow(QFrame.Shadow.Raised)
self.graphicsView.setRenderHints(QPainter.RenderHint.Antialiasing|QPainter.RenderHint.TextAntialiasing)
self.graphicsView.setDragMode(QGraphicsView.DragMode.RubberBandDrag)
self.graphicsView.setResizeAnchor(QGraphicsView.ViewportAnchor.AnchorUnderMouse)
self.graphicsView.setViewportUpdateMode(QGraphicsView.ViewportUpdateMode.FullViewportUpdate)
self.graphicsView.setRubberBandSelectionMode(Qt.ItemSelectionMode.ContainsItemBoundingRect)

self.verticalLayout_2.addWidget(self.graphicsView)

Expand Down
30 changes: 15 additions & 15 deletions spinetoolbox/ui/mainwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
</size>
</property>
<property name="features">
<set>QDockWidget::DockWidgetClosable|QDockWidget::DockWidgetFloatable|QDockWidget::DockWidgetMovable</set>
<set>QDockWidget::DockWidgetFeature::DockWidgetClosable|QDockWidget::DockWidgetFeature::DockWidgetFloatable|QDockWidget::DockWidgetFeature::DockWidgetMovable</set>
</property>
<property name="windowTitle">
<string>Event Log</string>
Expand Down Expand Up @@ -196,7 +196,7 @@
</sizepolicy>
</property>
<property name="contextMenuPolicy">
<enum>Qt::DefaultContextMenu</enum>
<enum>Qt::ContextMenuPolicy::DefaultContextMenu</enum>
</property>
<property name="openLinks">
<bool>false</bool>
Expand All @@ -213,10 +213,10 @@
<normaloff>:/icons/check-circle.svg</normaloff>:/icons/check-circle.svg</iconset>
</property>
<property name="popupMode">
<enum>QToolButton::InstantPopup</enum>
<enum>QToolButton::ToolButtonPopupMode::InstantPopup</enum>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextBesideIcon</enum>
<enum>Qt::ToolButtonStyle::ToolButtonTextBesideIcon</enum>
</property>
</widget>
</item>
Expand Down Expand Up @@ -255,7 +255,7 @@
<item>
<widget class="QSplitter" name="splitter_console">
<property name="orientation">
<enum>Qt::Vertical</enum>
<enum>Qt::Orientation::Vertical</enum>
</property>
<property name="childrenCollapsible">
<bool>false</bool>
Expand All @@ -275,13 +275,13 @@
</widget>
<widget class="QLabel" name="label_no_console">
<property name="contextMenuPolicy">
<enum>Qt::DefaultContextMenu</enum>
<enum>Qt::ContextMenuPolicy::DefaultContextMenu</enum>
</property>
<property name="text">
<string>Select an executing item to see its console</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
<set>Qt::AlignmentFlag::AlignCenter</set>
</property>
<property name="wordWrap">
<bool>true</bool>
Expand All @@ -294,7 +294,7 @@
</widget>
<widget class="QDockWidget" name="dockWidget_design_view">
<property name="features">
<set>QDockWidget::DockWidgetMovable</set>
<set>QDockWidget::DockWidgetFeature::DockWidgetMovable</set>
</property>
<property name="windowTitle">
<string>Design View</string>
Expand Down Expand Up @@ -322,25 +322,25 @@
<item>
<widget class="DesignQGraphicsView" name="graphicsView">
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
<enum>QFrame::Shape::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
<enum>QFrame::Shadow::Raised</enum>
</property>
<property name="renderHints">
<set>QPainter::Antialiasing|QPainter::TextAntialiasing</set>
<set>QPainter::RenderHint::Antialiasing|QPainter::RenderHint::TextAntialiasing</set>
</property>
<property name="dragMode">
<enum>QGraphicsView::RubberBandDrag</enum>
<enum>QGraphicsView::DragMode::RubberBandDrag</enum>
</property>
<property name="resizeAnchor">
<enum>QGraphicsView::AnchorUnderMouse</enum>
<enum>QGraphicsView::ViewportAnchor::AnchorUnderMouse</enum>
</property>
<property name="viewportUpdateMode">
<enum>QGraphicsView::FullViewportUpdate</enum>
<enum>QGraphicsView::ViewportUpdateMode::FullViewportUpdate</enum>
</property>
<property name="rubberBandSelectionMode">
<enum>Qt::ContainsItemBoundingRect</enum>
<enum>Qt::ItemSelectionMode::ContainsItemBoundingRect</enum>
</property>
</widget>
</item>
Expand Down
3 changes: 2 additions & 1 deletion tests/widgets/test_AddProjectItemWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from spinetoolbox.project_item.project_item import ProjectItem
from spinetoolbox.project_item.project_item_factory import ProjectItemFactory
from spinetoolbox.widgets.add_project_item_widget import AddProjectItemWidget
from spinetoolbox.widgets.properties_widget import PropertiesWidgetBase
from tests.mock_helpers import TestCaseWithQApplication, clean_up_toolbox, create_toolboxui_with_project


Expand Down Expand Up @@ -125,7 +126,7 @@ def make_properties_widget(toolbox):
Returns:
QWidget: item's properties tab widget
"""
return MagicMock()
return PropertiesWidgetBase(toolbox)

@staticmethod
def make_specification_menu(parent, index):
Expand Down

0 comments on commit f824660

Please sign in to comment.