Changeset View
Changeset View
Standalone View
Standalone View
libkdegamesprivate/kchatbasemodel.h
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Line(s) | |||||
80 | { | 80 | { | ||
81 | Q_OBJECT | 81 | Q_OBJECT | ||
82 | 82 | | |||
83 | public: | 83 | public: | ||
84 | /** Default constructor */ | 84 | /** Default constructor */ | ||
85 | explicit KChatBaseModel(QObject *parent = nullptr); | 85 | explicit KChatBaseModel(QObject *parent = nullptr); | ||
86 | 86 | | |||
87 | /** Default destructor */ | 87 | /** Default destructor */ | ||
88 | ~KChatBaseModel() Q_DECL_OVERRIDE; | 88 | ~KChatBaseModel() override; | ||
89 | 89 | | |||
90 | /** | 90 | /** | ||
91 | * Reimplementation of the inherited method. | 91 | * Reimplementation of the inherited method. | ||
92 | * @return The current number of messages in the list | 92 | * @return The current number of messages in the list | ||
93 | */ | 93 | */ | ||
94 | int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE; | 94 | int rowCount(const QModelIndex &parent = QModelIndex()) const override; | ||
95 | 95 | | |||
96 | 96 | | |||
97 | /** | 97 | /** | ||
98 | * Reimplementation of the inherited method. | 98 | * Reimplementation of the inherited method. | ||
99 | * @return The KChatBaseMessage at the given index as a QVariant | 99 | * @return The KChatBaseMessage at the given index as a QVariant | ||
100 | */ | 100 | */ | ||
101 | QVariant data(const QModelIndex &index, int role) const Q_DECL_OVERRIDE; | 101 | QVariant data(const QModelIndex &index, int role) const override; | ||
102 | 102 | | |||
103 | /** | 103 | /** | ||
104 | * Set the font that is used for the name part of a message. See also | 104 | * Set the font that is used for the name part of a message. See also | ||
105 | * nameFont and setBothFont | 105 | * nameFont and setBothFont | ||
106 | **/ | 106 | **/ | ||
107 | void setNameFont(const QFont& font); | 107 | void setNameFont(const QFont& font); | ||
108 | 108 | | |||
109 | /** | 109 | /** | ||
▲ Show 20 Lines • Show All 127 Lines • Show Last 20 Lines |