Commit ca9fe00c authored by con's avatar con
Browse files

Add data field to result window item.

parent 0c9cf85b
......@@ -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)
{
......
......@@ -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;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment