A widget for selecting a file or directory path.
More...
#include <path_selection_edit.h>
|
| void | setPath (QString newPath=QString()) |
| | Sets a new path programmatically.
|
| |
|
| void | pathChanged (QString newPath) |
| | Signal emitted when the path changes.
|
| |
|
|
void | browseForPath () |
| | Opens a dialog to browse for a path.
|
| |
A widget for selecting a file or directory path.
◆ PathSelectionEdit() [1/2]
| PathSelectionEdit::PathSelectionEdit |
( |
QString |
title, |
|
|
QString |
path, |
|
|
bool |
selectFile, |
|
|
QWidget * |
parent = 0 |
|
) |
| |
Constructs a PathSelectionEdit with specific parameters.
- Parameters
-
| title | The title for the browse dialog. |
| path | The initial path. |
| selectFile | True to select a file, false to select a directory. |
| parent | The parent widget. |
◆ PathSelectionEdit() [2/2]
| PathSelectionEdit::PathSelectionEdit |
( |
QWidget * |
parent = 0 | ) |
|
◆ path()
| QString PathSelectionEdit::path |
( |
| ) |
const |
Gets the currently selected path.
- Returns
- The current path string.
◆ pathChanged
| void PathSelectionEdit::pathChanged |
( |
QString |
newPath | ) |
|
|
signal |
Signal emitted when the path changes.
- Parameters
-
| newPath | The newly selected path. |
◆ setPath
| void PathSelectionEdit::setPath |
( |
QString |
newPath = QString() | ) |
|
|
slot |
Sets a new path programmatically.
- Parameters
-
| newPath | The new path to set. |
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/widgets/path_selection_edit.h
- /builds/wireshark/wireshark/ui/qt/widgets/path_selection_edit.cpp