diff options
| author | Kai Uwe Broulik <[email protected]> | 2026-03-20 20:32:39 +0100 |
|---|---|---|
| committer | Kai Uwe Broulik <[email protected]> | 2026-04-14 20:34:30 +0200 |
| commit | d5903bd810ee0447e6201a1cc36dcf186fc9c37d (patch) | |
| tree | 4c40677a7c1d40c50a7466343a3630c00c8427a3 /src/dolphinnavigatorswidgetaction.h | |
| parent | 902a47a468ca6a315d577c73cbb51f6aba94d1ac (diff) | |
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.
Diffstat (limited to 'src/dolphinnavigatorswidgetaction.h')
| -rw-r--r-- | src/dolphinnavigatorswidgetaction.h | 14 |
1 files changed, 14 insertions, 0 deletions
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 |
