Refactor completion menu

- Use new Avatar
- Use required property in delegate
This commit is contained in:
Carl Schwan
2023-07-22 19:55:16 +02:00
parent 8546d76a54
commit 75cd77facb
4 changed files with 55 additions and 40 deletions

View File

@@ -64,10 +64,10 @@ public:
* @brief Defines the model roles.
*/
enum Roles {
Text = Qt::DisplayRole, /**< The main text to show. */
Subtitle, /**< The subtitle text to show. */
Icon, /**< The icon to show. */
ReplacedText, /**< The text to replace the input text with for the completion. */
DisplayNameRole = Qt::DisplayRole, /**< The main text to show. */
SubtitleRole, /**< The subtitle text to show. */
IconNameRole, /**< The icon to show. */
ReplacedTextRole, /**< The text to replace the input text with for the completion. */
};
Q_ENUM(Roles)