📄 accessory.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- /home/edba/dist/qtopia/main-Sunday/qtopia/src/libraries/qtopia1/accessory.cpp:125 --><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Accessory Class</title><style type="text/css"><!--h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }a:link { color: #004faf; text-decoration: none }a:visited { color: #672967; text-decoration: none }body { background: #ffffff; color: black; }--></style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="200" align="left" valign="top"><a href="index.html"><img height="27" width="472" src="dochead.png" border="0"></a><br><font face="Arial,Helvetica,Geneva,Swiss,SunSans-Regular" align="center" size=32>Qtopia</font> <a href="index.html">Home</a> - <a href="qtopiaclasses.html">Classes</a> - <a href="qtopiaannotated.html">Annotated</a> - <a href="qtopiafunctions.html">Functions</a> - <a href="qtindex.html">Qt Embedded</a></td><td align="right" valign="top"> <table border="0" cellpadding="0" cellspacing="0" width="137"> <tr> <td><a href="http://www.trolltech.com/company/about/trolls.html"><img height="100" width="100" src="face.png" border="0"></a></td> <td><img height="100" width="100" src="qtlogo.png" align="top" border="0"></td> </tr> </table></td></tr></table><h1 align=center>Accessory Class Reference</h1><p>The Accessory class allows applet plugins to add themselves tothe Q menu.<a href="#details">More...</a><p><tt>#include <<a href="accessory-h.html">accessory.h</a>></tt><p><a href="accessory-members.html">List of all member functions.</a><h2>Public Members</h2><ul><li><div class=fn><a href="#Accessory"><b>Accessory</b></a> ( const QIconSet & icon, const QString & text, QWidget * parent )</div></li><li><div class=fn><a href="#Accessory-2"><b>Accessory</b></a> ( const QIconSet & icon, const QString & text, QPopupMenu * submenu, QWidget * parent )</div></li><li><div class=fn>virtual <a href="#~Accessory"><b>~Accessory</b></a> ()</div></li><li><div class=fn>QIconSet <a href="#iconSet"><b>iconSet</b></a> () const</div></li><li><div class=fn>QString <a href="#text"><b>text</b></a> () const</div></li><li><div class=fn>void <a href="#setIconSet"><b>setIconSet</b></a> ( const QIconSet & icon )</div></li><li><div class=fn>void <a href="#setText"><b>setText</b></a> ( const QString & text )</div></li><li><div class=fn>QPopupMenu * <a href="#popup"><b>popup</b></a> () const</div></li></ul><h2>Signals</h2><ul><li><div class=fn>void <a href="#activated"><b>activated</b></a> ()</div></li><li><div class=fn>void <a href="#activated-2"><b>activated</b></a> ( int )</div></li></ul><hr><a name="details"></a><h2>Detailed Description</h2>The Accessory class allows applet plugins to add themselves tothe Q menu.<p> Accessories can either add a single menu entry, or add a sub-menu.<p> Accessories are particularly useful when using real estate on the taskbarwould be wasteful.<p> First availability: Qtopia 1.6<p> <p>See also <a href="taskbarappletinterface.html">TaskbarAppletInterface</a> and <a href="qtopiaemb.html">Qtopia Classes</a>.<hr><h2>Member Function Documentation</h2><h3 class=fn><a name="Accessory"></a>Accessory::Accessory ( const QIconSet & icon, const QString & text, QWidget * parent )</h3>Constructs an Accessory object with parent <em>parent</em>.<p> This constructor places a new menu entry in the Q menu, with the name <em>text</em>and using the iconset <em>icon</em>.<p> The <a href="#activated">activated</a>() signal will be emitted when the user selects this item.<h3 class=fn><a name="Accessory-2"></a>Accessory::Accessory ( const QIconSet & icon, const QString & text, QPopupMenu * submenu, QWidget * parent )</h3>Constructs an Accessory object with parent <em>parent</em>.<p> This constructor places a new menu entry in the Q menu, with the name <em>text</em>and using the iconset <em>icon</em>.<p> The <em>submenu</em>, if non-zero, must have no parent object. The <a href="#activated">activated</a>(int) signalwill be emitted when the user selects an item from the submenu.<h3 class=fn><a name="~Accessory"></a>Accessory::~Accessory ()<tt> [virtual]</tt></h3>Destructs Accessory.<h3 class=fn>void <a name="activated"></a>Accessory::activated ()<tt> [signal]</tt></h3><p> This signal is emitted when the menu item is activated.<h3 class=fn>void <a name="activated-2"></a>Accessory::activated ( int )<tt> [signal]</tt></h3><p> This signal is emitted when a menu item in the submenu is activated.<h3 class=fn>QIconSet <a name="iconSet"></a>Accessory::iconSet () const</h3>Returns the QIconSet displayed in the menu.<p> <p>See also <a href="#setIconSet">setIconSet</a>().<h3 class=fn>QPopupMenu * <a name="popup"></a>Accessory::popup () const</h3>Returns a pointer to the sub-menu, or 0 if a sub-menu does notexist.<h3 class=fn>void <a name="setIconSet"></a>Accessory::setIconSet ( const QIconSet & icon )</h3>Sets <em>icon</em> as the icon shown in the menu.<p> <p>See also <a href="#iconSet">iconSet</a>().<h3 class=fn>void <a name="setText"></a>Accessory::setText ( const QString & text )</h3>Sets <em>text</em> as the text shown in the menu.<p> <p>See also <a href="#text">text</a>().<h3 class=fn>QString <a name="text"></a>Accessory::text () const</h3>Returns the text displayed in the menu.<p> <p>See also <a href="#setText">setText</a>().<!-- eof --><hr><p>This file is part of the <a href="../index.html">Qtopia</a> platform,copyright © 1995-2004<a href="http://www.trolltech.com/">Trolltech</a>, all rights reserved.<p><address><hr><div align="center"><table width="100%" cellspacing="0" border="0"><tr><td>Copyright © 2001-2004 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a><td align="right"><div align="right">Qtopia version 2.0.0</div></table></div></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -