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

Dialog for viewing or editing a packet comment. More...

#include <packet_comment_dialog.h>

Inheritance diagram for PacketCommentDialog:
GeometryStateDialog

Public Member Functions

 PacketCommentDialog (bool isEdit, QWidget *parent=0, QString comment=QString())
 Constructs a new PacketCommentDialog object.
 ~PacketCommentDialog ()
 Destroys the PacketCommentDialog object.
QString text ()
 Retrieves the text of the packet comment.
Public Member Functions inherited from GeometryStateDialog
 GeometryStateDialog (QWidget *parent, Qt::WindowFlags f=Qt::Window)
 Constructs a new GeometryStateDialog with the specified parent and window flags.
 ~GeometryStateDialog ()
 Save the geometry and splitter state and then destroy the GeometryStateDialog.
void setWindowModality (Qt::WindowModality windowModality)
 Sets the window modality for the dialog. On non-macOS platforms, this also sets the parent to ensure modal dialogs are always on top of their parent.

Additional Inherited Members

Protected Member Functions inherited from GeometryStateDialog
void loadGeometry (int width=0, int height=0, const QString &dialog_name=QString())
 Loads the geometry and splitter state for the dialog.
void loadSplitterState (QSplitter *splitter=nullptr)
 Loads the state of a splitter for the dialog.

Detailed Description

Dialog for viewing or editing a packet comment.

Constructor & Destructor Documentation

◆ PacketCommentDialog()

PacketCommentDialog::PacketCommentDialog ( bool isEdit,
QWidget * parent = 0,
QString comment = QString() )
explicit

Constructs a new PacketCommentDialog object.

Parameters
isEditTrue if the dialog is used to edit an existing comment, false otherwise.
parentThe parent widget.
commentThe initial comment text.

Member Function Documentation

◆ text()

QString PacketCommentDialog::text ( )

Retrieves the text of the packet comment.

Returns
A QString containing the current packet comment text.

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