diff options
| author | David Hallas <[email protected]> | 2018-07-28 17:29:00 +0200 |
|---|---|---|
| committer | David Hallas <[email protected]> | 2018-08-24 12:09:26 +0200 |
| commit | 44a21ea51a055c7429ddee866e35b0a5a21c072b (patch) | |
| tree | 024226885442cdf341a660482efc29b4365dba3f /src/dolphinviewcontainer.h | |
| parent | 79c485a66de7444e87708ae25c5f8a661a89dd21 (diff) | |
Unify window and tab title
Summary:
Previously the title of tabs was a prettyfied version of the URL.
This is inconsistent with the title of the Window and in some cases
for specials URLs kind of misleading. This commit generalizes the
code from DolphinMainWindow so that both the DolphinMainWindow title
and the tab title uses the same function for the title. This also
means that the 'Show Full Path in Title Bar' also applies to the
tab title, and also that searches changes the tab title.
FEATURE: 387851
Test Plan: Open a new tab from the places panel and navigate around.
Reviewers: #dolphin, ngraham, elvisangelaccio, markg
Reviewed By: #dolphin, ngraham, markg
Subscribers: markg, kfm-devel
Tags: #dolphin
Differential Revision: https://phabricator.kde.org/D14442
Diffstat (limited to 'src/dolphinviewcontainer.h')
| -rw-r--r-- | src/dolphinviewcontainer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/dolphinviewcontainer.h b/src/dolphinviewcontainer.h index b5bcc78ad..5d8a34714 100644 --- a/src/dolphinviewcontainer.h +++ b/src/dolphinviewcontainer.h @@ -136,6 +136,13 @@ public: */ void reload(); + /** + * @return Returns a Caption suitable for display to the user. It is + * calculated depending on settings, if a search is active and other + * factors. + */ + QString getCaption() const; + public slots: /** * Sets the current active URL, where all actions are applied. The |
