Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
PathSelectionEdit Class Reference

A widget for selecting a file or directory path. More...

#include <path_selection_edit.h>

Inheritance diagram for PathSelectionEdit:

Public Slots

void setPath (QString newPath=QString())
 Sets a new path programmatically.

Signals

void pathChanged (QString newPath)
 Signal emitted when the path changes.

Public Member Functions

 PathSelectionEdit (QString title, QString path, bool selectFile, QWidget *parent=0)
 Constructs a PathSelectionEdit with specific parameters.
 PathSelectionEdit (QWidget *parent=0)
 Constructs a default PathSelectionEdit.
QString path () const
 Gets the currently selected path.

Protected Slots

void browseForPath ()
 Opens a dialog to browse for a path.

Detailed Description

A widget for selecting a file or directory path.

Constructor & Destructor Documentation

◆ PathSelectionEdit() [1/2]

PathSelectionEdit::PathSelectionEdit ( QString title,
QString path,
bool selectFile,
QWidget * parent = 0 )

Constructs a PathSelectionEdit with specific parameters.

Parameters
titleThe title for the browse dialog.
pathThe initial path.
selectFileTrue to select a file, false to select a directory.
parentThe parent widget.

◆ PathSelectionEdit() [2/2]

PathSelectionEdit::PathSelectionEdit ( QWidget * parent = 0)

Constructs a default PathSelectionEdit.

Parameters
parentThe parent widget.

Member Function Documentation

◆ 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
newPathThe newly selected path.

◆ setPath

void PathSelectionEdit::setPath ( QString newPath = QString())
slot

Sets a new path programmatically.

Parameters
newPathThe new path to set.

The documentation for this class was generated from the following files: