diff options
Diffstat (limited to 'src/dolphinnavigatorswidgetaction.h')
| -rw-r--r-- | src/dolphinnavigatorswidgetaction.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/src/dolphinnavigatorswidgetaction.h b/src/dolphinnavigatorswidgetaction.h index 8046ce2dc..f343e6a1c 100644 --- a/src/dolphinnavigatorswidgetaction.h +++ b/src/dolphinnavigatorswidgetaction.h @@ -38,14 +38,6 @@ class DolphinNavigatorsWidgetAction : public QWidgetAction { Q_OBJECT - /** - * In Left-to-right languages the Primary side will be the left one. - */ - enum Side { - Primary, - Secondary - }; - public: DolphinNavigatorsWidgetAction(QWidget *parent = nullptr); @@ -95,7 +87,7 @@ public: */ void setSecondaryNavigatorVisible(bool visible); -protected: +private: /** * Adjusts the width of the spacings used to align the UrlNavigators with ViewContainers. * This can only work nicely if up-to-date geometry of ViewContainers is cached so @@ -104,6 +96,13 @@ protected: void adjustSpacing(); /** + * In Left-to-right languages the Primary side will be the left one. + */ + enum Side { + Primary, + Secondary + }; + /** * Used to create the navigatorWidgets for both sides of the QSplitter. */ QWidget *createNavigatorWidget(Side side) const; @@ -134,6 +133,11 @@ protected: QWidget *spacing(Side side, Position position) const; /** + * Sets this action's text depending on the amount of visible UrlNavigators. + */ + void updateText(); + + /** * The defaultWidget() of this QWidgetAction. */ std::unique_ptr<QSplitter> m_splitter; |
