From 8038e7faba7d337e36a8b616d39004c7e20c1e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Wed, 26 Apr 2017 15:43:48 +0200 Subject: [PATCH] [apps] Fix typo: left->right Change-Id: I23264def129f59bfcfe991088fbfaf2c925b23b0 --- apps/title_bar_view.cpp | 2 +- apps/title_bar_view.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/title_bar_view.cpp b/apps/title_bar_view.cpp index b22c32571..0c2902b27 100644 --- a/apps/title_bar_view.cpp +++ b/apps/title_bar_view.cpp @@ -60,7 +60,7 @@ void TitleBarView::layoutSubviews() { m_titleView.setFrame(KDRect(0, 2, bounds().width(), bounds().height()-2)); m_preferenceView.setFrame(KDRect(k_preferenceMargin, 0, m_preferenceView.minimalSizeForOptimalDisplay().width(), bounds().height())); KDSize batterySize = m_batteryView.minimalSizeForOptimalDisplay(); - m_batteryView.setFrame(KDRect(bounds().width() - batterySize.width() - k_batteryLeftMargin, (bounds().height()- batterySize.height())/2, batterySize)); + m_batteryView.setFrame(KDRect(bounds().width() - batterySize.width() - k_batteryRightMargin, (bounds().height()- batterySize.height())/2, batterySize)); if (GlobalPreferences::sharedGlobalPreferences()->examMode() == GlobalPreferences::ExamMode::Activate) { m_examModeIconView.setFrame(KDRect(k_examIconMargin, (bounds().height() - k_examIconHeight)/2, k_examIconWidth, k_examIconHeight)); } else { diff --git a/apps/title_bar_view.h b/apps/title_bar_view.h index 33ec2fde1..538266dea 100644 --- a/apps/title_bar_view.h +++ b/apps/title_bar_view.h @@ -14,7 +14,7 @@ public: bool setIsCharging(bool isCharging); void refreshPreferences(); private: - constexpr static KDCoordinate k_batteryLeftMargin = 5; + constexpr static KDCoordinate k_batteryRightMargin = 5; constexpr static KDCoordinate k_preferenceMargin = 3; constexpr static KDCoordinate k_examIconWidth = 18; constexpr static KDCoordinate k_examIconHeight = 9;