sound_quality.ui 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ui version="4.0">
  3. <class>OfbQtSoundQualityModule</class>
  4. <widget class="QWidget" name="OfbQtSoundQualityModule">
  5. <property name="geometry">
  6. <rect>
  7. <x>0</x>
  8. <y>0</y>
  9. <width>479</width>
  10. <height>654</height>
  11. </rect>
  12. </property>
  13. <property name="windowTitle">
  14. <string notr="true">Sound quality</string>
  15. </property>
  16. <layout class="QVBoxLayout" name="verticalLayout_2">
  17. <property name="spacing">
  18. <number>8</number>
  19. </property>
  20. <item>
  21. <widget class="QLabel" name="label_4">
  22. <property name="text">
  23. <string>Configure sound-related device settings.</string>
  24. </property>
  25. </widget>
  26. </item>
  27. <item>
  28. <widget class="QGroupBox" name="sq_root">
  29. <property name="title">
  30. <string>Sound quality preference:</string>
  31. </property>
  32. <layout class="QVBoxLayout" name="verticalLayout">
  33. <item>
  34. <widget class="QRadioButton" name="sq_radio_sound">
  35. <property name="text">
  36. <string>Prioritize sound quality</string>
  37. </property>
  38. </widget>
  39. </item>
  40. <item>
  41. <widget class="QLabel" name="label">
  42. <property name="text">
  43. <string>Device will prefer loseless audio codecs, like LDAC.</string>
  44. </property>
  45. <property name="wordWrap">
  46. <bool>true</bool>
  47. </property>
  48. </widget>
  49. </item>
  50. <item>
  51. <widget class="QRadioButton" name="sq_radio_connection">
  52. <property name="text">
  53. <string>Prioritize connection quality</string>
  54. </property>
  55. </widget>
  56. </item>
  57. <item>
  58. <widget class="QLabel" name="label_2">
  59. <property name="text">
  60. <string>Device will prefer audio codec with better compression, like AAC</string>
  61. </property>
  62. <property name="wordWrap">
  63. <bool>true</bool>
  64. </property>
  65. </widget>
  66. </item>
  67. </layout>
  68. </widget>
  69. </item>
  70. <item>
  71. <widget class="QGroupBox" name="eq_root">
  72. <property name="title">
  73. <string>Equalizer</string>
  74. </property>
  75. <layout class="QGridLayout" name="gridLayout">
  76. <item row="0" column="0">
  77. <widget class="QLabel" name="label_3">
  78. <property name="text">
  79. <string>Preset:</string>
  80. </property>
  81. </widget>
  82. </item>
  83. <item row="0" column="1">
  84. <widget class="QComboBox" name="eq_preset_box"/>
  85. </item>
  86. <item row="0" column="2">
  87. <widget class="QPushButton" name="custom_edit_button">
  88. <property name="sizePolicy">
  89. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  90. <horstretch>0</horstretch>
  91. <verstretch>0</verstretch>
  92. </sizepolicy>
  93. </property>
  94. <property name="maximumSize">
  95. <size>
  96. <width>30</width>
  97. <height>16777215</height>
  98. </size>
  99. </property>
  100. <property name="styleSheet">
  101. <string notr="true"> QPushButton::menu-indicator{width:0px;}</string>
  102. </property>
  103. <property name="text">
  104. <string notr="true">…</string>
  105. </property>
  106. </widget>
  107. </item>
  108. </layout>
  109. </widget>
  110. </item>
  111. <item>
  112. <widget class="QGroupBox" name="custom_eq">
  113. <property name="sizePolicy">
  114. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  115. <horstretch>0</horstretch>
  116. <verstretch>0</verstretch>
  117. </sizepolicy>
  118. </property>
  119. <property name="minimumSize">
  120. <size>
  121. <width>0</width>
  122. <height>0</height>
  123. </size>
  124. </property>
  125. <property name="maximumSize">
  126. <size>
  127. <width>16777215</width>
  128. <height>99999</height>
  129. </size>
  130. </property>
  131. <property name="title">
  132. <string>Customize preset</string>
  133. </property>
  134. <layout class="QVBoxLayout" name="verticalLayout_3">
  135. <item>
  136. <widget class="QWidget" name="custom_eq_rows" native="true">
  137. <property name="sizePolicy">
  138. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  139. <horstretch>0</horstretch>
  140. <verstretch>0</verstretch>
  141. </sizepolicy>
  142. </property>
  143. <property name="minimumSize">
  144. <size>
  145. <width>0</width>
  146. <height>200</height>
  147. </size>
  148. </property>
  149. <property name="maximumSize">
  150. <size>
  151. <width>16777215</width>
  152. <height>200</height>
  153. </size>
  154. </property>
  155. <layout class="QHBoxLayout" name="custom_eq_rows_layout"/>
  156. </widget>
  157. </item>
  158. <item>
  159. <widget class="QWidget" name="save_panel" native="true">
  160. <property name="sizePolicy">
  161. <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
  162. <horstretch>0</horstretch>
  163. <verstretch>0</verstretch>
  164. </sizepolicy>
  165. </property>
  166. <layout class="QHBoxLayout" name="horizontalLayout_2">
  167. <property name="leftMargin">
  168. <number>0</number>
  169. </property>
  170. <property name="topMargin">
  171. <number>0</number>
  172. </property>
  173. <property name="rightMargin">
  174. <number>0</number>
  175. </property>
  176. <property name="bottomMargin">
  177. <number>0</number>
  178. </property>
  179. <item>
  180. <widget class="QLabel" name="label_5">
  181. <property name="font">
  182. <font>
  183. <bold>true</bold>
  184. </font>
  185. </property>
  186. <property name="styleSheet">
  187. <string notr="true"/>
  188. </property>
  189. <property name="text">
  190. <string>Save changes?</string>
  191. </property>
  192. </widget>
  193. </item>
  194. <item>
  195. <widget class="QPushButton" name="save_btn">
  196. <property name="sizePolicy">
  197. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  198. <horstretch>0</horstretch>
  199. <verstretch>0</verstretch>
  200. </sizepolicy>
  201. </property>
  202. <property name="text">
  203. <string>Save</string>
  204. </property>
  205. </widget>
  206. </item>
  207. <item>
  208. <widget class="QPushButton" name="undo_btn">
  209. <property name="sizePolicy">
  210. <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
  211. <horstretch>0</horstretch>
  212. <verstretch>0</verstretch>
  213. </sizepolicy>
  214. </property>
  215. <property name="text">
  216. <string/>
  217. </property>
  218. </widget>
  219. </item>
  220. </layout>
  221. </widget>
  222. </item>
  223. </layout>
  224. </widget>
  225. </item>
  226. <item>
  227. <spacer name="verticalSpacer">
  228. <property name="orientation">
  229. <enum>Qt::Vertical</enum>
  230. </property>
  231. <property name="sizeHint" stdset="0">
  232. <size>
  233. <width>20</width>
  234. <height>40</height>
  235. </size>
  236. </property>
  237. </spacer>
  238. </item>
  239. </layout>
  240. </widget>
  241. <resources/>
  242. <connections>
  243. <connection>
  244. <sender>eq_preset_box</sender>
  245. <signal>currentIndexChanged(int)</signal>
  246. <receiver>OfbQtSoundQualityModule</receiver>
  247. <slot>on_eq_preset_change(int)</slot>
  248. <hints>
  249. <hint type="sourcelabel">
  250. <x>347</x>
  251. <y>228</y>
  252. </hint>
  253. <hint type="destinationlabel">
  254. <x>237</x>
  255. <y>311</y>
  256. </hint>
  257. </hints>
  258. </connection>
  259. <connection>
  260. <sender>sq_radio_connection</sender>
  261. <signal>pressed()</signal>
  262. <receiver>OfbQtSoundQualityModule</receiver>
  263. <slot>on_sq_set_connectivity()</slot>
  264. <hints>
  265. <hint type="sourcelabel">
  266. <x>237</x>
  267. <y>129</y>
  268. </hint>
  269. <hint type="destinationlabel">
  270. <x>237</x>
  271. <y>311</y>
  272. </hint>
  273. </hints>
  274. </connection>
  275. <connection>
  276. <sender>sq_radio_sound</sender>
  277. <signal>pressed()</signal>
  278. <receiver>OfbQtSoundQualityModule</receiver>
  279. <slot>on_sq_set_quality()</slot>
  280. <hints>
  281. <hint type="sourcelabel">
  282. <x>237</x>
  283. <y>77</y>
  284. </hint>
  285. <hint type="destinationlabel">
  286. <x>237</x>
  287. <y>311</y>
  288. </hint>
  289. </hints>
  290. </connection>
  291. <connection>
  292. <sender>save_btn</sender>
  293. <signal>clicked()</signal>
  294. <receiver>OfbQtSoundQualityModule</receiver>
  295. <slot>on_custom_save()</slot>
  296. <hints>
  297. <hint type="sourcelabel">
  298. <x>383</x>
  299. <y>436</y>
  300. </hint>
  301. <hint type="destinationlabel">
  302. <x>239</x>
  303. <y>311</y>
  304. </hint>
  305. </hints>
  306. </connection>
  307. <connection>
  308. <sender>undo_btn</sender>
  309. <signal>clicked()</signal>
  310. <receiver>OfbQtSoundQualityModule</receiver>
  311. <slot>on_custom_reset()</slot>
  312. <hints>
  313. <hint type="sourcelabel">
  314. <x>443</x>
  315. <y>435</y>
  316. </hint>
  317. <hint type="destinationlabel">
  318. <x>239</x>
  319. <y>311</y>
  320. </hint>
  321. </hints>
  322. </connection>
  323. </connections>
  324. <slots>
  325. <slot>on_eq_preset_change(int)</slot>
  326. <slot>on_sq_set_quality()</slot>
  327. <slot>on_sq_set_connectivity()</slot>
  328. <slot>on_custom_save()</slot>
  329. <slot>on_custom_reset()</slot>
  330. </slots>
  331. </ui>