[calamares] Redo debug window tools

- make the tools tab buttons along the bottom row
- show the global storage tab by default

This costs little screen real-estate, makes the tools much more
visible and useful.
This commit is contained in:
Adriaan de Groot 2021-03-19 13:51:30 +01:00
parent c54e417ff3
commit 981e96ea7f

View File

@ -21,7 +21,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
<item> <item>
<widget class="QTabWidget" name="tabWidget"> <widget class="QTabWidget" name="tabWidget">
<property name="currentIndex"> <property name="currentIndex">
<number>3</number> <number>0</number>
</property> </property>
<widget class="QWidget" name="globalStorageTab"> <widget class="QWidget" name="globalStorageTab">
<attribute name="title"> <attribute name="title">
@ -92,55 +92,63 @@ SPDX-License-Identifier: GPL-3.0-or-later
</item> </item>
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="toolsTab"> </widget>
<attribute name="title"> </item>
<string>Tools</string> <item>
</attribute> <layout class="QHBoxLayout" name="horizontalLayout_2">
<layout class="QVBoxLayout" name="verticalLayout_4">
<item> <item>
<widget class="QPushButton" name="crashButton"> <widget class="QPushButton" name="crashButton">
<property name="toolTip">
<string>Crashes Calamares, so that Dr. Konqui can look at it.</string>
</property>
<property name="text"> <property name="text">
<string notr="true">Crash now</string> <string notr="true">Crash now</string>
</property> </property>
<property name="icon">
<iconset theme="data-error"/>
</property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="reloadStylesheetButton"> <widget class="QPushButton" name="reloadStylesheetButton">
<property name="toolTip">
<string>Reloads the stylesheet from the branding directory.</string>
</property>
<property name="text"> <property name="text">
<string>Reload Stylesheet</string> <string>Reload Stylesheet</string>
</property> </property>
<property name="icon">
<iconset theme="preferences-web-browser-stylesheets"/>
</property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="widgetTreeButton"> <widget class="QPushButton" name="widgetTreeButton">
<property name="toolTip">
<string>Displays the tree of widget names in the log (for stylesheet debugging).</string>
</property>
<property name="text"> <property name="text">
<string>Widget Tree</string> <string>Widget Tree</string>
</property> </property>
<property name="icon">
<iconset theme="view-list-tree"/>
</property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QPushButton" name="sendLogButton"> <widget class="QPushButton" name="sendLogButton">
<property name="toolTip">
<string>Uploads the session log to the configured pastebin.</string>
</property>
<property name="text"> <property name="text">
<string>Send Session Log</string> <string>Send Session Log</string>
</property> </property>
<property name="icon">
<iconset theme="upload-media"/>
</property>
</widget> </widget>
</item> </item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout> </layout>
</widget>
</widget>
</item> </item>
</layout> </layout>
</widget> </widget>