~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to doc/html/qtoolbar.html

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<!DOCTYPE html
3
3
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
 
<!-- /fasttmp/mkdist-qt-4.5.2-1245473805/qt-x11-opensource-src-4.5.2/src/gui/widgets/qtoolbar.cpp -->
 
5
<!-- qtoolbar.cpp -->
6
6
<head>
7
 
  <title>Qt 4.5: QToolBar Class Reference</title>
 
7
  <title>Qt 4.6: QToolBar Class Reference</title>
8
8
  <link href="classic.css" rel="stylesheet" type="text/css" />
9
9
</head>
10
10
<body>
 
11
<a name="//apple_ref/cpp/cl//QToolBar" />
11
12
<table border="0" cellpadding="0" cellspacing="0" width="100%">
12
13
<tr>
13
 
<td align="left" valign="top" width="32"><a href="http://qtsoftware.com/products/qt"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
14
 
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="namespaces.html"><font color="#004faf">All&nbsp;Namespaces</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="modules.html"><font color="#004faf">Modules</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
15
 
<td align="right" valign="top" width="230"></td></tr></table><h1 class="title">QToolBar Class Reference<br /><span class="small-subtitle">[<a href="qtgui.html">QtGui</a> module]</span>
 
14
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
 
15
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td><td class="searchBar" align="right" valign="center"><form action="http://www.google.com/cse" id="cse-search-box"><div><input type="hidden" name="cx" value="000136343326384750312:dhbxnqlakyu" /><input type="hidden" name="ie" value="UTF-8" /><input type="text" name="q" size="31" /><input type="submit" name="sa" value="Search" /></div></form></td>
 
16
</tr></table><h1 class="title">QToolBar Class Reference<br /><span class="small-subtitle">[<a href="qtgui.html">QtGui</a> module]</span>
16
17
</h1>
17
18
<p>The QToolBar class provides a movable panel that contains a set of controls. <a href="#details">More...</a></p>
18
19
<pre> #include &lt;QToolBar&gt;</pre><p>Inherits <a href="qwidget.html">QWidget</a>.</p>
20
21
<li><a href="qtoolbar-members.html">List of all members, including inherited members</a></li>
21
22
<li><a href="qtoolbar-qt3.html">Qt 3 support members</a></li>
22
23
</ul>
 
24
<hr />
23
25
<a name="properties"></a>
24
 
<h3>Properties</h3>
25
 
<p><table width="100%" border="0" cellpadding="0" cellspacing="0">
 
26
<h2>Properties</h2>
 
27
<p><table class="propsummary" width="100%" border="0" cellpadding="0" cellspacing="0">
26
28
<tr><td width="45%" valign="top"><ul>
27
 
<li><div class="fn"></div><b><a href="qtoolbar.html#allowedAreas-prop">allowedAreas</a></b> : Qt::ToolBarAreas</li>
28
 
<li><div class="fn"></div><b><a href="qtoolbar.html#floatable-prop">floatable</a></b> : bool</li>
29
 
<li><div class="fn"></div><b><a href="qtoolbar.html#floating-prop">floating</a></b> : const bool</li>
30
 
<li><div class="fn"></div><b><a href="qtoolbar.html#iconSize-prop">iconSize</a></b> : QSize</li>
 
29
<li><div class="fn"><b><a href="qtoolbar.html#allowedAreas-prop">allowedAreas</a></b> : Qt::ToolBarAreas</div></li>
 
30
<li><div class="fn"><b><a href="qtoolbar.html#floatable-prop">floatable</a></b> : bool</div></li>
 
31
<li><div class="fn"><b><a href="qtoolbar.html#floating-prop">floating</a></b> : const bool</div></li>
 
32
<li><div class="fn"><b><a href="qtoolbar.html#iconSize-prop">iconSize</a></b> : QSize</div></li>
31
33
</ul></td><td valign="top"><ul>
32
 
<li><div class="fn"></div><b><a href="qtoolbar.html#movable-prop">movable</a></b> : bool</li>
33
 
<li><div class="fn"></div><b><a href="qtoolbar.html#orientation-prop">orientation</a></b> : Qt::Orientation</li>
34
 
<li><div class="fn"></div><b><a href="qtoolbar.html#toolButtonStyle-prop">toolButtonStyle</a></b> : Qt::ToolButtonStyle</li>
 
34
<li><div class="fn"><b><a href="qtoolbar.html#movable-prop">movable</a></b> : bool</div></li>
 
35
<li><div class="fn"><b><a href="qtoolbar.html#orientation-prop">orientation</a></b> : Qt::Orientation</div></li>
 
36
<li><div class="fn"><b><a href="qtoolbar.html#toolButtonStyle-prop">toolButtonStyle</a></b> : Qt::ToolButtonStyle</div></li>
35
37
</ul>
36
38
</td></tr>
37
39
</table></p>
38
40
<ul>
39
 
<li><div class="fn"></div>57 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
40
 
<li><div class="fn"></div>1 property inherited from <a href="qobject.html#properties">QObject</a></li>
 
41
<li><div bar="2" class="fn"></div>58 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
 
42
<li><div bar="2" class="fn"></div>1 property inherited from <a href="qobject.html#properties">QObject</a></li>
41
43
</ul>
 
44
<hr />
42
45
<a name="public-functions"></a>
43
 
<h3>Public Functions</h3>
44
 
<ul>
45
 
<li><div class="fn"></div><b><a href="qtoolbar.html#QToolBar">QToolBar</a></b> ( const QString &amp; <i>title</i>, QWidget * <i>parent</i> = 0 )</li>
46
 
<li><div class="fn"></div><b><a href="qtoolbar.html#QToolBar-2">QToolBar</a></b> ( QWidget * <i>parent</i> = 0 )</li>
47
 
<li><div class="fn"></div><b><a href="qtoolbar.html#dtor.QToolBar">~QToolBar</a></b> ()</li>
48
 
<li><div class="fn"></div>QAction * <b><a href="qtoolbar.html#actionAt">actionAt</a></b> ( const QPoint &amp; <i>p</i> ) const</li>
49
 
<li><div class="fn"></div>QAction * <b><a href="qtoolbar.html#actionAt-2">actionAt</a></b> ( int <i>x</i>, int <i>y</i> ) const</li>
50
 
<li><div class="fn"></div>void <b><a href="qtoolbar.html#addAction">addAction</a></b> ( QAction * <i>action</i> )</li>
51
 
<li><div class="fn"></div>QAction * <b><a href="qtoolbar.html#addAction-2">addAction</a></b> ( const QString &amp; <i>text</i> )</li>
52
 
<li><div class="fn"></div>QAction * <b><a href="qtoolbar.html#addAction-3">addAction</a></b> ( const QIcon &amp; <i>icon</i>, const QString &amp; <i>text</i> )</li>
53
 
<li><div class="fn"></div>QAction * <b><a href="qtoolbar.html#addAction-4">addAction</a></b> ( const QString &amp; <i>text</i>, const QObject * <i>receiver</i>, const char * <i>member</i> )</li>
54
 
<li><div class="fn"></div>QAction * <b><a href="qtoolbar.html#addAction-5">addAction</a></b> ( const QIcon &amp; <i>icon</i>, const QString &amp; <i>text</i>, const QObject * <i>receiver</i>, const char * <i>member</i> )</li>
55
 
<li><div class="fn"></div>QAction * <b><a href="qtoolbar.html#addSeparator">addSeparator</a></b> ()</li>
56
 
<li><div class="fn"></div>QAction * <b><a href="qtoolbar.html#addWidget">addWidget</a></b> ( QWidget * <i>widget</i> )</li>
57
 
<li><div class="fn"></div>Qt::ToolBarAreas <b><a href="qtoolbar.html#allowedAreas-prop">allowedAreas</a></b> () const</li>
58
 
<li><div class="fn"></div>void <b><a href="qtoolbar.html#clear">clear</a></b> ()</li>
59
 
<li><div class="fn"></div>QSize <b><a href="qtoolbar.html#iconSize-prop">iconSize</a></b> () const</li>
60
 
<li><div class="fn"></div>QAction * <b><a href="qtoolbar.html#insertSeparator">insertSeparator</a></b> ( QAction * <i>before</i> )</li>
61
 
<li><div class="fn"></div>QAction * <b><a href="qtoolbar.html#insertWidget">insertWidget</a></b> ( QAction * <i>before</i>, QWidget * <i>widget</i> )</li>
62
 
<li><div class="fn"></div>bool <b><a href="qtoolbar.html#isAreaAllowed">isAreaAllowed</a></b> ( Qt::ToolBarArea <i>area</i> ) const</li>
63
 
<li><div class="fn"></div>bool <b><a href="qtoolbar.html#floatable-prop">isFloatable</a></b> () const</li>
64
 
<li><div class="fn"></div>bool <b><a href="qtoolbar.html#floating-prop">isFloating</a></b> () const</li>
65
 
<li><div class="fn"></div>bool <b><a href="qtoolbar.html#movable-prop">isMovable</a></b> () const</li>
66
 
<li><div class="fn"></div>Qt::Orientation <b><a href="qtoolbar.html#orientation-prop">orientation</a></b> () const</li>
67
 
<li><div class="fn"></div>void <b><a href="qtoolbar.html#allowedAreas-prop">setAllowedAreas</a></b> ( Qt::ToolBarAreas <i>areas</i> )</li>
68
 
<li><div class="fn"></div>void <b><a href="qtoolbar.html#floatable-prop">setFloatable</a></b> ( bool <i>floatable</i> )</li>
69
 
<li><div class="fn"></div>void <b><a href="qtoolbar.html#movable-prop">setMovable</a></b> ( bool <i>movable</i> )</li>
70
 
<li><div class="fn"></div>void <b><a href="qtoolbar.html#orientation-prop">setOrientation</a></b> ( Qt::Orientation <i>orientation</i> )</li>
71
 
<li><div class="fn"></div>QAction * <b><a href="qtoolbar.html#toggleViewAction">toggleViewAction</a></b> () const</li>
72
 
<li><div class="fn"></div>Qt::ToolButtonStyle <b><a href="qtoolbar.html#toolButtonStyle-prop">toolButtonStyle</a></b> () const</li>
73
 
<li><div class="fn"></div>QWidget * <b><a href="qtoolbar.html#widgetForAction">widgetForAction</a></b> ( QAction * <i>action</i> ) const</li>
74
 
</ul>
75
 
<ul>
76
 
<li><div class="fn"></div>207 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
77
 
<li><div class="fn"></div>29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
78
 
<li><div class="fn"></div>12 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
79
 
</ul>
 
46
<h2>Public Functions</h2>
 
47
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
48
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#QToolBar">QToolBar</a></b> ( const QString &amp; <i>title</i>, QWidget * <i>parent</i> = 0 )</td></tr>
 
49
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#QToolBar-2">QToolBar</a></b> ( QWidget * <i>parent</i> = 0 )</td></tr>
 
50
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#dtor.QToolBar">~QToolBar</a></b> ()</td></tr>
 
51
<tr><td class="memItemLeft" align="right" valign="top">QAction * </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#actionAt">actionAt</a></b> ( const QPoint &amp; <i>p</i> ) const</td></tr>
 
52
<tr><td class="memItemLeft" align="right" valign="top">QAction * </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#actionAt-2">actionAt</a></b> ( int <i>x</i>, int <i>y</i> ) const</td></tr>
 
53
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#addAction">addAction</a></b> ( QAction * <i>action</i> )</td></tr>
 
54
<tr><td class="memItemLeft" align="right" valign="top">QAction * </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#addAction-2">addAction</a></b> ( const QString &amp; <i>text</i> )</td></tr>
 
55
<tr><td class="memItemLeft" align="right" valign="top">QAction * </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#addAction-3">addAction</a></b> ( const QIcon &amp; <i>icon</i>, const QString &amp; <i>text</i> )</td></tr>
 
56
<tr><td class="memItemLeft" align="right" valign="top">QAction * </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#addAction-4">addAction</a></b> ( const QString &amp; <i>text</i>, const QObject * <i>receiver</i>, const char * <i>member</i> )</td></tr>
 
57
<tr><td class="memItemLeft" align="right" valign="top">QAction * </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#addAction-5">addAction</a></b> ( const QIcon &amp; <i>icon</i>, const QString &amp; <i>text</i>, const QObject * <i>receiver</i>, const char * <i>member</i> )</td></tr>
 
58
<tr><td class="memItemLeft" align="right" valign="top">QAction * </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#addSeparator">addSeparator</a></b> ()</td></tr>
 
59
<tr><td class="memItemLeft" align="right" valign="top">QAction * </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#addWidget">addWidget</a></b> ( QWidget * <i>widget</i> )</td></tr>
 
60
<tr><td class="memItemLeft" align="right" valign="top">Qt::ToolBarAreas </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#allowedAreas-prop">allowedAreas</a></b> () const</td></tr>
 
61
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#clear">clear</a></b> ()</td></tr>
 
62
<tr><td class="memItemLeft" align="right" valign="top">QSize </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#iconSize-prop">iconSize</a></b> () const</td></tr>
 
63
<tr><td class="memItemLeft" align="right" valign="top">QAction * </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#insertSeparator">insertSeparator</a></b> ( QAction * <i>before</i> )</td></tr>
 
64
<tr><td class="memItemLeft" align="right" valign="top">QAction * </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#insertWidget">insertWidget</a></b> ( QAction * <i>before</i>, QWidget * <i>widget</i> )</td></tr>
 
65
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#isAreaAllowed">isAreaAllowed</a></b> ( Qt::ToolBarArea <i>area</i> ) const</td></tr>
 
66
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#floatable-prop">isFloatable</a></b> () const</td></tr>
 
67
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#floating-prop">isFloating</a></b> () const</td></tr>
 
68
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#movable-prop">isMovable</a></b> () const</td></tr>
 
69
<tr><td class="memItemLeft" align="right" valign="top">Qt::Orientation </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#orientation-prop">orientation</a></b> () const</td></tr>
 
70
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#allowedAreas-prop">setAllowedAreas</a></b> ( Qt::ToolBarAreas <i>areas</i> )</td></tr>
 
71
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#floatable-prop">setFloatable</a></b> ( bool <i>floatable</i> )</td></tr>
 
72
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#movable-prop">setMovable</a></b> ( bool <i>movable</i> )</td></tr>
 
73
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#orientation-prop">setOrientation</a></b> ( Qt::Orientation <i>orientation</i> )</td></tr>
 
74
<tr><td class="memItemLeft" align="right" valign="top">QAction * </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#toggleViewAction">toggleViewAction</a></b> () const</td></tr>
 
75
<tr><td class="memItemLeft" align="right" valign="top">Qt::ToolButtonStyle </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#toolButtonStyle-prop">toolButtonStyle</a></b> () const</td></tr>
 
76
<tr><td class="memItemLeft" align="right" valign="top">QWidget * </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#widgetForAction">widgetForAction</a></b> ( QAction * <i>action</i> ) const</td></tr>
 
77
</table>
 
78
<ul>
 
79
<li><div bar="2" class="fn"></div>215 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
 
80
<li><div bar="2" class="fn"></div>29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
 
81
<li><div bar="2" class="fn"></div>12 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
 
82
</ul>
 
83
<hr />
80
84
<a name="public-slots"></a>
81
 
<h3>Public Slots</h3>
82
 
<ul>
83
 
<li><div class="fn"></div>void <b><a href="qtoolbar.html#iconSize-prop">setIconSize</a></b> ( const QSize &amp; <i>iconSize</i> )</li>
84
 
<li><div class="fn"></div>void <b><a href="qtoolbar.html#toolButtonStyle-prop">setToolButtonStyle</a></b> ( Qt::ToolButtonStyle <i>toolButtonStyle</i> )</li>
85
 
</ul>
86
 
<ul>
87
 
<li><div class="fn"></div>19 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
88
 
<li><div class="fn"></div>1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
89
 
</ul>
 
85
<h2>Public Slots</h2>
 
86
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
87
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#iconSize-prop">setIconSize</a></b> ( const QSize &amp; <i>iconSize</i> )</td></tr>
 
88
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#toolButtonStyle-prop">setToolButtonStyle</a></b> ( Qt::ToolButtonStyle <i>toolButtonStyle</i> )</td></tr>
 
89
</table>
 
90
<ul>
 
91
<li><div bar="2" class="fn"></div>19 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
 
92
<li><div bar="2" class="fn"></div>1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
 
93
</ul>
 
94
<hr />
90
95
<a name="signals"></a>
91
 
<h3>Signals</h3>
 
96
<h2>Signals</h2>
 
97
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
98
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#actionTriggered">actionTriggered</a></b> ( QAction * <i>action</i> )</td></tr>
 
99
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#allowedAreasChanged">allowedAreasChanged</a></b> ( Qt::ToolBarAreas <i>allowedAreas</i> )</td></tr>
 
100
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#iconSizeChanged">iconSizeChanged</a></b> ( const QSize &amp; <i>iconSize</i> )</td></tr>
 
101
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#movableChanged">movableChanged</a></b> ( bool <i>movable</i> )</td></tr>
 
102
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#orientationChanged">orientationChanged</a></b> ( Qt::Orientation <i>orientation</i> )</td></tr>
 
103
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#toolButtonStyleChanged">toolButtonStyleChanged</a></b> ( Qt::ToolButtonStyle <i>toolButtonStyle</i> )</td></tr>
 
104
</table>
92
105
<ul>
93
 
<li><div class="fn"></div>void <b><a href="qtoolbar.html#actionTriggered">actionTriggered</a></b> ( QAction * <i>action</i> )</li>
94
 
<li><div class="fn"></div>void <b><a href="qtoolbar.html#allowedAreasChanged">allowedAreasChanged</a></b> ( Qt::ToolBarAreas <i>allowedAreas</i> )</li>
95
 
<li><div class="fn"></div>void <b><a href="qtoolbar.html#iconSizeChanged">iconSizeChanged</a></b> ( const QSize &amp; <i>iconSize</i> )</li>
96
 
<li><div class="fn"></div>void <b><a href="qtoolbar.html#movableChanged">movableChanged</a></b> ( bool <i>movable</i> )</li>
97
 
<li><div class="fn"></div>void <b><a href="qtoolbar.html#orientationChanged">orientationChanged</a></b> ( Qt::Orientation <i>orientation</i> )</li>
98
 
<li><div class="fn"></div>void <b><a href="qtoolbar.html#toolButtonStyleChanged">toolButtonStyleChanged</a></b> ( Qt::ToolButtonStyle <i>toolButtonStyle</i> )</li>
 
106
<li><div bar="2" class="fn"></div>1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li>
 
107
<li><div bar="2" class="fn"></div>1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
99
108
</ul>
 
109
<hr />
 
110
<a name="reimplemented-protected-functions"></a>
 
111
<h2>Reimplemented Protected Functions</h2>
 
112
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
113
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#actionEvent">actionEvent</a></b> ( QActionEvent * <i>event</i> )</td></tr>
 
114
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#changeEvent">changeEvent</a></b> ( QEvent * <i>event</i> )</td></tr>
 
115
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#childEvent">childEvent</a></b> ( QChildEvent * <i>event</i> )</td></tr>
 
116
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#event">event</a></b> ( QEvent * <i>event</i> )</td></tr>
 
117
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#paintEvent">paintEvent</a></b> ( QPaintEvent * <i>event</i> )</td></tr>
 
118
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#resizeEvent">resizeEvent</a></b> ( QResizeEvent * <i>event</i> )</td></tr>
 
119
</table>
100
120
<ul>
101
 
<li><div class="fn"></div>1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li>
102
 
<li><div class="fn"></div>1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
 
121
<li><div bar="2" class="fn"></div>37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
 
122
<li><div bar="2" class="fn"></div>7 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
 
123
<li><div bar="2" class="fn"></div>1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
103
124
</ul>
104
125
<h3>Additional Inherited Members</h3>
105
126
<ul>
121
142
<p>See also <a href="qtoolbutton.html">QToolButton</a>, <a href="qmenu.html">QMenu</a>, <a href="qaction.html">QAction</a>, and <a href="mainwindows-application.html">Application Example</a>.</p>
122
143
<hr />
123
144
<h2>Property Documentation</h2>
 
145
<a name="//apple_ref/cpp/instm/QToolBar/allowedAreas" />
 
146
<a name="//apple_ref/cpp/instm/QToolBar/setAllowedAreas" />
 
147
<a name="//apple_ref/cpp/instm/QToolBar/allowedAreasChanged" />
124
148
<h3 class="fn"><a name="allowedAreas-prop"></a>allowedAreas : <a href="qt.html#ToolBarArea-enum">Qt::ToolBarAreas</a></h3>
125
149
<p>This property holds areas where the toolbar may be placed.</p>
126
150
<p>The default is <a href="qt.html#ToolBarArea-enum">Qt::AllToolBarAreas</a>.</p>
127
151
<p>This property only makes sense if the toolbar is in a <a href="qmainwindow.html">QMainWindow</a>.</p>
128
 
<p>Access functions:</p>
129
 
<ul>
130
 
<li><div class="fn"></div><b>Qt::ToolBarAreas allowedAreas () const</b></li>
131
 
<li><div class="fn"></div><b>void setAllowedAreas ( Qt::ToolBarAreas <i>areas</i> )</b></li>
132
 
</ul>
 
152
<p><b>Access functions:</b></p>
 
153
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
154
<tr><td class="memItemLeft" align="right" valign="top">Qt::ToolBarAreas </td><td class="memItemRight" valign="bottom"><b>allowedAreas</b> () const</td></tr>
 
155
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setAllowedAreas</b> ( Qt::ToolBarAreas <i>areas</i> )</td></tr>
 
156
</table>
 
157
<p><b>Notifier signal:</b></p>
 
158
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
159
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#allowedAreasChanged">allowedAreasChanged</a></b> ( Qt::ToolBarAreas <i>allowedAreas</i> )</td></tr>
 
160
</table>
133
161
<p>See also <a href="qtoolbar.html#movable-prop">movable</a>.</p>
 
162
<a name="//apple_ref/cpp/instm/QToolBar/isFloatable" />
 
163
<a name="//apple_ref/cpp/instm/QToolBar/setFloatable" />
134
164
<h3 class="fn"><a name="floatable-prop"></a>floatable : bool</h3>
135
165
<p>This property holds whether the toolbar can be dragged and dropped as an independent window.</p>
136
166
<p>The default is true.</p>
137
 
<p>Access functions:</p>
138
 
<ul>
139
 
<li><div class="fn"></div><b>bool isFloatable () const</b></li>
140
 
<li><div class="fn"></div><b>void setFloatable ( bool <i>floatable</i> )</b></li>
141
 
</ul>
 
167
<p><b>Access functions:</b></p>
 
168
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
169
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b>isFloatable</b> () const</td></tr>
 
170
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setFloatable</b> ( bool <i>floatable</i> )</td></tr>
 
171
</table>
 
172
<a name="//apple_ref/cpp/instm/QToolBar/isFloating" />
142
173
<h3 class="fn"><a name="floating-prop"></a>floating : const bool</h3>
143
174
<p>This property holds whether the toolbar is an independent window.</p>
144
175
<p>By default, this property is true.</p>
145
 
<p>Access functions:</p>
146
 
<ul>
147
 
<li><div class="fn"></div><b>bool isFloating () const</b></li>
148
 
</ul>
 
176
<p><b>Access functions:</b></p>
 
177
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
178
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b>isFloating</b> () const</td></tr>
 
179
</table>
149
180
<p>See also <a href="qwidget.html#isWindow">QWidget::isWindow</a>().</p>
 
181
<a name="//apple_ref/cpp/instm/QToolBar/iconSize" />
 
182
<a name="//apple_ref/cpp/instm/QToolBar/setIconSize" />
 
183
<a name="//apple_ref/cpp/instm/QToolBar/iconSizeChanged" />
150
184
<h3 class="fn"><a name="iconSize-prop"></a>iconSize : <a href="qsize.html">QSize</a></h3>
151
185
<p>This property holds size of icons in the toolbar.</p>
152
186
<p>The default size is determined by the application's style and is derived from the <a href="qstyle.html#PixelMetric-enum">QStyle::PM_ToolBarIconSize</a> pixel metric. It is the maximum size an icon can have. Icons of smaller size will not be scaled up.</p>
153
 
<p>Access functions:</p>
154
 
<ul>
155
 
<li><div class="fn"></div><b>QSize iconSize () const</b></li>
156
 
<li><div class="fn"></div><b>void setIconSize ( const QSize &amp; <i>iconSize</i> )</b></li>
157
 
</ul>
 
187
<p><b>Access functions:</b></p>
 
188
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
189
<tr><td class="memItemLeft" align="right" valign="top">QSize </td><td class="memItemRight" valign="bottom"><b>iconSize</b> () const</td></tr>
 
190
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setIconSize</b> ( const QSize &amp; <i>iconSize</i> )</td></tr>
 
191
</table>
 
192
<p><b>Notifier signal:</b></p>
 
193
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
194
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#iconSizeChanged">iconSizeChanged</a></b> ( const QSize &amp; <i>iconSize</i> )</td></tr>
 
195
</table>
 
196
<a name="//apple_ref/cpp/instm/QToolBar/isMovable" />
 
197
<a name="//apple_ref/cpp/instm/QToolBar/setMovable" />
 
198
<a name="//apple_ref/cpp/instm/QToolBar/movableChanged" />
158
199
<h3 class="fn"><a name="movable-prop"></a>movable : bool</h3>
159
200
<p>This property holds whether the user can move the toolbar within the toolbar area, or between toolbar areas.</p>
160
201
<p>By default, this property is true.</p>
161
202
<p>This property only makes sense if the toolbar is in a <a href="qmainwindow.html">QMainWindow</a>.</p>
162
 
<p>Access functions:</p>
163
 
<ul>
164
 
<li><div class="fn"></div><b>bool isMovable () const</b></li>
165
 
<li><div class="fn"></div><b>void setMovable ( bool <i>movable</i> )</b></li>
166
 
</ul>
 
203
<p><b>Access functions:</b></p>
 
204
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
205
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b>isMovable</b> () const</td></tr>
 
206
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setMovable</b> ( bool <i>movable</i> )</td></tr>
 
207
</table>
 
208
<p><b>Notifier signal:</b></p>
 
209
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
210
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#movableChanged">movableChanged</a></b> ( bool <i>movable</i> )</td></tr>
 
211
</table>
167
212
<p>See also <a href="qtoolbar.html#allowedAreas-prop">allowedAreas</a>.</p>
 
213
<a name="//apple_ref/cpp/instm/QToolBar/orientation" />
 
214
<a name="//apple_ref/cpp/instm/QToolBar/setOrientation" />
 
215
<a name="//apple_ref/cpp/instm/QToolBar/orientationChanged" />
168
216
<h3 class="fn"><a name="orientation-prop"></a>orientation : <a href="qt.html#Orientation-enum">Qt::Orientation</a></h3>
169
217
<p>This property holds orientation of the toolbar.</p>
170
218
<p>The default is <a href="qt.html#Orientation-enum">Qt::Horizontal</a>.</p>
171
219
<p>This function should not be used when the toolbar is managed by <a href="qmainwindow.html">QMainWindow</a>. You can use <a href="qmainwindow.html#addToolBar">QMainWindow::addToolBar</a>() or <a href="qmainwindow.html#insertToolBar">QMainWindow::insertToolBar</a>() if you wish to move a toolbar (that is already added to a main window) to another <a href="qt.html#ToolBarArea-enum">Qt::ToolBarArea</a>.</p>
172
 
<p>Access functions:</p>
173
 
<ul>
174
 
<li><div class="fn"></div><b>Qt::Orientation orientation () const</b></li>
175
 
<li><div class="fn"></div><b>void setOrientation ( Qt::Orientation <i>orientation</i> )</b></li>
176
 
</ul>
 
220
<p><b>Access functions:</b></p>
 
221
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
222
<tr><td class="memItemLeft" align="right" valign="top">Qt::Orientation </td><td class="memItemRight" valign="bottom"><b>orientation</b> () const</td></tr>
 
223
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setOrientation</b> ( Qt::Orientation <i>orientation</i> )</td></tr>
 
224
</table>
 
225
<p><b>Notifier signal:</b></p>
 
226
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
227
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#orientationChanged">orientationChanged</a></b> ( Qt::Orientation <i>orientation</i> )</td></tr>
 
228
</table>
 
229
<a name="//apple_ref/cpp/instm/QToolBar/toolButtonStyle" />
 
230
<a name="//apple_ref/cpp/instm/QToolBar/setToolButtonStyle" />
 
231
<a name="//apple_ref/cpp/instm/QToolBar/toolButtonStyleChanged" />
177
232
<h3 class="fn"><a name="toolButtonStyle-prop"></a>toolButtonStyle : <a href="qt.html#ToolButtonStyle-enum">Qt::ToolButtonStyle</a></h3>
178
233
<p>This property holds the style of toolbar buttons.</p>
179
234
<p>This property defines the style of all tool buttons that are added as <a href="qaction.html">QAction</a>s. Note that if you add a <a href="qtoolbutton.html">QToolButton</a> with the <a href="qtoolbar.html#addWidget">addWidget</a>() method, it will not get this button style.</p>
180
235
<p>The default is <a href="qt.html#ToolButtonStyle-enum">Qt::ToolButtonIconOnly</a>.</p>
181
 
<p>Access functions:</p>
182
 
<ul>
183
 
<li><div class="fn"></div><b>Qt::ToolButtonStyle toolButtonStyle () const</b></li>
184
 
<li><div class="fn"></div><b>void setToolButtonStyle ( Qt::ToolButtonStyle <i>toolButtonStyle</i> )</b></li>
185
 
</ul>
 
236
<p><b>Access functions:</b></p>
 
237
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
238
<tr><td class="memItemLeft" align="right" valign="top">Qt::ToolButtonStyle </td><td class="memItemRight" valign="bottom"><b>toolButtonStyle</b> () const</td></tr>
 
239
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b>setToolButtonStyle</b> ( Qt::ToolButtonStyle <i>toolButtonStyle</i> )</td></tr>
 
240
</table>
 
241
<p><b>Notifier signal:</b></p>
 
242
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
 
243
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtoolbar.html#toolButtonStyleChanged">toolButtonStyleChanged</a></b> ( Qt::ToolButtonStyle <i>toolButtonStyle</i> )</td></tr>
 
244
</table>
186
245
<hr />
187
246
<h2>Member Function Documentation</h2>
 
247
<a name="//apple_ref/cpp/instm/QToolBar/QToolBar" />
188
248
<h3 class="fn"><a name="QToolBar"></a>QToolBar::QToolBar ( const <a href="qstring.html">QString</a> &amp; <i>title</i>, <a href="qwidget.html">QWidget</a> * <i>parent</i> = 0 )</h3>
189
249
<p>Constructs a <a href="qtoolbar.html">QToolBar</a> with the given <i>parent</i>.</p>
190
250
<p>The given window <i>title</i> identifies the toolbar and is shown in the context menu provided by <a href="qmainwindow.html">QMainWindow</a>.</p>
191
251
<p>See also <a href="qwidget.html#windowTitle-prop">setWindowTitle</a>().</p>
192
252
<h3 class="fn"><a name="QToolBar-2"></a>QToolBar::QToolBar ( <a href="qwidget.html">QWidget</a> * <i>parent</i> = 0 )</h3>
193
253
<p>Constructs a <a href="qtoolbar.html">QToolBar</a> with the given <i>parent</i>.</p>
 
254
<a name="//apple_ref/cpp/instm/QToolBar/~QToolBar" />
194
255
<h3 class="fn"><a name="dtor.QToolBar"></a>QToolBar::~QToolBar ()</h3>
195
256
<p>Destroys the toolbar.</p>
 
257
<a name="//apple_ref/cpp/instm/QToolBar/actionAt" />
196
258
<h3 class="fn"><a name="actionAt"></a><a href="qaction.html">QAction</a> * QToolBar::actionAt ( const <a href="qpoint.html">QPoint</a> &amp; <i>p</i> ) const</h3>
197
259
<p>Returns the action at point <i>p</i>. This function returns zero if no action was found.</p>
198
260
<p>See also <a href="qwidget.html#childAt">QWidget::childAt</a>().</p>
199
261
<h3 class="fn"><a name="actionAt-2"></a><a href="qaction.html">QAction</a> * QToolBar::actionAt ( int <i>x</i>, int <i>y</i> ) const</h3>
200
262
<p>This is an overloaded function.</p>
201
263
<p>Returns the action at the point <i>x</i>, <i>y</i>. This function returns zero if no action was found.</p>
 
264
<a name="//apple_ref/cpp/instm/QToolBar/actionEvent" />
 
265
<h3 class="fn"><a name="actionEvent"></a>void QToolBar::actionEvent ( <a href="qactionevent.html">QActionEvent</a> * <i>event</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
 
266
<p>Reimplemented from <a href="qwidget.html#actionEvent">QWidget::actionEvent</a>().</p>
 
267
<a name="//apple_ref/cpp/instm/QToolBar/actionTriggered" />
202
268
<h3 class="fn"><a name="actionTriggered"></a>void QToolBar::actionTriggered ( <a href="qaction.html">QAction</a> * <i>action</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
203
269
<p>This signal is emitted when an action in this toolbar is triggered. This happens when the action's tool button is pressed, or when the action is triggered in some other way outside the tool bar. The parameter holds the triggered <i>action</i>.</p>
 
270
<a name="//apple_ref/cpp/instm/QToolBar/addAction" />
204
271
<h3 class="fn"><a name="addAction"></a>void QToolBar::addAction ( <a href="qaction.html">QAction</a> * <i>action</i> )</h3>
205
272
<p>This is an overloaded function.</p>
206
273
<p>Appends the action <i>action</i> to the toolbar's list of actions.</p>
217
284
<h3 class="fn"><a name="addAction-5"></a><a href="qaction.html">QAction</a> * QToolBar::addAction ( const <a href="qicon.html">QIcon</a> &amp; <i>icon</i>, const <a href="qstring.html">QString</a> &amp; <i>text</i>, const <a href="qobject.html">QObject</a> * <i>receiver</i>, const char * <i>member</i> )</h3>
218
285
<p>This is an overloaded function.</p>
219
286
<p>Creates a new action with the icon <i>icon</i> and text <i>text</i>. This action is added to the end of the toolbar. The action's <a href="qaction.html#triggered">triggered()</a> signal is connected to <i>member</i> in <i>receiver</i>.</p>
 
287
<a name="//apple_ref/cpp/instm/QToolBar/addSeparator" />
220
288
<h3 class="fn"><a name="addSeparator"></a><a href="qaction.html">QAction</a> * QToolBar::addSeparator ()</h3>
221
289
<p>Adds a separator to the end of the toolbar.</p>
222
290
<p>See also <a href="qtoolbar.html#insertSeparator">insertSeparator</a>().</p>
 
291
<a name="//apple_ref/cpp/instm/QToolBar/addWidget" />
223
292
<h3 class="fn"><a name="addWidget"></a><a href="qaction.html">QAction</a> * QToolBar::addWidget ( <a href="qwidget.html">QWidget</a> * <i>widget</i> )</h3>
224
293
<p>Adds the given <i>widget</i> to the toolbar as the toolbar's last item.</p>
225
294
<p>The toolbar takes ownership of <i>widget</i>.</p>
226
295
<p>If you add a <a href="qtoolbutton.html">QToolButton</a> with this method, the tools bar's <a href="qt.html#ToolButtonStyle-enum">Qt::ToolButtonStyle</a> will not be respected.</p>
227
 
<p>Note: You should use <a href="qaction.html#visible-prop">QAction::setVisible</a>() to change the visibility of the widget. Using <a href="qwidget.html#visible-prop">QWidget::setVisible</a>(), <a href="qwidget.html#show">QWidget::show</a>() and <a href="qwidget.html#hide">QWidget::hide</a>() does not work.</p>
 
296
<p><b>Note:</b> You should use <a href="qaction.html#visible-prop">QAction::setVisible</a>() to change the visibility of the widget. Using <a href="qwidget.html#visible-prop">QWidget::setVisible</a>(), <a href="qwidget.html#show">QWidget::show</a>() and <a href="qwidget.html#hide">QWidget::hide</a>() does not work.</p>
228
297
<p>See also <a href="qtoolbar.html#insertWidget">insertWidget</a>().</p>
 
298
<a name="//apple_ref/cpp/instm/QToolBar/allowedAreasChanged" />
229
299
<h3 class="fn"><a name="allowedAreasChanged"></a>void QToolBar::allowedAreasChanged ( <a href="qt.html#ToolBarArea-enum">Qt::ToolBarAreas</a> <i>allowedAreas</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
230
300
<p>This signal is emitted when the collection of allowed areas for the toolbar is changed. The new areas in which the toolbar can be positioned are specified by <i>allowedAreas</i>.</p>
231
301
<p>See also <a href="qtoolbar.html#allowedAreas-prop">allowedAreas</a>.</p>
 
302
<a name="//apple_ref/cpp/instm/QToolBar/changeEvent" />
 
303
<h3 class="fn"><a name="changeEvent"></a>void QToolBar::changeEvent ( <a href="qevent.html">QEvent</a> * <i>event</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
 
304
<p>Reimplemented from <a href="qwidget.html#changeEvent">QWidget::changeEvent</a>().</p>
 
305
<a name="//apple_ref/cpp/instm/QToolBar/childEvent" />
 
306
<h3 class="fn"><a name="childEvent"></a>void QToolBar::childEvent ( <a href="qchildevent.html">QChildEvent</a> * <i>event</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
 
307
<p>Reimplemented from <a href="qobject.html#childEvent">QObject::childEvent</a>().</p>
 
308
<a name="//apple_ref/cpp/instm/QToolBar/clear" />
232
309
<h3 class="fn"><a name="clear"></a>void QToolBar::clear ()</h3>
233
310
<p>Removes all actions from the toolbar.</p>
234
311
<p>See also <a href="qwidget.html#removeAction">removeAction</a>().</p>
 
312
<a name="//apple_ref/cpp/instm/QToolBar/event" />
 
313
<h3 class="fn"><a name="event"></a>bool QToolBar::event ( <a href="qevent.html">QEvent</a> * <i>event</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
 
314
<p>Reimplemented from <a href="qobject.html#event">QObject::event</a>().</p>
 
315
<a name="//apple_ref/cpp/instm/QToolBar/iconSizeChanged" />
235
316
<h3 class="fn"><a name="iconSizeChanged"></a>void QToolBar::iconSizeChanged ( const <a href="qsize.html">QSize</a> &amp; <i>iconSize</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
236
317
<p>This signal is emitted when the icon size is changed. The <i>iconSize</i> parameter holds the toolbar's new icon size.</p>
237
318
<p>See also <a href="qtoolbar.html#iconSize-prop">iconSize</a> and <a href="qmainwindow.html#iconSize-prop">QMainWindow::iconSize</a>.</p>
 
319
<a name="//apple_ref/cpp/instm/QToolBar/insertSeparator" />
238
320
<h3 class="fn"><a name="insertSeparator"></a><a href="qaction.html">QAction</a> * QToolBar::insertSeparator ( <a href="qaction.html">QAction</a> * <i>before</i> )</h3>
239
321
<p>Inserts a separator into the toolbar in front of the toolbar item associated with the <i>before</i> action.</p>
240
322
<p>See also <a href="qtoolbar.html#addSeparator">addSeparator</a>().</p>
 
323
<a name="//apple_ref/cpp/instm/QToolBar/insertWidget" />
241
324
<h3 class="fn"><a name="insertWidget"></a><a href="qaction.html">QAction</a> * QToolBar::insertWidget ( <a href="qaction.html">QAction</a> * <i>before</i>, <a href="qwidget.html">QWidget</a> * <i>widget</i> )</h3>
242
325
<p>Inserts the given <i>widget</i> in front of the toolbar item associated with the <i>before</i> action.</p>
243
326
<p>Note: You should use <a href="qaction.html#visible-prop">QAction::setVisible</a>() to change the visibility of the widget. Using <a href="qwidget.html#visible-prop">QWidget::setVisible</a>(), <a href="qwidget.html#show">QWidget::show</a>() and <a href="qwidget.html#hide">QWidget::hide</a>() does not work.</p>
244
327
<p>See also <a href="qtoolbar.html#addWidget">addWidget</a>().</p>
 
328
<a name="//apple_ref/cpp/instm/QToolBar/isAreaAllowed" />
245
329
<h3 class="fn"><a name="isAreaAllowed"></a>bool QToolBar::isAreaAllowed ( <a href="qt.html#ToolBarArea-enum">Qt::ToolBarArea</a> <i>area</i> ) const</h3>
246
330
<p>Returns true if this toolbar is dockable in the given <i>area</i>; otherwise returns false.</p>
 
331
<a name="//apple_ref/cpp/instm/QToolBar/movableChanged" />
247
332
<h3 class="fn"><a name="movableChanged"></a>void QToolBar::movableChanged ( bool <i>movable</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
248
333
<p>This signal is emitted when the toolbar becomes movable or fixed. If the toolbar can be moved, <i>movable</i> is true; otherwise it is false.</p>
249
334
<p>See also <a href="qtoolbar.html#movable-prop">movable</a>.</p>
 
335
<a name="//apple_ref/cpp/instm/QToolBar/orientationChanged" />
250
336
<h3 class="fn"><a name="orientationChanged"></a>void QToolBar::orientationChanged ( <a href="qt.html#Orientation-enum">Qt::Orientation</a> <i>orientation</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
251
337
<p>This signal is emitted when the orientation of the toolbar changes. The new orientation is specified by the <i>orientation</i> given.</p>
252
338
<p>See also <a href="qtoolbar.html#orientation-prop">orientation</a>.</p>
 
339
<a name="//apple_ref/cpp/instm/QToolBar/paintEvent" />
 
340
<h3 class="fn"><a name="paintEvent"></a>void QToolBar::paintEvent ( <a href="qpaintevent.html">QPaintEvent</a> * <i>event</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
 
341
<p>Reimplemented from <a href="qwidget.html#paintEvent">QWidget::paintEvent</a>().</p>
 
342
<a name="//apple_ref/cpp/instm/QToolBar/resizeEvent" />
 
343
<h3 class="fn"><a name="resizeEvent"></a>void QToolBar::resizeEvent ( <a href="qresizeevent.html">QResizeEvent</a> * <i>event</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
 
344
<p>Reimplemented from <a href="qwidget.html#resizeEvent">QWidget::resizeEvent</a>().</p>
 
345
<a name="//apple_ref/cpp/instm/QToolBar/toggleViewAction" />
253
346
<h3 class="fn"><a name="toggleViewAction"></a><a href="qaction.html">QAction</a> * QToolBar::toggleViewAction () const</h3>
254
347
<p>Returns a checkable action that can be used to show or hide this toolbar.</p>
255
348
<p>The action's text is set to the toolbar's window title.</p>
256
349
<p>See also <a href="qaction.html#text-prop">QAction::text</a> and <a href="qwidget.html#windowTitle-prop">QWidget::windowTitle</a>.</p>
 
350
<a name="//apple_ref/cpp/instm/QToolBar/toolButtonStyleChanged" />
257
351
<h3 class="fn"><a name="toolButtonStyleChanged"></a>void QToolBar::toolButtonStyleChanged ( <a href="qt.html#ToolButtonStyle-enum">Qt::ToolButtonStyle</a> <i>toolButtonStyle</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
258
352
<p>This signal is emitted when the tool button style is changed. The <i>toolButtonStyle</i> parameter holds the toolbar's new tool button style.</p>
259
353
<p>See also <a href="qtoolbar.html#toolButtonStyle-prop">toolButtonStyle</a> and <a href="qmainwindow.html#toolButtonStyle-prop">QMainWindow::toolButtonStyle</a>.</p>
 
354
<a name="//apple_ref/cpp/instm/QToolBar/widgetForAction" />
260
355
<h3 class="fn"><a name="widgetForAction"></a><a href="qwidget.html">QWidget</a> * QToolBar::widgetForAction ( <a href="qaction.html">QAction</a> * <i>action</i> ) const</h3>
261
356
<p>Returns the widget associated with the specified <i>action</i>.</p>
262
357
<p>This function was introduced in Qt 4.2.</p>
263
358
<p>See also <a href="qtoolbar.html#addWidget">addWidget</a>().</p>
264
359
<p /><address><hr /><div align="center">
265
360
<table width="100%" cellspacing="0" border="0"><tr class="address">
266
 
<td width="30%" align="left">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
267
 
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
268
 
<td width="30%" align="right"><div align="right">Qt 4.5.2</div></td>
269
 
</tr></table></div></address></body>
 
361
<td width="40%" align="left">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies)</td>
 
362
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
363
<td width="40%" align="right"><div align="right">Qt 4.6.0</div></td>
 
364
<script type="text/javascript" src="http://www.google.com/jsapi"></script><script type="text/javascript">google.load("elements", "1", {packages: "transliteration"});</script><script type="text/javascript" src="http://www.google.com/coop/cse/t13n?form=cse-search-box&t13n_langs=en"></script><script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script></tr></table></div></address></body>
270
365
</html>