Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > 28b9e36e96ce34b2567ae5b47a27b2c5 > files > 1240

python-qt4-doc-4.10.3-3.mga4.noarch.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html><head><title>QUndoView Class Reference</title><style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm }
a:link { color: #004faf; text-decoration: none }
a:visited { color: #672967; text-decoration: none }
td.postheader { font-family: sans-serif }
tr.address { font-family: sans-serif }
body { background: #ffffff; color: black; }
</style></head><body><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr /><td align="left" valign="top" width="32"><img align="left" border="0" height="32" src="images/rb-logo.png" width="32" /></td><td width="1">&#160;&#160;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&#160;&#183; <a href="classes.html"><font color="#004faf">All Classes</font></a>&#160;&#183; <a href="modules.html"><font color="#004faf">Modules</font></a></td></table><h1 align="center">QUndoView Class Reference<br /><sup><sup>[<a href="qtgui.html">QtGui</a> module]</sup></sup></h1><p>The QUndoView class displays the contents of a <a href="qundostack.html">QUndoStack</a>. <a href="#details">More...</a></p>

<p>Inherits <a href="qlistview.html">QListView</a>.</p><h3>Methods</h3><ul><li><div class="fn" /><b><a href="qundoview.html#QUndoView">__init__</a></b> (<i>self</i>, QWidget&#160;<i>parent</i>&#160;=&#160;None)</li><li><div class="fn" /><b><a href="qundoview.html#QUndoView-2">__init__</a></b> (<i>self</i>, QUndoStack&#160;<i>stack</i>, QWidget&#160;<i>parent</i>&#160;=&#160;None)</li><li><div class="fn" /><b><a href="qundoview.html#QUndoView-3">__init__</a></b> (<i>self</i>, QUndoGroup&#160;<i>group</i>, QWidget&#160;<i>parent</i>&#160;=&#160;None)</li><li><div class="fn" />QIcon <b><a href="qundoview.html#cleanIcon">cleanIcon</a></b> (<i>self</i>)</li><li><div class="fn" />QString <b><a href="qundoview.html#emptyLabel">emptyLabel</a></b> (<i>self</i>)</li><li><div class="fn" />QUndoGroup <b><a href="qundoview.html#group">group</a></b> (<i>self</i>)</li><li><div class="fn" /><b><a href="qundoview.html#setCleanIcon">setCleanIcon</a></b> (<i>self</i>, QIcon&#160;<i>icon</i>)</li><li><div class="fn" /><b><a href="qundoview.html#setEmptyLabel">setEmptyLabel</a></b> (<i>self</i>, QString&#160;<i>label</i>)</li><li><div class="fn" /><b><a href="qundoview.html#setGroup">setGroup</a></b> (<i>self</i>, QUndoGroup&#160;<i>group</i>)</li><li><div class="fn" /><b><a href="qundoview.html#setStack">setStack</a></b> (<i>self</i>, QUndoStack&#160;<i>stack</i>)</li><li><div class="fn" />QUndoStack <b><a href="qundoview.html#stack">stack</a></b> (<i>self</i>)</li></ul><a name="details" /><hr /><h2>Detailed Description</h2><p>The QUndoView class displays the contents of a <a href="qundostack.html">QUndoStack</a>.</p>
<p>QUndoView is a <a href="qlistview.html">QListView</a> which
displays the list of commands pushed on an undo stack. The most
recently executed command is always selected. Selecting a different
command results in a call to <a href="qundostack.html#setIndex">QUndoStack.setIndex</a>(), rolling the
state of the document backwards or forward to the new command.</p>
<p>The stack can be set explicitly with <a href="qundoview.html#setStack">setStack</a>(). Alternatively, a <a href="qundogroup.html">QUndoGroup</a> object can be set with <a href="qundoview.html#setGroup">setGroup</a>(). The view will then update
itself automatically whenever the active stack of the group
changes.</p>
<p class="centerAlign"><img alt="" src="images/qundoview.png" /></p>
<hr /><h2>Method Documentation</h2><h3 class="fn"><a name="QUndoView" />QUndoView.__init__ (<i>self</i>, <a href="qwidget.html">QWidget</a>&#160;<i>parent</i>&#160;=&#160;None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a new view with parent <i>parent</i>.</p>


<h3 class="fn"><a name="QUndoView-2" />QUndoView.__init__ (<i>self</i>, <a href="qundostack.html">QUndoStack</a>&#160;<i>stack</i>, <a href="qwidget.html">QWidget</a>&#160;<i>parent</i>&#160;=&#160;None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a new view with parent <i>parent</i> and sets the
observed stack to <i>stack</i>.</p>


<h3 class="fn"><a name="QUndoView-3" />QUndoView.__init__ (<i>self</i>, <a href="qundogroup.html">QUndoGroup</a>&#160;<i>group</i>, <a href="qwidget.html">QWidget</a>&#160;<i>parent</i>&#160;=&#160;None)</h3><p>The <i>parent</i> argument, if not None, causes <i>self</i> to be owned by Qt instead of PyQt.</p><p>Constructs a new view with parent <i>parent</i> and sets the
observed group to <i>group</i>.</p>
<p>The view will update itself autmiatically whenever the active
stack of the group changes.</p>


<h3 class="fn"><a name="cleanIcon" /><a href="qicon.html">QIcon</a> QUndoView.cleanIcon (<i>self</i>)</h3><h3 class="fn"><a name="emptyLabel" />QString QUndoView.emptyLabel (<i>self</i>)</h3><h3 class="fn"><a name="group" /><a href="qundogroup.html">QUndoGroup</a> QUndoView.group (<i>self</i>)</h3><p>Returns the group displayed by this view.</p>
<p>If the view is not looking at group, this function returns
0.</p>
<p><b>See also</b> <a href="qundoview.html#setGroup">setGroup</a>()
and <a href="qundoview.html#setStack">setStack</a>().</p>


<h3 class="fn"><a name="setCleanIcon" />QUndoView.setCleanIcon (<i>self</i>, <a href="qicon.html">QIcon</a>&#160;<i>icon</i>)</h3><h3 class="fn"><a name="setEmptyLabel" />QUndoView.setEmptyLabel (<i>self</i>, QString&#160;<i>label</i>)</h3><h3 class="fn"><a name="setGroup" />QUndoView.setGroup (<i>self</i>, <a href="qundogroup.html">QUndoGroup</a>&#160;<i>group</i>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setGroup(QUndoGroup *)</tt>.</p><p>Sets the group displayed by this view to <i>group</i>. If
<i>group</i> is 0, the view will be empty.</p>
<p>The view will update itself autmiatically whenever the active
stack of the group changes.</p>
<p><b>See also</b> <a href="qundoview.html#group">group</a>() and
<a href="qundoview.html#setStack">setStack</a>().</p>


<h3 class="fn"><a name="setStack" />QUndoView.setStack (<i>self</i>, <a href="qundostack.html">QUndoStack</a>&#160;<i>stack</i>)</h3><p>This method is also a Qt slot with the C++ signature <tt>void setStack(QUndoStack *)</tt>.</p><p>Sets the stack displayed by this view to <i>stack</i>. If
<i>stack</i> is 0, the view will be empty.</p>
<p>If the view was previously looking at a <a href="qundogroup.html">QUndoGroup</a>, the group is set to 0.</p>
<p><b>See also</b> <a href="qundoview.html#stack">stack</a>() and
<a href="qundoview.html#setGroup">setGroup</a>().</p>


<h3 class="fn"><a name="stack" /><a href="qundostack.html">QUndoStack</a> QUndoView.stack (<i>self</i>)</h3><p>Returns the stack currently displayed by this view. If the view
is looking at a <a href="qundogroup.html">QUndoGroup</a>, this the
group's active stack.</p>
<p><b>See also</b> <a href="qundoview.html#setStack">setStack</a>()
and <a href="qundoview.html#setGroup">setGroup</a>().</p>
<address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.10.3 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2012</td><td align="right" width="25%">Qt&#160;4.8.5</td></tr></table></div></address></body></html>