#include <pathbrowsedelegate.h>
◆ Mode
| Enumerator |
|---|
| OpenFile | |
| SaveFile | |
◆ PathBrowseDelegate() [1/2]
| PathBrowseDelegate::PathBrowseDelegate |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ PathBrowseDelegate() [2/2]
| PathBrowseDelegate::PathBrowseDelegate |
( |
Mode |
mode, |
|
|
QString |
title, |
|
|
QString |
filter, |
|
|
QString |
placeholder = {}, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
◆ createEditor()
| QWidget * PathBrowseDelegate::createEditor |
( |
QWidget * |
parent, |
|
|
const QStyleOptionViewItem & |
opt, |
|
|
const QModelIndex & |
idx |
|
) |
| const |
|
override |
◆ projectAnchor()
| QString PathBrowseDelegate::projectAnchor |
( |
| ) |
const |
|
inline |
◆ setDialogTitle()
| void PathBrowseDelegate::setDialogTitle |
( |
const QString & |
t | ) |
|
|
inline |
◆ setEditorData()
| void PathBrowseDelegate::setEditorData |
( |
QWidget * |
editor, |
|
|
const QModelIndex & |
idx |
|
) |
| const |
|
override |
◆ setFilter()
| void PathBrowseDelegate::setFilter |
( |
const QString & |
f | ) |
|
|
inline |
◆ setMode()
| void PathBrowseDelegate::setMode |
( |
Mode |
m | ) |
|
|
inline |
◆ setModelData()
| void PathBrowseDelegate::setModelData |
( |
QWidget * |
editor, |
|
|
QAbstractItemModel * |
model, |
|
|
const QModelIndex & |
idx |
|
) |
| const |
|
override |
◆ setPlaceholder()
| void PathBrowseDelegate::setPlaceholder |
( |
const QString & |
p | ) |
|
|
inline |
◆ setProjectAnchor()
| void PathBrowseDelegate::setProjectAnchor |
( |
const QString & |
dir | ) |
|
|
inline |
Slice IO-11c — directory the editor normalises picked paths against. Empty (the default) preserves legacy behaviour of storing whatever QFileDialog returned, verbatim. When set, a browse outcome under the anchor is rewritten to its relative form before being committed to the model, so the engine slot ends up with a portable token instead of a host-specific path.
The documentation for this class was generated from the following files: