#include <vfilepropertyeditor.h>
|
void | setFile (const QString &value, bool emit_signal=false) |
| Sets the current file, does not check if it is valid. More...
|
|
void | setFilter (const QString &dialog_filter=QString(), const QStringList &filter_list=QStringList()) |
| Sets a filter for the file field. More...
|
|
void | setDirectory (bool dir) |
| Sets whether the property stores a directory or a file. More...
|
|
|
virtual void | dragEnterEvent (QDragEnterEvent *event) Q_DECL_OVERRIDE |
|
virtual void | dragMoveEvent (QDragMoveEvent *event) Q_DECL_OVERRIDE |
|
virtual void | dragLeaveEvent (QDragLeaveEvent *event) Q_DECL_OVERRIDE |
|
virtual void | dropEvent (QDropEvent *event) Q_DECL_OVERRIDE |
|
virtual bool | checkMimeData (const QMimeData *data, QString &file) const |
| This function checks the mime data, if it is compatible with the filters. More...
|
|
virtual bool | checkFileFilter (const QString &file) const |
| This checks, if a file is compatible with the filters. More...
|
|
Definition at line 39 of file vfilepropertyeditor.h.
◆ VFileEditWidget()
VPE::VFileEditWidget::VFileEditWidget |
( |
QWidget * |
parent, |
|
|
bool |
is_directory = false |
|
) |
| |
|
explicit |
◆ ~VFileEditWidget()
VPE::VFileEditWidget::~VFileEditWidget |
( |
| ) |
|
|
virtual |
◆ checkFileFilter()
bool VPE::VFileEditWidget::checkFileFilter |
( |
const QString & |
file | ) |
const |
|
protectedvirtual |
◆ checkMimeData()
bool VPE::VFileEditWidget::checkMimeData |
( |
const QMimeData * |
data, |
|
|
QString & |
file |
|
) |
| const |
|
protectedvirtual |
◆ commitData
void VPE::VFileEditWidget::commitData |
( |
QWidget * |
editor | ) |
|
|
signal |
◆ dataChangedByUser
void VPE::VFileEditWidget::dataChangedByUser |
( |
const QString & |
getFile, |
|
|
VFileEditWidget * |
editor |
|
) |
| |
|
signal |
This signal is emitted when the user changed the curret file. Actions triggering this signal are either using the file dialog to select a new file or changing the file path in the line edit.
◆ dragEnterEvent()
void VPE::VFileEditWidget::dragEnterEvent |
( |
QDragEnterEvent * |
event | ) |
|
|
protectedvirtual |
◆ dragLeaveEvent()
void VPE::VFileEditWidget::dragLeaveEvent |
( |
QDragLeaveEvent * |
event | ) |
|
|
protectedvirtual |
◆ dragMoveEvent()
void VPE::VFileEditWidget::dragMoveEvent |
( |
QDragMoveEvent * |
event | ) |
|
|
protectedvirtual |
◆ dropEvent()
void VPE::VFileEditWidget::dropEvent |
( |
QDropEvent * |
event | ) |
|
|
protectedvirtual |
◆ eventFilter()
bool VPE::VFileEditWidget::eventFilter |
( |
QObject * |
obj, |
|
|
QEvent * |
ev |
|
) |
| |
|
virtual |
◆ getFile()
QString VPE::VFileEditWidget::getFile |
( |
| ) |
const |
◆ isDirectory()
bool VPE::VFileEditWidget::isDirectory |
( |
| ) |
|
Returns the directory/file setting.
- Returns
- True, if a directory dialog is being shown, false if a file dialog
Definition at line 167 of file vfilepropertyeditor.cpp.
◆ onToolButtonClicked
void VPE::VFileEditWidget::onToolButtonClicked |
( |
| ) |
|
|
privateslot |
◆ setDirectory
void VPE::VFileEditWidget::setDirectory |
( |
bool |
dir | ) |
|
|
slot |
◆ setFile
void VPE::VFileEditWidget::setFile |
( |
const QString & |
value, |
|
|
bool |
emit_signal = false |
|
) |
| |
|
slot |
◆ setFilter
void VPE::VFileEditWidget::setFilter |
( |
const QString & |
dialog_filter = QString() , |
|
|
const QStringList & |
filter_list = QStringList() |
|
) |
| |
|
slot |
◆ CurrentFilePath
QString VPE::VFileEditWidget::CurrentFilePath |
|
protected |
◆ Directory
bool VPE::VFileEditWidget::Directory |
|
protected |
Specifies whether it is being looked for a directory (true) or a file (false, default)
Definition at line 108 of file vfilepropertyeditor.h.
◆ FileDialogFilter
QString VPE::VFileEditWidget::FileDialogFilter |
|
protected |
◆ FileLineEdit
QLineEdit* VPE::VFileEditWidget::FileLineEdit |
|
protected |
◆ FilterList
QStringList VPE::VFileEditWidget::FilterList |
|
protected |
◆ ToolButton
QToolButton* VPE::VFileEditWidget::ToolButton |
|
protected |
The documentation for this class was generated from the following files: