]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/selectionmode/topbar.h
Improve code quality
[dolphin.git] / src / selectionmode / topbar.h
index e0cd34935dd5a8e32fda14ac92e72cb9b77a5926..10a65cba07bd92bdb1fccfc7a534ecb36a020ffe 100644 (file)
@@ -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();