From 78cffd2979a6ed87e044fcb024cf4fdfc5c7cb3d Mon Sep 17 00:00:00 2001 From: Felix Ernst Date: Mon, 25 Apr 2022 12:52:05 +0200 Subject: Improve code quality --- src/selectionmode/topbar.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/selectionmode/topbar.h') diff --git a/src/selectionmode/topbar.h b/src/selectionmode/topbar.h index e0cd34935..10a65cba0 100644 --- a/src/selectionmode/topbar.h +++ b/src/selectionmode/topbar.h @@ -40,15 +40,17 @@ public: * @see QWidget::setVisible() */ void setVisible(bool visible, Animated animated); - using QWidget::setVisible; // Makes sure that the setVisible() declaration above doesn't hide the one from QWidget. Q_SIGNALS: void leaveSelectionModeRequested(); protected: - void resizeEvent(QResizeEvent */* resizeEvent */) override; + /** Calls updateLabelString() */ + void resizeEvent(QResizeEvent *resizeEvent) override; private: + using QWidget::setVisible; // Makes sure that the setVisible() declaration above doesn't hide the one from QWidget so we can still use it privately. + /** Decides whether the m_fullLabelString or m_shortLabelString should be used based on available width. */ void updateLabelString(); -- cgit v1.3