MCPcopy Create free account
hub / github.com/SeaEpoch/MouseClick / HotkeyLineEdit

Method HotkeyLineEdit

src/modules/hotkeylineedit.cpp:12–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include <QHotkey>
11
12HotkeyLineEdit::HotkeyLineEdit(QWidget* parent)
13 : QLineEdit{parent},
14 _hotkey(new QHotkey())
15{
16 setReadOnly(true);
17 setPlaceholderText(tr("Please set a shortcut hotkey"));
18 connect(_hotkey, &QHotkey::activated, this, &HotkeyLineEdit::hotkeyActivated);
19}
20
21HotkeyLineEdit::~HotkeyLineEdit()
22{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected