forked from qt-creator/qt-creator
Git: Add grep and pickaxe filters
Fixes: QTCREATORBUG-22512 Change-Id: I98eed9a7f9da15e163804a0fd81713149a06c5b0 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: André Hartmann <aha_1980@gmx.de>
This commit is contained in:
committed by
Orgad Shaneh
parent
1ebb72b47f
commit
1b2aa56f15
@@ -29,6 +29,8 @@
|
||||
|
||||
#include <QRegExp>
|
||||
|
||||
namespace Utils { class FancyLineEdit; }
|
||||
|
||||
namespace Git {
|
||||
namespace Internal {
|
||||
|
||||
@@ -40,6 +42,10 @@ public:
|
||||
GitEditorWidget();
|
||||
|
||||
void setPlainText(const QString &text) override;
|
||||
void setGrepLineEdit(Utils::FancyLineEdit *lineEdit);
|
||||
void setPickaxeLineEdit(Utils::FancyLineEdit *lineEdit);
|
||||
QString grepValue() const;
|
||||
QString pickaxeValue() const;
|
||||
|
||||
private:
|
||||
void applyDiffChunk(const VcsBase::DiffChunk& chunk, bool revert);
|
||||
@@ -59,9 +65,13 @@ private:
|
||||
bool supportChangeLinks() const override;
|
||||
QString fileNameForLine(int line) const override;
|
||||
QString sourceWorkingDirectory() const;
|
||||
void refreshOnLineEdit(Utils::FancyLineEdit *lineEdit);
|
||||
void lineEditChanged();
|
||||
|
||||
mutable QRegExp m_changeNumberPattern;
|
||||
QString m_currentChange;
|
||||
Utils::FancyLineEdit *m_grepLineEdit = nullptr;
|
||||
Utils::FancyLineEdit *m_pickaxeLineEdit = nullptr;
|
||||
};
|
||||
|
||||
} // namespace Git
|
||||
|
||||
Reference in New Issue
Block a user