Change size adjust policy of tableView to adjust to contents, add Select All menu item

This commit is contained in:
Arthur Golubtsov
2019-09-19 15:02:13 +03:00
parent c0d3b3f547
commit 56fb329309
2 changed files with 30 additions and 7 deletions

View File

@@ -32,7 +32,7 @@
</sizepolicy>
</property>
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustToContentsOnFirstShow</enum>
<enum>QAbstractScrollArea::AdjustToContents</enum>
</property>
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectItems</enum>
@@ -53,7 +53,7 @@
<number>125</number>
</attribute>
<attribute name="horizontalHeaderMinimumSectionSize">
<number>100</number>
<number>50</number>
</attribute>
<attribute name="horizontalHeaderStretchLastSection">
<bool>true</bool>
@@ -281,7 +281,14 @@
<addaction name="separator"/>
<addaction name="menuDeveloper_mode"/>
</widget>
<widget class="QMenu" name="menuTable">
<property name="title">
<string>Table</string>
</property>
<addaction name="action_select_all_rows"/>
</widget>
<addaction name="menuOptions"/>
<addaction name="menuTable"/>
</widget>
<action name="action_send_animations">
<property name="text">
@@ -323,6 +330,14 @@
<string>Restart clever-show service</string>
</property>
</action>
<action name="action_select_all_rows">
<property name="text">
<string>Select All</string>
</property>
<property name="shortcut">
<string>Ctrl+A</string>
</property>
</action>
</widget>
<tabstops>
<tabstop>check_button</tabstop>