You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.8 KiB
69 lines
2.8 KiB
'\" t
|
|
.TH TQFileIconProvider 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
|
|
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
|
|
.\" license file included in the distribution for a complete license
|
|
.\" statement.
|
|
.\"
|
|
.ad l
|
|
.nh
|
|
.SH NAME
|
|
TQFileIconProvider \- Icons for TQFileDialog to use
|
|
.SH SYNOPSIS
|
|
\fC#include <tqfiledialog.h>\fR
|
|
.PP
|
|
Inherits TQObject.
|
|
.PP
|
|
.SS "Public Members"
|
|
.in +1c
|
|
.ti -1c
|
|
.BI "\fBTQFileIconProvider\fR ( TQObject * parent = 0, const char * name = 0 )"
|
|
.br
|
|
.ti -1c
|
|
.BI "virtual const QPixmap * \fBpixmap\fR ( const TQFileInfo & info )"
|
|
.br
|
|
.in -1c
|
|
.SH DESCRIPTION
|
|
The TQFileIconProvider class provides icons for TQFileDialog to use.
|
|
.PP
|
|
By default TQFileIconProvider is not used, but any application or library can subclass it, reimplement pixmap() to return a suitable icon, and make all TQFileDialog objects use it by calling the static function TQFileDialog::setIconProvider().
|
|
.PP
|
|
It is advisable to make all the icons that TQFileIconProvider returns be the same size or at least the same width. This makes the list view look much better.
|
|
.PP
|
|
See also TQFileDialog and Miscellaneous Classes.
|
|
.SH MEMBER FUNCTION DOCUMENTATION
|
|
.SH "TQFileIconProvider::TQFileIconProvider ( TQObject * parent = 0, const char * name = 0 )"
|
|
Constructs an empty file icon provider called \fIname\fR, with the parent \fIparent\fR.
|
|
.SH "const QPixmap * TQFileIconProvider::pixmap ( const TQFileInfo & info )\fC [virtual]\fR"
|
|
Returns a pointer to a pixmap that should be used to signify the file with the information \fIinfo\fR.
|
|
.PP
|
|
If pixmap() returns 0, TQFileDialog draws the default pixmap.
|
|
.PP
|
|
The default implementation returns particular icons for files, directories, link-files and link-directories. It returns a blank "icon" for other types.
|
|
.PP
|
|
If you return a pixmap here, it should measure 16x16 pixels.
|
|
|
|
.SH "SEE ALSO"
|
|
.BR http://doc.trolltech.com/tqfileiconprovider.html
|
|
.BR http://www.trolltech.com/faq/tech.html
|
|
.SH COPYRIGHT
|
|
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the
|
|
license file included in the distribution for a complete license
|
|
statement.
|
|
.SH AUTHOR
|
|
Generated automatically from the source code.
|
|
.SH BUGS
|
|
If you find a bug in Qt, please report it as described in
|
|
.BR http://doc.trolltech.com/bughowto.html .
|
|
Good bug reports help us to help you. Thank you.
|
|
.P
|
|
The definitive TQt documentation is provided in HTML format; it is
|
|
located at $TQTDIR/doc/html and can be read using TQt Assistant or with
|
|
a web browser. This man page is provided as a convenience for those
|
|
users who prefer man pages, although this format is not officially
|
|
supported by Trolltech.
|
|
.P
|
|
If you find errors in this manual page, please report them to
|
|
.BR qt-bugs@trolltech.com .
|
|
Please include the name of the manual page (tqfileiconprovider.3qt) and the Qt
|
|
version (3.3.8).
|