From f6e69162630fbefbe582e85854e60a409cbc3ef2 Mon Sep 17 00:00:00 2001 From: Cranken Date: Sun, 30 Sep 2018 14:31:00 +0200 Subject: [PATCH] Fixed variable naming style. --- src/widgets/helper/NotebookTab.cpp | 4 ++-- src/widgets/helper/NotebookTab.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/widgets/helper/NotebookTab.cpp b/src/widgets/helper/NotebookTab.cpp index 7d63f36ff..603fbf53b 100644 --- a/src/widgets/helper/NotebookTab.cpp +++ b/src/widgets/helper/NotebookTab.cpp @@ -68,7 +68,7 @@ NotebookTab::NotebookTab(Notebook *notebook) highlightNewMessagesAction->setChecked(true); QObject::connect( highlightNewMessagesAction, &QAction::triggered, - [this](bool checked) { this->highlightEnabled = checked; }); + [this](bool checked) { this->highlightEnabled_ = checked; }); this->menu_.addAction(highlightNewMessagesAction); } @@ -170,7 +170,7 @@ void NotebookTab::setSelected(bool value) void NotebookTab::setHighlightState(HighlightState newHighlightStyle) { - if (this->isSelected() || !this->highlightEnabled) { + if (this->isSelected() || !this->highlightEnabled_) { return; } if (this->highlightState_ != HighlightState::Highlighted && diff --git a/src/widgets/helper/NotebookTab.hpp b/src/widgets/helper/NotebookTab.hpp index 59c4b1bcd..25e0bff47 100644 --- a/src/widgets/helper/NotebookTab.hpp +++ b/src/widgets/helper/NotebookTab.hpp @@ -82,7 +82,7 @@ private: bool mouseDownX_ = false; HighlightState highlightState_ = HighlightState::None; - bool highlightEnabled = true; + bool highlightEnabled_ = true; QMenu menu_;