com.trolltech.qt.gui
Class QFileDialog.Filter
java.lang.Object
com.trolltech.qt.gui.QFileDialog.Filter
- Enclosing class:
- QFileDialog
public static class QFileDialog.Filter
- extends java.lang.Object
This enum describes the filtering options available to QDir
; e.g. for entryList()
and entryInfoList()
. The filter value is specified by combining values from the following list using the bitwise OR operator: Functions that use Filter enum values to filter lists of files and directories will include symbolic links to files and directories unless you set the NoSymLinks
value.
A default constructed QDir
will not filter out files based on their permissions, so entryList()
and entryInfoList()
will return all files that are readable, writable, executable, or any combination of the three. This makes the default easy to write, and at the same time useful.
For example, setting the Readable, Writable, and Files flags allows all files to be listed for which the application has read access, write access or both. If the Dirs and Drives flags are also included in this combination then all drives, directories, all files that the application can read, write, or execute, and symlinks to such files/directories can be listed.
To retrieve the permissons for a directory, use the entryInfoList()
function to get the associated QFileInfo
objects and then use the QFileInfo::permissons() to obtain the permissions and ownership for each file.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filter
public java.lang.String filter
selectedFilter
public java.lang.String selectedFilter
QFileDialog.Filter
public QFileDialog.Filter(java.lang.String filter)
- Constructs a new filer. The argument filter follows the convention given in the QFileDialog class description.