X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/78cffd2979a6ed87e044fcb024cf4fdfc5c7cb3d..9df6ef77aadbd2c142bc666d3c998d9ece47f7fe:/src/selectionmode/bottombarcontentscontainer.h diff --git a/src/selectionmode/bottombarcontentscontainer.h b/src/selectionmode/bottombarcontentscontainer.h index b9d7947ae..10e7ba5fd 100644 --- a/src/selectionmode/bottombarcontentscontainer.h +++ b/src/selectionmode/bottombarcontentscontainer.h @@ -1,6 +1,6 @@ /* This file is part of the KDE project - SPDX-FileCopyrightText: 2022 Felix Ernst + SPDX-FileCopyrightText: 2022 Felix Ernst SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ @@ -12,7 +12,7 @@ #include "bottombar.h" #include -#include +#include #include class DolphinContextMenu; @@ -52,7 +52,8 @@ public: return m_contents; }; - inline bool hasSomethingToShow() { + inline bool hasSomethingToShow() + { return contents() != BottomBar::GeneralContents || m_internalContextMenu; } @@ -74,11 +75,11 @@ Q_SIGNALS: /** * When it does not make sense to show any specific contents, this signal is emitted and the receiver hides the bar. - * Later it might sense to show it again e.g. because the user selected items. Then this signal is used to request showing of the bar. + * Later it might make sense to show it again e.g. because the user selected items. Then this signal is used to request showing of the bar. */ void barVisibilityChangeRequested(bool visible); - void leaveSelectionModeRequested(); + void selectionModeLeavingRequested(); private: void addCopyContents(); @@ -144,7 +145,7 @@ private: /// @see updateMainActionButtonText ActionWithWidget m_mainAction = ActionWithWidget(nullptr); /// The button containing all the actions that don't currently fit into the bar. - QPointer m_overflowButton; + QPointer m_overflowButton; /// The actionCollection from which the actions for this bar are retrieved. KActionCollection *m_actionCollection; /// Describes the current contents of the bar.