Changeset View
Changeset View
Standalone View
Standalone View
tests/units/widgets/applicationcomponentstest.cpp
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | |||||
45 | #include "widgets/editorview.h" | 45 | #include "widgets/editorview.h" | ||
46 | #include "widgets/filterwidget.h" | 46 | #include "widgets/filterwidget.h" | ||
47 | #include "widgets/pageview.h" | 47 | #include "widgets/pageview.h" | ||
48 | #include "widgets/quickselectdialog.h" | 48 | #include "widgets/quickselectdialog.h" | ||
49 | 49 | | |||
50 | 50 | | |||
51 | class CustomModelStub : public QStandardItemModel | 51 | class CustomModelStub : public QStandardItemModel | ||
52 | { | 52 | { | ||
53 | Q_OBJECT | ||||
54 | | ||||
53 | QMimeData *mimeData(const QModelIndexList &indexes) const | 55 | QMimeData *mimeData(const QModelIndexList &indexes) const | ||
54 | { | 56 | { | ||
55 | QStringList dataString; | 57 | QStringList dataString; | ||
56 | std::transform(indexes.begin(), indexes.end(), | 58 | std::transform(indexes.begin(), indexes.end(), | ||
57 | std::back_inserter(dataString), | 59 | std::back_inserter(dataString), | ||
58 | [] (const QModelIndex &index) { | 60 | [] (const QModelIndex &index) { | ||
59 | return index.data().toString(); | 61 | return index.data().toString(); | ||
60 | }); | 62 | }); | ||
▲ Show 20 Lines • Show All 614 Lines • Show Last 20 Lines |