Mercurial: Move plugin pimpl to .cpp

And remove a couple of singleton accesses and indirections.

Change-Id: Ib54a0e5c580b5354d2b700de02034cce506d8017
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
hjk
2020-01-29 12:50:48 +01:00
parent 0f67026794
commit 0dadf19c91
9 changed files with 153 additions and 205 deletions

View File

@@ -32,11 +32,13 @@
namespace Mercurial {
namespace Internal {
class MercurialClient;
class MercurialEditorWidget : public VcsBase::VcsBaseEditorWidget
{
Q_OBJECT
public:
MercurialEditorWidget();
explicit MercurialEditorWidget(MercurialClient *client);
private:
QSet<QString> annotationChanges() const override;
@@ -50,6 +52,8 @@ private:
mutable QRegExp exactIdentifier40;
mutable QRegExp changesetIdentifier12;
const QRegExp changesetIdentifier40;
MercurialClient *m_client;
};
} // namespace Internal