Make the loglevel radiobuttons automatically accept the popup.

There's not much point in requiring the user to explicitly press an
"OK" button for something that simple as switching log levels.
This commit is contained in:
Joerg Wunsch
2024-03-28 12:48:14 +01:00
parent 9aaf86466b
commit ad03989349

View File

@@ -17,16 +17,16 @@
<property name="geometry">
<rect>
<x>180</x>
<y>30</y>
<y>280</y>
<width>81</width>
<height>241</height>
<height>31</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="standardButtons">
<set>QDialogButtonBox::Ok</set>
<set>QDialogButtonBox::Cancel</set>
</property>
</widget>
<widget class="QGroupBox" name="groupBox">
@@ -192,22 +192,6 @@
</widget>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>LogLevel</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
@@ -224,5 +208,149 @@
</hint>
</hints>
</connection>
<connection>
<sender>radioButton</sender>
<signal>clicked()</signal>
<receiver>LogLevel</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>83</x>
<y>51</y>
</hint>
<hint type="destinationlabel">
<x>138</x>
<y>158</y>
</hint>
</hints>
</connection>
<connection>
<sender>radioButton_2</sender>
<signal>clicked()</signal>
<receiver>LogLevel</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>83</x>
<y>81</y>
</hint>
<hint type="destinationlabel">
<x>138</x>
<y>158</y>
</hint>
</hints>
</connection>
<connection>
<sender>radioButton_3</sender>
<signal>clicked()</signal>
<receiver>LogLevel</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>83</x>
<y>111</y>
</hint>
<hint type="destinationlabel">
<x>138</x>
<y>158</y>
</hint>
</hints>
</connection>
<connection>
<sender>radioButton_4</sender>
<signal>clicked()</signal>
<receiver>LogLevel</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>83</x>
<y>141</y>
</hint>
<hint type="destinationlabel">
<x>138</x>
<y>158</y>
</hint>
</hints>
</connection>
<connection>
<sender>radioButton_5</sender>
<signal>clicked()</signal>
<receiver>LogLevel</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>83</x>
<y>171</y>
</hint>
<hint type="destinationlabel">
<x>138</x>
<y>158</y>
</hint>
</hints>
</connection>
<connection>
<sender>radioButton_6</sender>
<signal>clicked()</signal>
<receiver>LogLevel</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>83</x>
<y>201</y>
</hint>
<hint type="destinationlabel">
<x>138</x>
<y>158</y>
</hint>
</hints>
</connection>
<connection>
<sender>radioButton_7</sender>
<signal>clicked()</signal>
<receiver>LogLevel</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>83</x>
<y>231</y>
</hint>
<hint type="destinationlabel">
<x>138</x>
<y>158</y>
</hint>
</hints>
</connection>
<connection>
<sender>radioButton_8</sender>
<signal>clicked()</signal>
<receiver>LogLevel</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>83</x>
<y>261</y>
</hint>
<hint type="destinationlabel">
<x>138</x>
<y>158</y>
</hint>
</hints>
</connection>
<connection>
<sender>radioButton_9</sender>
<signal>clicked()</signal>
<receiver>LogLevel</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>83</x>
<y>291</y>
</hint>
<hint type="destinationlabel">
<x>138</x>
<y>158</y>
</hint>
</hints>
</connection>
</connections>
</ui>