Skip to content

Commit 328eae4

Browse files
committed
ref: make maintenance tool buttons push buttons
1 parent 02d62cd commit 328eae4

2 files changed

Lines changed: 22 additions & 9 deletions

File tree

dcoraid/gui/panel_maintenance/widget_maintenance.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ def __init__(self, *args, **kwargs):
2525
with resources.as_file(ref_ui) as path_ui:
2626
uic.loadUi(path_ui, self)
2727

28-
self.toolButton_cache.clicked.connect(self.on_clear_cache)
29-
self.toolButton_drafts.clicked.connect(self.on_remove_drafts)
28+
self.pushButton_cache.clicked.connect(self.on_clear_cache)
29+
self.pushButton_drafts.clicked.connect(self.on_remove_drafts)
3030

3131
@staticmethod
3232
def find_main_window():

dcoraid/gui/panel_maintenance/widget_maintenance.ui

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
<property name="windowTitle">
1414
<string>Form</string>
1515
</property>
16-
<layout class="QVBoxLayout" name="verticalLayout">
17-
<item>
18-
<widget class="QToolButton" name="toolButton_drafts">
16+
<layout class="QGridLayout" name="gridLayout">
17+
<item row="0" column="0">
18+
<widget class="QPushButton" name="pushButton_drafts">
1919
<property name="toolTip">
2020
<string>Remove all draft datasets created on DCOR (these might have been the result of failed uploads)</string>
2121
</property>
@@ -24,8 +24,8 @@
2424
</property>
2525
</widget>
2626
</item>
27-
<item>
28-
<widget class="QToolButton" name="toolButton_cache">
27+
<item row="1" column="0">
28+
<widget class="QPushButton" name="pushButton_cache">
2929
<property name="toolTip">
3030
<string>Remove the local DCOR-Aid cache directory (this directory might contain compressed resource files from unexpectedly interrupted uploads)</string>
3131
</property>
@@ -34,10 +34,10 @@
3434
</property>
3535
</widget>
3636
</item>
37-
<item>
37+
<item row="2" column="0">
3838
<spacer name="verticalSpacer">
3939
<property name="orientation">
40-
<enum>Qt::Vertical</enum>
40+
<enum>Qt::Orientation::Vertical</enum>
4141
</property>
4242
<property name="sizeHint" stdset="0">
4343
<size>
@@ -47,6 +47,19 @@
4747
</property>
4848
</spacer>
4949
</item>
50+
<item row="0" column="1">
51+
<spacer name="horizontalSpacer">
52+
<property name="orientation">
53+
<enum>Qt::Orientation::Horizontal</enum>
54+
</property>
55+
<property name="sizeHint" stdset="0">
56+
<size>
57+
<width>40</width>
58+
<height>20</height>
59+
</size>
60+
</property>
61+
</spacer>
62+
</item>
5063
</layout>
5164
</widget>
5265
<resources/>

0 commit comments

Comments
 (0)