MCPcopy Create free account
hub / github.com/ckaiser/Lightscreen / HotkeyWidget

Method HotkeyWidget

widgets/hotkeywidget.cpp:28–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26#include <widgets/hotkeywidget.h>
27
28HotkeyWidget::HotkeyWidget(QWidget *parent) :
29 QPushButton(parent), mHotkey(QKeySequence()), mShowingError(false), mKeyboardFocus(false)
30{
31 mDefaultStyleSheet = "text-align: left; padding: 3px 6px;";
32 setStyleSheet(mDefaultStyleSheet);
33
34 setText(tr("Click to select hotkey..."));
35 setObjectName("HotkeyWidget");
36
37 if (qApp->style()->objectName() == "oxygen") {
38 setMinimumWidth(130);
39 } else {
40 setMinimumWidth(110);
41 }
42}
43
44void HotkeyWidget::setHotkey(const QString &hotkeyString)
45{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected