Changeset View
Changeset View
Standalone View
Standalone View
src/kcharselect_p.h
Show First 20 Lines • Show All 166 Lines • ▼ Show 20 Line(s) | 160 | { | |||
---|---|---|---|---|---|
167 | return mimeData; | 167 | return mimeData; | ||
168 | } | 168 | } | ||
169 | Qt::DropActions supportedDropActions() const override | 169 | Qt::DropActions supportedDropActions() const override | ||
170 | { | 170 | { | ||
171 | return Qt::CopyAction; | 171 | return Qt::CopyAction; | ||
172 | } | 172 | } | ||
173 | QStringList mimeTypes() const override | 173 | QStringList mimeTypes() const override | ||
174 | { | 174 | { | ||
175 | QStringList types; | 175 | return {QStringLiteral("text/plain")}; | ||
176 | types << QStringLiteral("text/plain"); | | |||
177 | return types; | | |||
178 | } | 176 | } | ||
179 | bool dropMimeData(const QMimeData *data, Qt::DropAction action, | 177 | bool dropMimeData(const QMimeData *data, Qt::DropAction action, | ||
180 | int row, int column, const QModelIndex &parent) override; | 178 | int row, int column, const QModelIndex &parent) override; | ||
181 | 179 | | |||
182 | void setColumnCount(int columns); | 180 | void setColumnCount(int columns); | ||
183 | 181 | | |||
184 | QVector<uint> chars() const { return m_chars; } | 182 | QVector<uint> chars() const { return m_chars; } | ||
185 | private: | 183 | private: | ||
Show All 9 Lines |