15#include <dtkwidget_global.h>
17DWIDGET_BEGIN_NAMESPACE
19class DShortcutEditLabel;
27 QSize sizeHint()
const;
29 bool isValidShortcutKey(
const QString & key);
34 void shortcutKeysChanged(
const QString & shortcutKeys);
35 void shortcutKeysFinished(
const QString & shortcutKeys);
36 void invalidShortcutKey(
const QString & shortcutKeys);
39 void clearShortcutKey();
40 void setShortcutKey(
const QString & key);
43 void setInValidState()
const;
44 void setNormalState()
const;
48 void toInputMode()
const;
49 void shortcutKeyPress(QKeyEvent *e);
62 static const QString DefaultTips;
68 Q_PROPERTY(QColor echoNormal MEMBER m_colorNormal NOTIFY colorSettingChange DESIGNABLE
true SCRIPTABLE
true)
69 Q_PROPERTY(QColor echoHover MEMBER m_colorHover NOTIFY colorSettingChange DESIGNABLE
true SCRIPTABLE
true)
70 Q_PROPERTY(QColor echoInvalid MEMBER m_colorInvalid NOTIFY colorSettingChange DESIGNABLE
true SCRIPTABLE
true)
73 enum EchoState {Normal = 1, Hover, Invalid};
78 void setEchoState(
const EchoState state);
81 void colorSettingChange();
90 QColor m_colorInvalid;
92 EchoState m_state = Normal;