forked from qt-creator/qt-creator
Add some tooltips explaining how to use filters, documentation page.
This commit is contained in:
@@ -10,6 +10,15 @@
|
||||
<height>300</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string><!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></string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<widget class="QGroupBox" name="groupBox">
|
||||
@@ -22,6 +31,9 @@
|
||||
<property name="selectionMode">
|
||||
<enum>QAbstractItemView::ContiguousSelection</enum>
|
||||
</property>
|
||||
<property name="uniformItemSizes">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
|
||||
@@ -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)),
|
||||
|
||||
@@ -10,6 +10,21 @@
|
||||
<height>300</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string><!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></string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="mainHorizontalLayout">
|
||||
@@ -20,7 +35,11 @@
|
||||
</property>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QListWidget" name="filterWidget"/>
|
||||
<widget class="QListWidget" name="filterWidget">
|
||||
<property name="uniformItemSizes">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
@@ -42,6 +61,12 @@
|
||||
<property name="uniformRowHeights">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<attribute name="headerVisible">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<attribute name="headerVisible">
|
||||
<bool>false</bool>
|
||||
</attribute>
|
||||
<column>
|
||||
<property name="text">
|
||||
<string>1</string>
|
||||
@@ -55,7 +80,7 @@
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="buttonHorizontalLayout">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QPushButton" name="filterAddButton">
|
||||
<property name="text">
|
||||
|
||||
Reference in New Issue
Block a user