┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/statusbar/statusbarspaceinfo.h
diff options
context:
space:
mode:
authorFelix Ernst <[email protected]>2025-04-19 14:32:25 +0200
committerFelix Ernst <[email protected]>2025-04-19 14:32:25 +0200
commitb889a446bfe851a7f49821d469c5f3041b6e5774 (patch)
treee14a8ddec8efc56c27fd11cbb46f72d9b325784b /src/statusbar/statusbarspaceinfo.h
parent81627bbf9a8eace35f87b6bb09d25afef5ea8421 (diff)
Add Filelight menu to Tools menu
The menu for installing and launching Filelight was only available through the status bar free space info button until now. By default we do no longer show the free space info button because the status bar has been changed to show less information by default. This commit adds the "Manage Disk Space Usage" menu to the "Tools" menu in the menu bar so it is more discoverable for users.
Diffstat (limited to 'src/statusbar/statusbarspaceinfo.h')
-rw-r--r--src/statusbar/statusbarspaceinfo.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/statusbar/statusbarspaceinfo.h b/src/statusbar/statusbarspaceinfo.h
index 7a1012cf0..c384c3b2f 100644
--- a/src/statusbar/statusbarspaceinfo.h
+++ b/src/statusbar/statusbarspaceinfo.h
@@ -63,25 +63,10 @@ protected:
void hideEvent(QHideEvent *event) override;
QSize minimumSizeHint() const override;
- void updateMenu();
-
private Q_SLOTS:
- /**
- * Asynchronously starts a Filelight installation using DolphinPackageInstaller. @see DolphinPackageInstaller.
- * Installation success or failure is reported through showMessage(). @see StatusBarSpaceInfo::showMessage().
- * Installation progress is reported through showInstallationProgress(). @see StatusBarSpaceInfo::showInstallationProgress().
- */
- void slotInstallFilelightButtonClicked();
-
void slotValuesChanged();
private:
- /**
- * Creates a new QWidgetAction that contains a UI to install Filelight.
- * m_installFilelightWidgetAction is initialised after calling this method once.
- */
- void initialiseInstallFilelightWidgetAction();
-
// The following three methods are only for private use.
using QWidget::hide; // Use StatusBarSpaceInfo::setShown() instead.
using QWidget::setVisible; // Use StatusBarSpaceInfo::setShown() instead.
@@ -91,9 +76,6 @@ private:
QScopedPointer<SpaceInfoObserver> m_observer;
KCapacityBar *m_capacityBar;
QToolButton *m_textInfoButton;
- QMenu *m_buttonMenu;
- /** An action containing a UI to install Filelight. */
- QWidgetAction *m_installFilelightWidgetAction;
QUrl m_url;
/** Whether m_observer has already retrieved space information for the current url. */
bool m_hasSpaceInfo;