diff --git a/src/plugins/help/docsettingspage.ui b/src/plugins/help/docsettingspage.ui index 7f7905d8fb3..03b5963b16d 100644 --- a/src/plugins/help/docsettingspage.ui +++ b/src/plugins/help/docsettingspage.ui @@ -10,6 +10,15 @@ 300 + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Arial,Geneva,Helvetica,sans-serif'; font-size:8pt;">The Documentation</span><span style=" font-family:'Arial,Geneva,Helvetica,sans-serif'; font-size:8pt; font-weight:600;"> </span><span style=" font-family:'Arial,Geneva,Helvetica,sans-serif'; font-size:8pt;">page lets you install and remove compressed help files.</span></p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Arial,Geneva,Helvetica,sans-serif'; font-size:8pt;"></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Arial,Geneva,Helvetica,sans-serif'; font-size:8pt;">Click the </span><span style=" font-family:'Arial,Geneva,Helvetica,sans-serif'; font-size:8pt; font-weight:600;">Install</span><span style=" font-family:'Arial,Geneva,Helvetica,sans-serif'; font-size:8pt;"> button and choose the path of the compressed help file (*.qch) you would like to install. To delete a help file, select a documentation set in the list and click </span><span style=" font-family:'Arial,Geneva,Helvetica,sans-serif'; font-size:8pt; font-weight:600;">Remove</span><span style=" font-family:'Arial,Geneva,Helvetica,sans-serif'; font-size:8pt;">.</span></p></body></html> + @@ -22,6 +31,9 @@ QAbstractItemView::ContiguousSelection + + true + diff --git a/src/plugins/help/filtersettingspage.cpp b/src/plugins/help/filtersettingspage.cpp index 9fdf9746404..c313e195928 100644 --- a/src/plugins/help/filtersettingspage.cpp +++ b/src/plugins/help/filtersettingspage.cpp @@ -71,9 +71,6 @@ QWidget *FilterSettingsPage::createPage(QWidget *parent) QWidget *widget = new QWidget(parent); m_ui.setupUi(widget); - m_ui.attributeWidget->header()->hide(); - m_ui.attributeWidget->setRootIsDecorated(false); - updateFilterPage(); // does call setupData on the engine connect(m_ui.attributeWidget, SIGNAL(itemChanged(QTreeWidgetItem*, int)), diff --git a/src/plugins/help/filtersettingspage.ui b/src/plugins/help/filtersettingspage.ui index f22c690b51d..76cae9b91e1 100644 --- a/src/plugins/help/filtersettingspage.ui +++ b/src/plugins/help/filtersettingspage.ui @@ -10,6 +10,21 @@ 300 + + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<html><head><meta name="qrichtext" content="1" /><style type="text/css"> +p, li { white-space: pre-wrap; } +</style></head><body style=" font-family:'MS Shell Dlg 2'; font-size:8.25pt; font-weight:400; font-style:normal;"> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Arial,Geneva,Helvetica,sans-serif';">The </span><span style=" font-family:'Arial,Geneva,Helvetica,sans-serif';">Filters</span><span style=" font-family:'Arial,Geneva,Helvetica,sans-serif';"> page lets you create and remove documentation filters.</span></p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'Arial,Geneva,Helvetica,sans-serif';"></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Arial,Geneva,Helvetica,sans-serif';">To add a new filter, click the </span><span style=" font-family:'Arial,Geneva,Helvetica,sans-serif'; font-weight:600;">Add</span><span style=" font-family:'Arial,Geneva,Helvetica,sans-serif';"> button, specify a filter name in the pop-up dialog and click </span><span style=" font-family:'Arial,Geneva,Helvetica,sans-serif'; font-weight:600;">OK</span><span style=" font-family:'Arial,Geneva,Helvetica,sans-serif';">, then select the filter attributes in the list box on the right hand side. You can delete a filter by selecting it and clicking the </span><span style=" font-family:'Arial,Geneva,Helvetica,sans-serif'; font-weight:600;">Remove</span><span style=" font-family:'Arial,Geneva,Helvetica,sans-serif';"> button.</span></p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">A filter is identified by its name and contains a list of filter attributes. An attribute is just a string that can be freely chosen. Attributes are defined by the documentation itself, this means that every documentation set usually has one or more attributes.</span></p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">For example, the Qt 4.7.0 Linguist documentation defines the attributes '</span><span style=" font-size:8pt; font-weight:600;">qt</span><span style=" font-size:8pt;">', '</span><span style=" font-size:8pt; font-weight:600;">tools</span><span style=" font-size:8pt;">' and '</span><span style=" font-size:8pt; font-weight:600;">4.7.0'</span><span style=" font-size:8pt;">, Qt Designer defines </span><span style=" font-size:8pt; font-weight:600;">'designer</span><span style=" font-size:8pt;">', '</span><span style=" font-size:8pt; font-weight:600;">tools</span><span style=" font-size:8pt;">' and '</span><span style=" font-size:8pt; font-weight:600;">4.7.0</span><span style=" font-size:8pt;">'. The filter to display all tools would then define only the attribute '</span><span style=" font-size:8pt; font-weight:600;">tools'</span><span style=" font-size:8pt;"> since this attribute is part of both documentation sets. </span></p> +<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;"></p> +<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:8pt;">Adding the attribute '</span><span style=" font-size:8pt; font-weight:600;">qmake'</span><span style=" font-size:8pt;"> to the filter would then only show qmake documentation, since the Qt Designer documentation does not contain this attribute. Having an empty list of attributes in a filter will match all documentation; i.e., it is equivalent to requesting unfiltered documentation.</span></p></body></html> + @@ -20,7 +35,11 @@ - + + + true + + @@ -42,6 +61,12 @@ true + + false + + + false + 1 @@ -55,7 +80,7 @@ - +