forked from qt-creator/qt-creator
QmlJSEditor: Adding and exporting helper function for usages
This patch adds and exports findUsageOfType() which can be used in e.g. the Qt Quick Desigener. Change-Id: I6e87df746bdb377485da052823f86b89d638ac2f Reviewed-by: Fawzi Mohamed <fawzi.mohamed@theqtcompany.com>
This commit is contained in:
committed by
Thomas Hartmann
parent
38609296d1
commit
ed49052f6a
@@ -31,6 +31,8 @@
|
||||
#ifndef QMLJSFINDREFERENCES_H
|
||||
#define QMLJSFINDREFERENCES_H
|
||||
|
||||
#include "qmljseditor_global.h"
|
||||
|
||||
#include <QMutex>
|
||||
#include <QObject>
|
||||
#include <QFuture>
|
||||
@@ -48,7 +50,7 @@ class SearchResult;
|
||||
|
||||
namespace QmlJSEditor {
|
||||
|
||||
class FindReferences: public QObject
|
||||
class QMLJSEDITOR_EXPORT FindReferences: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
@@ -81,6 +83,8 @@ public:
|
||||
void renameUsages(const QString &fileName, quint32 offset,
|
||||
const QString &replacement = QString());
|
||||
|
||||
static QList<Usage> findUsageOfType(const QString &fileName, const QString typeName);
|
||||
|
||||
private Q_SLOTS:
|
||||
void displayResults(int first, int last);
|
||||
void searchFinished();
|
||||
|
||||
Reference in New Issue
Block a user