--- a/eric7/Documentation/Source/eric7.EricWidgets.EricIconBar.html Thu Sep 09 19:04:53 2021 +0200 +++ b/eric7/Documentation/Source/eric7.EricWidgets.EricIconBar.html Thu Sep 09 19:22:12 2021 +0200 @@ -71,7 +71,7 @@ <h3>Class Attributes</h3> <table> -<tr><td>BorderSize</td></tr><tr><td>IconSize</td></tr><tr><td>LabelStyleSheetTemplate</td></tr><tr><td>WidgetStyleSheetTemplate</td></tr> +<tr><td>BarSizes</td></tr><tr><td>DefaultBarSize</td></tr><tr><td>LabelStyleSheetTemplate</td></tr><tr><td>WidgetStyleSheetTemplate</td></tr> </table> <h3>Class Methods</h3> @@ -99,6 +99,10 @@ <td>Public method to add an icon to the bar.</td> </tr> <tr> +<td><a href="#EricIconBar.barSize">barSize</a></td> +<td>Public method to get the icon bar size.</td> +</tr> +<tr> <td><a href="#EricIconBar.color">color</a></td> <td>Public method to return the current color.</td> </tr> @@ -131,6 +135,10 @@ <td>Public method to remove an icon from the bar.</td> </tr> <tr> +<td><a href="#EricIconBar.setBarSize">setBarSize</a></td> +<td>Public method to set the icon bar size.</td> +</tr> +<tr> <td><a href="#EricIconBar.setColor">setColor</a></td> <td>Public method to set the color of the widget.</td> </tr> @@ -155,7 +163,7 @@ <a NAME="EricIconBar.__init__" ID="EricIconBar.__init__"></a> <h4>EricIconBar (Constructor)</h4> -<b>EricIconBar</b>(<i>orientation=Qt.Orientation.Horizontal, parent=None</i>) +<b>EricIconBar</b>(<i>orientation=Qt.Orientation.Horizontal, barSize=DefaultBarSize, parent=None</i>) <p> Constructor @@ -166,6 +174,11 @@ <dd> orientation for the widget </dd> +<dt><i>barSize</i> (str)</dt> +<dd> +size category for the bar (one of 'xs', 'sm', 'md', + 'lg', 'xl', 'xxl') +</dd> <dt><i>parent</i> (QWidget (optional))</dt> <dd> reference to the parent widget (defaults to None) @@ -173,14 +186,14 @@ </dl> <a NAME="EricIconBar.__createIcon" ID="EricIconBar.__createIcon"></a> <h4>EricIconBar.__createIcon</h4> -<b>__createIcon</b>(<i>iconPixmap, label=""</i>) +<b>__createIcon</b>(<i>icon, label=""</i>) <p> Private method to creat an icon label. </p> <dl> -<dt><i>iconPixmap</i> (QPixmap)</dt> +<dt><i>icon</i> (QIcon)</dt> <dd> reference to the icon </dd> @@ -217,14 +230,14 @@ </dl> <a NAME="EricIconBar.addIcon" ID="EricIconBar.addIcon"></a> <h4>EricIconBar.addIcon</h4> -<b>addIcon</b>(<i>iconPixmap, label=""</i>) +<b>addIcon</b>(<i>icon, label=""</i>) <p> Public method to add an icon to the bar. </p> <dl> -<dt><i>iconPixmap</i> (QPixmap)</dt> +<dt><i>icon</i> (QIcon)</dt> <dd> reference to the icon </dd> @@ -233,6 +246,26 @@ label text to be shown as a tooltip (defaults to "") </dd> </dl> +<a NAME="EricIconBar.barSize" ID="EricIconBar.barSize"></a> +<h4>EricIconBar.barSize</h4> +<b>barSize</b>(<i></i>) + +<p> + Public method to get the icon bar size. +</p> +<dl> +<dt>Return:</dt> +<dd> +barSize size category for the bar (one of 'xs', 'sm', 'md', + 'lg', 'xl', 'xxl') +</dd> +</dl> +<dl> +<dt>Return Type:</dt> +<dd> +str +</dd> +</dl> <a NAME="EricIconBar.color" ID="EricIconBar.color"></a> <h4>EricIconBar.color</h4> <b>color</b>(<i></i>) @@ -292,7 +325,7 @@ </dl> <a NAME="EricIconBar.insertIcon" ID="EricIconBar.insertIcon"></a> <h4>EricIconBar.insertIcon</h4> -<b>insertIcon</b>(<i>index, iconPixmap, label=""</i>) +<b>insertIcon</b>(<i>index, icon, label=""</i>) <p> Public method to insert an icon into the bar. @@ -303,7 +336,7 @@ <dd> position to insert the icon at </dd> -<dt><i>iconPixmap</i> (QPixmap)</dt> +<dt><i>icon</i> (QIcon)</dt> <dd> reference to the icon </dd> @@ -359,6 +392,21 @@ index of the icon to be removed </dd> </dl> +<a NAME="EricIconBar.setBarSize" ID="EricIconBar.setBarSize"></a> +<h4>EricIconBar.setBarSize</h4> +<b>setBarSize</b>(<i>barSize</i>) + +<p> + Public method to set the icon bar size. +</p> +<dl> + +<dt><i>barSize</i> (str)</dt> +<dd> +size category for the bar (one of 'xs', 'sm', 'md', + 'lg', 'xl', 'xxl') +</dd> +</dl> <a NAME="EricIconBar.setColor" ID="EricIconBar.setColor"></a> <h4>EricIconBar.setColor</h4> <b>setColor</b>(<i>color</i>)