Changeset 8d0b586919cd…
Parent b1873724b6e1…
by
Changes to one file · Browse files at 8d0b586919cd Showing diff from parent b1873724b6e1 Diff from another changeset...
@@ -600,6 +600,11 @@ if style is not None:
self.csstyle = style
+ if 'selectable' in self.csstyle:
+ sel = self.csstyle['selectable']
+ val = sel and Qt.TextSelectableByMouse or Qt.TextBrowserInteraction
+ self.setTextInteractionFlags(val)
+
if 'width' in self.csstyle:
width = self.csstyle.get('width', 0)
self.setMinimumWidth(width)
@@ -609,7 +614,6 @@ self.setMinimumHeight(height)
contents = self.csstyle.get('contents', None)
- assert contents
# build info
info = ''
|
Loading...