From d5903bd810ee0447e6201a1cc36dcf186fc9c37d Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Fri, 20 Mar 2026 20:32:39 +0100 Subject: dolphinnavigatorswidgetaction: Add "Open KDE Connect" button When browsing kdeconnect scheme, offer to open the KDE Connect app to configure the devices. On the overview, the button just opens the app. When listing storage on a device, it opens the app directly with the given device. --- src/dolphinnavigatorswidgetaction.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/dolphinnavigatorswidgetaction.h') diff --git a/src/dolphinnavigatorswidgetaction.h b/src/dolphinnavigatorswidgetaction.h index c9ce4ece2..8395f0b91 100644 --- a/src/dolphinnavigatorswidgetaction.h +++ b/src/dolphinnavigatorswidgetaction.h @@ -145,6 +145,20 @@ private: */ QPushButton *newNetworkFolderButton(const DolphinUrlNavigator *urlNavigator, QWidget *parent) const; + /** + * Used to retrieve the kdeConnectButtons for the navigatorWidgets on + * both sides. + */ + QPushButton *kdeConnectButton(Side side); + + /** + * Creates a new add "Open KDE Connect" button. + * @param urlNavigator Only when this UrlNavigator shows a "kdeconnect" URL + * will the button be visible. + * @param parent The object that should be the button's parent. + */ + QPushButton *newKdeConnectButton(const DolphinUrlNavigator *urlNavigator, QWidget *parent) const; + enum Position { Leading, Trailing }; /** * Used to retrieve both the leading and trailing spacing for the navigatorWidgets -- cgit v1.3