]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/selectionmode/topbar.h
Add clang-format and format code as in Frameworks
[dolphin.git] / src / selectionmode / topbar.h
index e0cd34935dd5a8e32fda14ac92e72cb9b77a5926..820af23c67a6bf40bbc07a9c157c69d975b29b80 100644 (file)
@@ -12,7 +12,6 @@
 
 #include <QPointer>
 #include <QPropertyAnimation>
-#include <QStyle>
 #include <QWidget>
 
 class QHideEvent;
@@ -40,15 +39,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();
+    void selectionModeLeavingRequested();
 
 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();