diff --git a/src/plugins/find/searchresultwindow.cpp b/src/plugins/find/searchresultwindow.cpp index 6fcb8aefa9893d466a1c214046fe3d753eae90f6..36277d9876ffdfe16299fbb98c64093652af1378 100644 --- a/src/plugins/find/searchresultwindow.cpp +++ b/src/plugins/find/searchresultwindow.cpp @@ -46,6 +46,17 @@ using namespace Find::Internal; static const QString SETTINGSKEYSECTIONNAME("SearchResults"); static const QString SETTINGSKEYEXPANDRESULTS("ExpandResults"); + +void ResultWindowItem::setData(const QVariant &data) +{ + m_data = data; +} + +QVariant ResultWindowItem::data() const +{ + return m_data; +} + SearchResultWindow::SearchResultWindow() : m_isShowingReplaceUI(false) { diff --git a/src/plugins/find/searchresultwindow.h b/src/plugins/find/searchresultwindow.h index 1cc6912ef715f434631c5c4d179919aeaf8c7e13..7f92ef0237d5b81ac4793a0ead6c001831df75c2 100644 --- a/src/plugins/find/searchresultwindow.h +++ b/src/plugins/find/searchresultwindow.h @@ -50,9 +50,16 @@ class FIND_EXPORT ResultWindowItem : public QObject { Q_OBJECT +public: + void setData(const QVariant &data); + QVariant data() const; + signals: void activated(const QString &fileName, int lineNumber, int column); +private: + QVariant m_data; + friend class SearchResultWindow; };