Changeset View
Standalone View
Modules/about-distro/src/Module.ui
Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Line(s) | 143 | <item row="13" column="1"> | |||
---|---|---|---|---|---|
145 | <property name="text"> | 145 | <property name="text"> | ||
146 | <string>Memory:</string> | 146 | <string>Memory:</string> | ||
147 | </property> | 147 | </property> | ||
148 | <property name="alignment"> | 148 | <property name="alignment"> | ||
149 | <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> | 149 | <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> | ||
150 | </property> | 150 | </property> | ||
151 | </widget> | 151 | </widget> | ||
152 | </item> | 152 | </item> | ||
153 | <item row="14" column="3"> | | |||
154 | <spacer name="verticalSpacer"> | | |||
155 | <property name="orientation"> | | |||
156 | <enum>Qt::Vertical</enum> | | |||
157 | </property> | | |||
158 | <property name="sizeHint" stdset="0"> | | |||
159 | <size> | | |||
160 | <width>20</width> | | |||
161 | <height>40</height> | | |||
162 | </size> | | |||
163 | </property> | | |||
164 | </spacer> | | |||
165 | </item> | | |||
166 | <item row="12" column="1"> | 153 | <item row="12" column="1"> | ||
167 | <widget class="QLabel" name="processor"> | 154 | <widget class="QLabel" name="processor"> | ||
168 | <property name="text"> | 155 | <property name="text"> | ||
169 | <string notr="true">Processor:</string> | 156 | <string notr="true">Processor:</string> | ||
170 | </property> | 157 | </property> | ||
171 | <property name="alignment"> | 158 | <property name="alignment"> | ||
172 | <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> | 159 | <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> | ||
173 | </property> | 160 | </property> | ||
▲ Show 20 Lines • Show All 162 Lines • ▼ Show 20 Line(s) | |||||
336 | </item> | 323 | </item> | ||
337 | <item row="6" column="3"> | 324 | <item row="6" column="3"> | ||
338 | <widget class="QLabel" name="frameworksLabel"> | 325 | <widget class="QLabel" name="frameworksLabel"> | ||
339 | <property name="text"> | 326 | <property name="text"> | ||
340 | <string notr="true">{FrameworksVersion}</string> | 327 | <string notr="true">{FrameworksVersion}</string> | ||
341 | </property> | 328 | </property> | ||
342 | </widget> | 329 | </widget> | ||
343 | </item> | 330 | </item> | ||
331 | <item row="15" column="0"> | ||||
332 | <widget class="QPushButton" name="pushButtonCopyInfo"> | ||||
333 | <property name="sizePolicy"> | ||||
334 | <sizepolicy hsizetype="Fixed" vsizetype="Fixed"> | ||||
335 | <horstretch>0</horstretch> | ||||
336 | <verstretch>0</verstretch> | ||||
337 | </sizepolicy> | ||||
338 | </property> | ||||
rkflx: Do you need this? Pressing the {nav Reset} button for that property in Qt Designer removes this… | |||||
If I remove that part, the button gets wider; I would prefer to keep it as small as possible. gregormi: If I remove that part, the button gets wider; I would prefer to keep it as small as possible. | |||||
rkflx: See reply in main comment. | |||||
339 | <property name="text"> | ||||
340 | <string>Copy Info</string> | ||||
341 | </property> | ||||
342 | <property name="icon"> | ||||
343 | <iconset theme="edit-copy"> | ||||
344 | <normaloff>.</normaloff>.</iconset> | ||||
345 | </property> | ||||
346 | </widget> | ||||
347 | </item> | ||||
rkflx: This looks odd. | |||||
348 | <item row="14" column="0"> | ||||
349 | <spacer name="verticalSpacer"> | ||||
350 | <property name="orientation"> | ||||
351 | <enum>Qt::Vertical</enum> | ||||
For me the shortcut actually works, but ideally this should use the standard shortcut for copying, which the user might have set to something different than Ctrl+C. You could try to look at how it works in Spectacle. I suspect you'd need to add the appropriate action or standard shortcut for that, e.g. KStandardAction::Copy or QKeySequence::Copy, instead of setting shortcut and icon manually. rkflx: For me the shortcut actually works, but ideally this should use the standard shortcut for… | |||||
The KStandardAction method seems only easily applicable with QToolButtons but not with QPushButton. Furthermore, I got the "ambiguous key binding" when I tried it. I now settled for QKeySequence::Copy which does not work for me but at least results in no error message. gregormi: The KStandardAction method seems only easily applicable with QToolButtons but not with… | |||||
Works perfectly fine for me. I think there might be something off with your local shortcuts setup. rkflx: Works perfectly fine for me. I think there might be something off with your local shortcuts… | |||||
gregormi: Ok. Then I leave it like that. | |||||
352 | </property> | ||||
353 | <property name="sizeHint" stdset="0"> | ||||
354 | <size> | ||||
355 | <width>20</width> | ||||
356 | <height>40</height> | ||||
357 | </size> | ||||
358 | </property> | ||||
359 | </spacer> | ||||
360 | </item> | ||||
344 | </layout> | 361 | </layout> | ||
345 | </widget> | 362 | </widget> | ||
346 | <resources/> | 363 | <resources/> | ||
347 | <connections/> | 364 | <connections/> | ||
348 | </ui> | 365 | </ui> |
Do you need this? Pressing the Reset button for that property in Qt Designer removes this for me.