Changeset View
Changeset View
Standalone View
Standalone View
tools/kpTool.cpp
Show First 20 Lines • Show All 103 Lines • ▼ Show 20 Line(s) | 103 | d->action = new kpToolAction(text(), objectName(), shortcutForKey(d->key), | |||
---|---|---|---|---|---|
104 | this, SIGNAL(actionActivated()), | 104 | this, SIGNAL(actionActivated()), | ||
105 | ac, objectName()); | 105 | ac, objectName()); | ||
106 | 106 | | |||
107 | // Make tools mutually exclusive by placing them in the same group. | 107 | // Make tools mutually exclusive by placing them in the same group. | ||
108 | d->action->setActionGroup(d->environ->toolsActionGroup ()); | 108 | d->action->setActionGroup(d->environ->toolsActionGroup ()); | ||
109 | 109 | | |||
110 | d->action->setWhatsThis(d->description); | 110 | d->action->setWhatsThis(d->description); | ||
111 | 111 | | |||
112 | connect(d->action, SIGNAL(changed()), this, SIGNAL (actionToolTipChanged())); | 112 | connect (d->action, &kpToolAction::changed, this, &kpTool::actionToolTipChanged); | ||
113 | } | 113 | } | ||
114 | 114 | | |||
115 | //--------------------------------------------------------------------- | 115 | //--------------------------------------------------------------------- | ||
116 | // public | 116 | // public | ||
117 | 117 | | |||
118 | QString kpTool::text () const | 118 | QString kpTool::text () const | ||
119 | { | 119 | { | ||
120 | return d->text; | 120 | return d->text; | ||
▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines |