src/platform/qt/ShortcutView.ui (view raw)
1<?xml version="1.0" encoding="UTF-8"?>
2<ui version="4.0">
3 <class>ShortcutView</class>
4 <widget class="QWidget" name="ShortcutView">
5 <property name="geometry">
6 <rect>
7 <x>0</x>
8 <y>0</y>
9 <width>425</width>
10 <height>443</height>
11 </rect>
12 </property>
13 <property name="windowTitle">
14 <string>Edit Shortcuts</string>
15 </property>
16 <layout class="QVBoxLayout" name="verticalLayout">
17 <item>
18 <widget class="QTreeView" name="shortcutTable">
19 <attribute name="headerDefaultSectionSize">
20 <number>120</number>
21 </attribute>
22 </widget>
23 </item>
24 <item>
25 <layout class="QHBoxLayout" name="horizontalLayout">
26 <item>
27 <widget class="QRadioButton" name="keyboardButton">
28 <property name="text">
29 <string>Keyboard</string>
30 </property>
31 <property name="checked">
32 <bool>true</bool>
33 </property>
34 </widget>
35 </item>
36 <item>
37 <widget class="QRadioButton" name="gamepadButton">
38 <property name="text">
39 <string>Gamepad</string>
40 </property>
41 </widget>
42 </item>
43 <item>
44 <spacer name="horizontalSpacer_2">
45 <property name="orientation">
46 <enum>Qt::Horizontal</enum>
47 </property>
48 <property name="sizeHint" stdset="0">
49 <size>
50 <width>40</width>
51 <height>20</height>
52 </size>
53 </property>
54 </spacer>
55 </item>
56 <item>
57 <widget class="QKeySequenceEdit" name="keySequenceEdit">
58 <property name="sizePolicy">
59 <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
60 <horstretch>0</horstretch>
61 <verstretch>0</verstretch>
62 </sizepolicy>
63 </property>
64 <property name="minimumSize">
65 <size>
66 <width>40</width>
67 <height>0</height>
68 </size>
69 </property>
70 <property name="maximumSize">
71 <size>
72 <width>100</width>
73 <height>16777215</height>
74 </size>
75 </property>
76 </widget>
77 </item>
78 <item>
79 <widget class="QGBA::KeyEditor" name="keyEdit">
80 <property name="sizePolicy">
81 <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
82 <horstretch>0</horstretch>
83 <verstretch>0</verstretch>
84 </sizepolicy>
85 </property>
86 <property name="minimumSize">
87 <size>
88 <width>40</width>
89 <height>0</height>
90 </size>
91 </property>
92 <property name="maximumSize">
93 <size>
94 <width>100</width>
95 <height>16777215</height>
96 </size>
97 </property>
98 <property name="visible">
99 <bool>false</bool>
100 </property>
101 <property name="alignment">
102 <set>Qt::AlignCenter</set>
103 </property>
104 <property name="placeholderText">
105 <string>Press button</string>
106 </property>
107 </widget>
108 </item>
109 </layout>
110 </item>
111 </layout>
112 </widget>
113 <customwidgets>
114 <customwidget>
115 <class>QGBA::KeyEditor</class>
116 <extends>QLineEdit</extends>
117 <header>KeyEditor.h</header>
118 </customwidget>
119 </customwidgets>
120 <resources/>
121 <connections>
122 <connection>
123 <sender>keyboardButton</sender>
124 <signal>toggled(bool)</signal>
125 <receiver>keySequenceEdit</receiver>
126 <slot>setVisible(bool)</slot>
127 <hints>
128 <hint type="sourcelabel">
129 <x>86</x>
130 <y>374</y>
131 </hint>
132 <hint type="destinationlabel">
133 <x>66</x>
134 <y>20</y>
135 </hint>
136 </hints>
137 </connection>
138 <connection>
139 <sender>gamepadButton</sender>
140 <signal>toggled(bool)</signal>
141 <receiver>keyEdit</receiver>
142 <slot>setVisible(bool)</slot>
143 <hints>
144 <hint type="sourcelabel">
145 <x>213</x>
146 <y>374</y>
147 </hint>
148 <hint type="destinationlabel">
149 <x>206</x>
150 <y>340</y>
151 </hint>
152 </hints>
153 </connection>
154 </connections>
155</ui>