Changeset View
Changeset View
Standalone View
Standalone View
plugins/quickopen/tests/quickopentestbase.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | |||||
53 | class PathTestFilter | 53 | class PathTestFilter | ||
54 | : public KDevelop::PathFilter<QString, PathTestFilter> | 54 | : public KDevelop::PathFilter<QString, PathTestFilter> | ||
55 | { | 55 | { | ||
56 | public: | 56 | public: | ||
57 | KDevelop::Path itemPath(const QString& data) const | 57 | KDevelop::Path itemPath(const QString& data) const | ||
58 | { | 58 | { | ||
59 | return KDevelop::Path(data); | 59 | return KDevelop::Path(data); | ||
60 | } | 60 | } | ||
61 | KDevelop::Path itemPrefixPath(const QString& /*data*/) const | ||||
62 | { | ||||
63 | return KDevelop::Path(QStringLiteral("/home/user/project")); | ||||
64 | } | ||||
61 | }; | 65 | }; | ||
62 | 66 | | |||
63 | KDevelop::TestProject* getProjectWithFiles(int files); | 67 | KDevelop::TestProject* getProjectWithFiles(int files); | ||
64 | 68 | | |||
65 | template <class T> | 69 | template <class T> | ||
66 | T* createChild(KDevelop::ProjectFolderItem* parent, const QString& childName) | 70 | T* createChild(KDevelop::ProjectFolderItem* parent, const QString& childName) | ||
67 | { | 71 | { | ||
68 | return new T(childName, parent); | 72 | return new T(childName, parent); | ||
Show All 17 Lines |