[190] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
---|
| 2 | <!-- /home/espenr/tmp/qt-3.3.8-espenr-2499/qt-x11-free-3.3.8/src/dialogs/qfiledialog.cpp:6419 -->
|
---|
| 3 | <html>
|
---|
| 4 | <head>
|
---|
| 5 | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
---|
| 6 | <title>QFilePreview Class</title>
|
---|
| 7 | <style type="text/css"><!--
|
---|
| 8 | fn { margin-left: 1cm; text-indent: -1cm; }
|
---|
| 9 | a:link { color: #004faf; text-decoration: none }
|
---|
| 10 | a:visited { color: #672967; text-decoration: none }
|
---|
| 11 | body { background: #ffffff; color: black; }
|
---|
| 12 | --></style>
|
---|
| 13 | </head>
|
---|
| 14 | <body>
|
---|
| 15 |
|
---|
| 16 | <table border="0" cellpadding="0" cellspacing="0" width="100%">
|
---|
| 17 | <tr bgcolor="#E5E5E5">
|
---|
| 18 | <td valign=center>
|
---|
| 19 | <a href="index.html">
|
---|
| 20 | <font color="#004faf">Home</font></a>
|
---|
| 21 | | <a href="classes.html">
|
---|
| 22 | <font color="#004faf">All Classes</font></a>
|
---|
| 23 | | <a href="mainclasses.html">
|
---|
| 24 | <font color="#004faf">Main Classes</font></a>
|
---|
| 25 | | <a href="annotated.html">
|
---|
| 26 | <font color="#004faf">Annotated</font></a>
|
---|
| 27 | | <a href="groups.html">
|
---|
| 28 | <font color="#004faf">Grouped Classes</font></a>
|
---|
| 29 | | <a href="functions.html">
|
---|
| 30 | <font color="#004faf">Functions</font></a>
|
---|
| 31 | </td>
|
---|
| 32 | <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QFilePreview Class Reference</h1>
|
---|
| 33 |
|
---|
| 34 | <p>The QFilePreview class provides file previewing in QFileDialog.
|
---|
| 35 | <a href="#details">More...</a>
|
---|
| 36 | <p><tt>#include <<a href="qfiledialog-h.html">qfiledialog.h</a>></tt>
|
---|
| 37 | <p><a href="qfilepreview-members.html">List of all member functions.</a>
|
---|
| 38 | <h2>Public Members</h2>
|
---|
| 39 | <ul>
|
---|
| 40 | <li class=fn><a href="#QFilePreview"><b>QFilePreview</b></a> ()</li>
|
---|
| 41 | <li class=fn>virtual void <a href="#previewUrl"><b>previewUrl</b></a> ( const QUrl & url ) = 0</li>
|
---|
| 42 | </ul>
|
---|
| 43 | <hr><a name="details"></a><h2>Detailed Description</h2>
|
---|
| 44 |
|
---|
| 45 |
|
---|
| 46 |
|
---|
| 47 | The QFilePreview class provides file previewing in <a href="qfiledialog.html">QFileDialog</a>.
|
---|
| 48 | <p> This class is an abstract base class which is used to implement
|
---|
| 49 | widgets that can display a preview of a file in a QFileDialog.
|
---|
| 50 | <p> You must derive the preview widget from both <a href="qwidget.html">QWidget</a> and from this
|
---|
| 51 | class. Then you must reimplement this class's <a href="#previewUrl">previewUrl</a>() function,
|
---|
| 52 | which is called by the file dialog if the preview of a file
|
---|
| 53 | (specified as a URL) should be shown.
|
---|
| 54 | <p> See also <a href="qfiledialog.html#setPreviewMode">QFileDialog::setPreviewMode</a>(), <a href="qfiledialog.html#setContentsPreview">QFileDialog::setContentsPreview</a>(),
|
---|
| 55 | <a href="qfiledialog.html#setInfoPreview">QFileDialog::setInfoPreview</a>(), <a href="qfiledialog.html#setInfoPreviewEnabled">QFileDialog::setInfoPreviewEnabled</a>(),
|
---|
| 56 | <a href="qfiledialog.html#setContentsPreviewEnabled">QFileDialog::setContentsPreviewEnabled</a>().
|
---|
| 57 | <p> For an example of a preview widget see qt/examples/qdir/qdir.cpp.
|
---|
| 58 | <p>See also <a href="misc.html">Miscellaneous Classes</a>.
|
---|
| 59 |
|
---|
| 60 | <hr><h2>Member Function Documentation</h2>
|
---|
| 61 | <h3 class=fn><a name="QFilePreview"></a>QFilePreview::QFilePreview ()
|
---|
| 62 | </h3>
|
---|
| 63 | Constructs the QFilePreview.
|
---|
| 64 |
|
---|
| 65 | <h3 class=fn>void <a name="previewUrl"></a>QFilePreview::previewUrl ( const <a href="qurl.html">QUrl</a> & url )<tt> [pure virtual]</tt>
|
---|
| 66 | </h3>
|
---|
| 67 |
|
---|
| 68 | <p> This function is called by <a href="qfiledialog.html">QFileDialog</a> if a preview
|
---|
| 69 | for the <em>url</em> should be shown. Reimplement this
|
---|
| 70 | function to provide file previewing.
|
---|
| 71 |
|
---|
| 72 | <!-- eof -->
|
---|
| 73 | <hr><p>
|
---|
| 74 | This file is part of the <a href="index.html">Qt toolkit</a>.
|
---|
| 75 | Copyright © 1995-2007
|
---|
| 76 | <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center>
|
---|
| 77 | <table width=100% cellspacing=0 border=0><tr>
|
---|
| 78 | <td>Copyright © 2007
|
---|
| 79 | <a href="troll.html">Trolltech</a><td align=center><a href="trademarks.html">Trademarks</a>
|
---|
| 80 | <td align=right><div align=right>Qt 3.3.8</div>
|
---|
| 81 | </table></div></address></body>
|
---|
| 82 | </html>
|
---|