Changeset View
Changeset View
Standalone View
Standalone View
plugins/filetemplates/classidentifierpage.cpp
Show All 16 Lines | |||||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | #include "classidentifierpage.h" | 19 | #include "classidentifierpage.h" | ||
20 | #include "language/duchain/identifier.h" | 20 | #include "language/duchain/identifier.h" | ||
21 | #include <KI18n/KLocalizedString> | 21 | #include <KI18n/KLocalizedString> | ||
22 | 22 | | |||
23 | #include "ui_newclass.h" | 23 | #include "ui_newclass.h" | ||
24 | 24 | | |||
25 | struct ClassIdentifierPagePrivate | 25 | using namespace KDevelop; | ||
26 | | ||||
27 | struct KDevelop::ClassIdentifierPagePrivate | ||||
26 | { | 28 | { | ||
27 | ClassIdentifierPagePrivate() | 29 | ClassIdentifierPagePrivate() | ||
28 | : classid(nullptr) | 30 | : classid(nullptr) | ||
29 | { | 31 | { | ||
30 | } | 32 | } | ||
31 | 33 | | |||
32 | Ui::NewClassDialog* classid; | 34 | Ui::NewClassDialog* classid; | ||
33 | }; | 35 | }; | ||
Show All 35 Lines | |||||
69 | { | 71 | { | ||
70 | return d->classid->keditlistwidget->items(); | 72 | return d->classid->keditlistwidget->items(); | ||
71 | } | 73 | } | ||
72 | 74 | | |||
73 | void ClassIdentifierPage::setInheritanceList (const QStringList& list) | 75 | void ClassIdentifierPage::setInheritanceList (const QStringList& list) | ||
74 | { | 76 | { | ||
75 | d->classid->keditlistwidget->setItems(list); | 77 | d->classid->keditlistwidget->setItems(list); | ||
76 | } | 78 | } | ||
79 | | ||||
80 | void ClassIdentifierPage::setFocusToFirstEditWidget() | ||||
81 | { | ||||
82 | d->classid->identifierLineEdit->setFocus(); | ||||
83 | } |