QTextEdit subclass used inside ShowPacketBytesDialog that adds a context menu with "Show Selected Bytes" and "Show All Bytes" actions.
More...
#include <show_packet_bytes_dialog.h>
|
| void | showSelected (int start, int end) |
| | Emitted when the user chooses "Show Selected Bytes", carrying the character positions of the selection within the displayed text.
|
| |
QTextEdit subclass used inside ShowPacketBytesDialog that adds a context menu with "Show Selected Bytes" and "Show All Bytes" actions.
◆ ShowPacketBytesTextEdit()
| ShowPacketBytesTextEdit::ShowPacketBytesTextEdit |
( |
QWidget * |
parent = nullptr | ) |
|
|
explicit |
◆ setMenusEnabled()
| void ShowPacketBytesTextEdit::setMenusEnabled |
( |
bool |
enabled | ) |
|
|
inline |
Enables or disables the entire context menu.
- Parameters
-
| enabled | true to show the context menu on right-click. |
◆ setShowSelectedEnabled()
| void ShowPacketBytesTextEdit::setShowSelectedEnabled |
( |
bool |
enabled | ) |
|
|
inline |
Enables or disables the "Show Selected Bytes" context menu action.
- Parameters
-
| enabled | true to enable the action when text is selected. |
◆ showSelected
| void ShowPacketBytesTextEdit::showSelected |
( |
int |
start, |
|
|
int |
end |
|
) |
| |
|
signal |
Emitted when the user chooses "Show Selected Bytes", carrying the character positions of the selection within the displayed text.
- Parameters
-
| start | Start character position of the selection. |
| end | End character position of the selection (exclusive). |
The documentation for this class was generated from the following files: