git-svn-id: svn://db.shs.com.ru/libs@133 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
2016-11-07 13:37:42 +00:00
parent 8bbb661966
commit fa98165775
6 changed files with 5 additions and 6 deletions

View File

@@ -24,7 +24,7 @@ class ShortcutEdit: public CLineEdit
Q_OBJECT
friend class Shortcuts;
public:
explicit ShortcutEdit(QWidget * parent = 0): CLineEdit(parent) {ti = 0; connect(this, SIGNAL(textChanged(QString)), this, SLOT(textChanged_(QString)));}
explicit ShortcutEdit(QWidget * parent = 0): CLineEdit(parent) {ti = 0; ca = 0; connect(this, SIGNAL(textChanged(QString)), this, SLOT(textChanged_(QString)));}
void assignAction(QAction * a) {clear(); ca = a; reset();}
QAction * action() const {return ca;}