X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/8e55f2c2409fd6ca9ebc66a6568f4d3bcbef7576..38c34eeca:/src/selectionmode/topbar.h diff --git a/src/selectionmode/topbar.h b/src/selectionmode/topbar.h index e0cd34935..820af23c6 100644 --- a/src/selectionmode/topbar.h +++ b/src/selectionmode/topbar.h @@ -12,7 +12,6 @@ #include #include -#include #include 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();