From 39a419c80193dc02cb51405640b3a4553330ab40 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Thu, 8 Jun 2023 12:41:27 +0200 Subject: [PATCH] DiffEditor: Move some methods into protected section They are used only in subclasses. Task-number: QTCREATORBUG-23242 Change-Id: I0aa037c7499a9a552e351fbd36885ce9b736656b Reviewed-by: Orgad Shaneh Reviewed-by: --- src/plugins/diffeditor/diffeditorcontroller.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/plugins/diffeditor/diffeditorcontroller.h b/src/plugins/diffeditor/diffeditorcontroller.h index 1f791b2dcb3..beebfb987c2 100644 --- a/src/plugins/diffeditor/diffeditorcontroller.h +++ b/src/plugins/diffeditor/diffeditorcontroller.h @@ -30,12 +30,9 @@ public: explicit DiffEditorController(Core::IDocument *document); void requestReload(); - bool isReloading() const; Utils::FilePath workingDirectory() const; void setWorkingDirectory(const Utils::FilePath &directory); - int contextLineCount() const; - bool ignoreWhitespace() const; enum PatchOption { NoOption = 0, @@ -60,6 +57,10 @@ signals: const ChunkSelection &selection); protected: + bool isReloading() const; + int contextLineCount() const; + bool ignoreWhitespace() const; + // Core functions: void setReloadRecipe(const Tasking::Group &recipe) { m_reloadRecipe = recipe; } void setDiffFiles(const QList &diffFileList);