[KCM] Squeeze key and make it selectable by mouse

Avoids it blowing up the layout
This commit is contained in:
Kai Uwe Broulik 2021-11-30 23:27:21 +01:00
parent 2a3ab4104e
commit 14633d4486

View file

@ -215,10 +215,13 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="verificationKey"> <widget class="KSqueezedTextLabel" name="verificationKey">
<property name="text"> <property name="text">
<string>🔑 abababab</string> <string>🔑 abababab</string>
</property> </property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
</property>
</widget> </widget>
</item> </item>
</layout> </layout>
@ -385,6 +388,11 @@
<header>kmessagewidget.h</header> <header>kmessagewidget.h</header>
<container>1</container> <container>1</container>
</customwidget> </customwidget>
<customwidget>
<class>KSqueezedTextLabel</class>
<extends>QLabel</extends>
<header>ksqueezedtextlabel.h</header>
</customwidget>
</customwidgets> </customwidgets>
<resources/> <resources/>
<connections/> <connections/>