Changeset View
Changeset View
Standalone View
Standalone View
src/kitemviews/private/kitemlistroleeditor.h
Context not available. | |||||
24 | 24 | | |||
---|---|---|---|---|---|
25 | #include <KTextEdit> | 25 | #include <KTextEdit> | ||
26 | 26 | | |||
27 | struct EditResult | ||||
28 | { | ||||
29 | QString newName; | ||||
30 | bool editNext; | ||||
31 | }; | ||||
32 | Q_DECLARE_METATYPE(EditResult) | ||||
33 | | ||||
27 | /** | 34 | /** | ||
28 | * @brief Editor for renaming roles of a KItemListWidget. | 35 | * @brief Editor for renaming roles of a KItemListWidget. | ||
29 | * | 36 | * | ||
30 | * Provides signals when the editing got cancelled (e.g. by | 37 | * Provides signals when the editing got cancelled (e.g. by | ||
31 | * pressing Escape or when losing the focus) or when the editing | 38 | * pressing Escape or when losing the focus) or when the editing | ||
32 | * got finished (e.g. by pressing Enter or Return). | 39 | * got finished (e.g. by pressing Enter, Tab or Return). | ||
33 | * | 40 | * | ||
34 | * The size automatically gets increased if the text does not fit. | 41 | * The size automatically gets increased if the text does not fit. | ||
35 | */ | 42 | */ | ||
Context not available. | |||||
66 | * Emits the signal roleEditingFinished if m_blockFinishedSignal | 73 | * Emits the signal roleEditingFinished if m_blockFinishedSignal | ||
67 | * is false. | 74 | * is false. | ||
68 | */ | 75 | */ | ||
69 | void emitRoleEditingFinished(); | 76 | void emitRoleEditingFinished(bool editNext = false); | ||
70 | 77 | | |||
71 | private: | 78 | private: | ||
72 | QByteArray m_role; | 79 | QByteArray m_role; | ||
Context not available. |