forked from qt-creator/qt-creator
Git: Support tree argument for Grep
Change-Id: Ic7dfcd8bad98223d68725f1a0c1f103ad8ea4e0f Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com> Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
fcdb286cec
commit
84f2875f6d
@@ -28,10 +28,12 @@
|
||||
|
||||
#include <texteditor/basefilefind.h>
|
||||
|
||||
#include <utils/fileutils.h>
|
||||
#include <QCoreApplication>
|
||||
|
||||
QT_FORWARD_DECLARE_CLASS(QCheckBox)
|
||||
|
||||
namespace Utils { class FancyLineEdit; }
|
||||
|
||||
namespace Git {
|
||||
namespace Internal {
|
||||
|
||||
@@ -43,6 +45,7 @@ public:
|
||||
GitGrep();
|
||||
~GitGrep() override;
|
||||
QString title() const override;
|
||||
QString toolTip() const override;
|
||||
QWidget *widget() const override;
|
||||
bool isEnabled() const override;
|
||||
bool isEnabled(const TextEditor::FileFindParameters ¶meters) const override;
|
||||
@@ -51,9 +54,13 @@ public:
|
||||
void writeSettings(QSettings *settings) const override;
|
||||
QFuture<Utils::FileSearchResultList> executeSearch(
|
||||
const TextEditor::FileFindParameters ¶meters) override;
|
||||
Core::IEditor *openEditor(const Core::SearchResultItem &item,
|
||||
const TextEditor::FileFindParameters ¶meters) override;
|
||||
|
||||
private:
|
||||
QCheckBox *m_widget;
|
||||
QWidget *m_widget;
|
||||
QCheckBox *m_enabledCheckBox;
|
||||
Utils::FancyLineEdit *m_treeLineEdit;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user