A QLineEdit combined with a file dialog button, designed for use as a table cell editor.
More...
#include <editor_file_dialog.h>
|
| void | acceptEdit (const QModelIndex &index) |
| | Signal emitted to accept the edit and update the model.
|
|
| | EditorFileDialog (const QModelIndex &index, enum FileMode mode, QWidget *parent=0, const QString &caption=QString(), const QString &directory=QString(), const QString &filter=QString()) |
| | Constructs a new EditorFileDialog.
|
| void | setOption (QFileDialog::Option option, bool on=true) |
| | Sets or unsets a QFileDialog option.
|
| virtual void | focusInEvent (QFocusEvent *event) override |
| | Handles focus in events.
|
| virtual void | focusOutEvent (QFocusEvent *event) override |
| | Handles focus out events.
|
| virtual bool | eventFilter (QObject *obj, QEvent *event) override |
| | Event filter to monitor specific events on the widget or its children.
|
|
|
void | resizeEvent (QResizeEvent *) override |
| | Handles resize events to adjust the layout of the line edit and button.
|
A QLineEdit combined with a file dialog button, designed for use as a table cell editor.
◆ FileMode
Determines whether the dialog selects files or directories.
| Enumerator |
|---|
| ExistingFile | Mode for selecting an existing file.
|
| Directory | Mode for selecting a directory.
|
◆ EditorFileDialog()
| EditorFileDialog::EditorFileDialog |
( |
const QModelIndex & | index, |
|
|
enum FileMode | mode, |
|
|
QWidget * | parent = 0, |
|
|
const QString & | caption = QString(), |
|
|
const QString & | directory = QString(), |
|
|
const QString & | filter = QString() ) |
|
explicit |
Constructs a new EditorFileDialog.
- Parameters
-
| index | The model index of the table cell being edited. |
| mode | The selection mode (file or directory). |
| parent | The parent widget, defaults to 0. |
| caption | The title of the file dialog, defaults to empty. |
| directory | The initial directory to open, defaults to empty. |
| filter | The file filter string, defaults to empty. |
◆ acceptEdit
| void EditorFileDialog::acceptEdit |
( |
const QModelIndex & | index | ) |
|
|
signal |
Signal emitted to accept the edit and update the model.
- Parameters
-
| index | The model index of the cell that was edited. |
◆ eventFilter()
| bool EditorFileDialog::eventFilter |
( |
QObject * | obj, |
|
|
QEvent * | event ) |
|
overridevirtual |
Event filter to monitor specific events on the widget or its children.
- Parameters
-
| obj | The object receiving the event. |
| event | The event being filtered. |
- Returns
- True if the event was filtered out, false otherwise.
◆ focusInEvent()
| void EditorFileDialog::focusInEvent |
( |
QFocusEvent * | event | ) |
|
|
overridevirtual |
Handles focus in events.
- Parameters
-
◆ focusOutEvent()
| void EditorFileDialog::focusOutEvent |
( |
QFocusEvent * | event | ) |
|
|
overridevirtual |
Handles focus out events.
- Parameters
-
◆ setOption()
| void EditorFileDialog::setOption |
( |
QFileDialog::Option | option, |
|
|
bool | on = true ) |
Sets or unsets a QFileDialog option.
- Parameters
-
| option | The option to configure. |
| on | True to enable the option, false to disable (defaults to true). |
◆ caption_
| QString EditorFileDialog::caption_ |
|
protected |
The title caption of the file dialog.
◆ directory_
| QString EditorFileDialog::directory_ |
|
protected |
The initial directory for the file dialog.
◆ file_dialog_button_
| QPushButton* EditorFileDialog::file_dialog_button_ |
|
protected |
Pointer to the button that triggers the file dialog.
◆ filter_
| QString EditorFileDialog::filter_ |
|
protected |
The file filter string for the file dialog.
◆ index_
| const QModelIndex EditorFileDialog::index_ |
|
protected |
The saved model index of the table cell being edited.
◆ mode_
The configured file selection mode.
◆ options_
| QFileDialog::Options EditorFileDialog::options_ |
|
protected |
The configured options for the file dialog.
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/widgets/editor_file_dialog.h
- /builds/wireshark/wireshark/ui/qt/widgets/editor_file_dialog.cpp