Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit fd9b32b

Browse files
committed
Allow profile description customization
When opening the profile editor, the description field is populated but is marked ReadOnly for some reason; all the back-end code existed to make this read-write (except in the case when the profile lacks a description, see the comment in TailoringWindow::setProfileDescription and TailoringWindow::setProfileTitle). This makes the field read-write. Note that the behavior is less than ideal: <xccdf:description /> can include HTML content, and while this is a HTML-aware editor, hitting the return key inserts merely a '\n' into the text stream and not a <br /> (or better, <xhtml:br /> with XML-NS awareness) element. Perhaps this behavior should be corrected at the openscap library level, detecting the HTML XML namespace applied on the <xccdf:description /> element and namespacing the input correctly? Signed-off-by: Alexander Scheel <[email protected]>
1 parent 4ae682c commit fd9b32b

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

ui/ProfilePropertiesDockWidget.ui

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,16 @@
2121
</property>
2222
<widget class="QWidget" name="dockWidgetContents">
2323
<layout class="QVBoxLayout" name="verticalLayout">
24-
<property name="margin">
24+
<property name="leftMargin">
25+
<number>0</number>
26+
</property>
27+
<property name="topMargin">
28+
<number>0</number>
29+
</property>
30+
<property name="rightMargin">
31+
<number>0</number>
32+
</property>
33+
<property name="bottomMargin">
2534
<number>0</number>
2635
</property>
2736
<item>
@@ -34,8 +43,8 @@
3443
<rect>
3544
<x>0</x>
3645
<y>0</y>
37-
<width>388</width>
38-
<height>304</height>
46+
<width>398</width>
47+
<height>314</height>
3948
</rect>
4049
</property>
4150
<layout class="QGridLayout" name="gridLayout">
@@ -57,7 +66,7 @@
5766
<bool>false</bool>
5867
</property>
5968
<property name="readOnly">
60-
<bool>true</bool>
69+
<bool>false</bool>
6170
</property>
6271
</widget>
6372
</item>

0 commit comments

Comments
 (0)