eric4.KdeQt.KQFileDialog
Compatibility module to use the KDE File Dialog instead of the Qt File Dialog.
Classes
Functions
__qtGetExistingDirectory
__qtGetExistingDirectory(parent = None, caption = QString(), dir_ = QString(), options = QFileDialog.Options(QFileDialog.ShowDirsOnly))
Private function to get the name of a directory.
- parent
-
parent widget of the dialog (QWidget)
- caption
-
window title of the dialog (QString)
- dir_
-
working directory of the dialog (QString)
- options
-
various options for the dialog (QFileDialog.Options)
- Returns:
-
name of selected directory (QString)
__qtGetOpenFileName
__qtGetOpenFileName(parent = None, caption = QString(), dir_ = QString(), filter = QString(), selectedFilter = None, options = 0)
Private function to get the name of a file for opening it.
- parent
-
parent widget of the dialog (QWidget)
- caption
-
window title of the dialog (QString)
- dir_
-
working directory of the dialog (QString)
- filter
-
filter string for the dialog (QString)
- selectedFilter
-
selected filter for the dialog (QString)
- options
-
various options for the dialog (QFileDialog.Options)
- Returns:
-
name of file to be opened (QString)
__qtGetOpenFileNames
__qtGetOpenFileNames(parent = None, caption = QString(), dir_ = QString(), filter = QString(), selectedFilter = None, options = 0)
Private function to get a list of names of files for opening.
- parent
-
parent widget of the dialog (QWidget)
- caption
-
window title of the dialog (QString)
- dir_
-
working directory of the dialog (QString)
- filter
-
filter string for the dialog (QString)
- selectedFilter
-
selected filter for the dialog (QString)
- options
-
various options for the dialog (QFileDialog.Options)
- Returns:
-
list of filenames to be opened (QStringList)
__qtGetSaveFileName
__qtGetSaveFileName(parent = None, caption = QString(), dir_ = QString(), filter = QString(), selectedFilter = None, options = 0)
Private function to get the name of a file for saving it.
- parent
-
parent widget of the dialog (QWidget)
- caption
-
window title of the dialog (QString)
- dir_
-
working directory of the dialog (QString)
- filter
-
filter string for the dialog (QString)
- selectedFilter
-
selected filter for the dialog (QString)
- options
-
various options for the dialog (QFileDialog.Options)
- Returns:
-
name of file to be saved (QString)
__qtIconProvider
__qtIconProvider()
Function to return the previously stored icon provider.
- Returns:
-
QFileIconProvider
__qtSetIconProvider
__qtSetIconProvider(provider)
Function to set the icon provider.
- provider
-
QFileIconProvider
_initialSelection
_initialSelection(path)
Protected module helper function to determine the initial selection
for a file dialog.
- path
-
pathname to determine initial selection from (QString)
- Returns:
-
initial selection for the dialog (QString)
_workingDirectory
_workingDirectory(path)
Protected module helper function to determine the working directory
for a file dialog.
- path
-
pathname to determine working directory from (QString)
- Returns:
-
working directory for the dialog (QString)
getExistingDirectory
getExistingDirectory(parent = None, caption = QString(), dir_ = QString(), options = QFileDialog.Options(QFileDialog.ShowDirsOnly))
Module function to get the name of a directory.
- parent
-
parent widget of the dialog (QWidget)
- caption
-
window title of the dialog (QString)
- dir_
-
working directory of the dialog (QString)
- options
-
various options for the dialog (QFileDialog.Options)
- Returns:
-
name of selected directory (QString)
getOpenFileName
getOpenFileName(parent = None, caption = QString(), dir_ = QString(), filter = QString(), selectedFilter = None, options = 0)
Module function to get the name of a file for opening it.
- parent
-
parent widget of the dialog (QWidget)
- caption
-
window title of the dialog (QString)
- dir_
-
working directory of the dialog (QString)
- filter
-
filter string for the dialog (QString)
- selectedFilter
-
selected filter for the dialog (QString)
- options
-
various options for the dialog (QFileDialog.Options)
- Returns:
-
name of file to be opened (QString)
getOpenFileNames
getOpenFileNames(parent = None, caption = QString(), dir_ = QString(), filter = QString(), selectedFilter = None, options = 0)
Module function to get a list of names of files for opening.
- parent
-
parent widget of the dialog (QWidget)
- caption
-
window title of the dialog (QString)
- dir_
-
working directory of the dialog (QString)
- filter
-
filter string for the dialog (QString)
- selectedFilter
-
selected filter for the dialog (QString)
- options
-
various options for the dialog (QFileDialog.Options)
- Returns:
-
list of filenames to be opened (QStringList)
getSaveFileName
getSaveFileName(parent = None, caption = QString(), dir_ = QString(), filter = QString(), selectedFilter = None, options = 0)
Module function to get the name of a file for saving it.
- parent
-
parent widget of the dialog (QWidget)
- caption
-
window title of the dialog (QString)
- dir_
-
working directory of the dialog (QString)
- filter
-
filter string for the dialog (QString)
- selectedFilter
-
selected filter for the dialog (QString)
- options
-
various options for the dialog (QFileDialog.Options)
- Returns:
-
name of file to be saved (QString)
iconProvider
iconProvider()
Function to return the previously stored icon provider.
- Returns:
-
QFileIconProvider
setIconProvider
setIconProvider(provider)
Function to set the icon provider.
- provider
-
QFileIconProvider