┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Hallas <[email protected]>2018-08-28 09:50:41 +0200
committerDavid Hallas <[email protected]>2018-09-02 11:11:41 +0200
commitaaaaea8e28f8ec99605de0af7118c67d5a30c772 (patch)
treebcc2caf56a2348eb99253e42ed31bdb331c792f3 /src
parent5a9567730d37126a66d5723fd22c215f184d1f7f (diff)
Renames DolphinViewContainer::getCaption to caption
Summary: This commit renames the DolphinViewContainer::getCaption to simply caption, this was a review comment that I failed to fix in a previous commit. Test Plan: None Reviewers: elvisangelaccio Reviewed By: elvisangelaccio Subscribers: kfm-devel Tags: #dolphin Differential Revision: https://phabricator.kde.org/D15114
Diffstat (limited to 'src')
-rw-r--r--src/dolphinmainwindow.cpp2
-rw-r--r--src/dolphintabwidget.cpp2
-rw-r--r--src/dolphinviewcontainer.cpp2
-rw-r--r--src/dolphinviewcontainer.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp
index 23894f346..b603b8cfa 100644
--- a/src/dolphinmainwindow.cpp
+++ b/src/dolphinmainwindow.cpp
@@ -1001,7 +1001,7 @@ void DolphinMainWindow::tabCountChanged(int count)
void DolphinMainWindow::updateWindowTitle()
{
- setWindowTitle(m_activeViewContainer->getCaption());
+ setWindowTitle(m_activeViewContainer->caption());
}
void DolphinMainWindow::slotStorageTearDownFromPlacesRequested(const QString& mountPath)
diff --git a/src/dolphintabwidget.cpp b/src/dolphintabwidget.cpp
index ab2f42c62..edb7247cc 100644
--- a/src/dolphintabwidget.cpp
+++ b/src/dolphintabwidget.cpp
@@ -359,7 +359,7 @@ QString DolphinTabWidget::tabName(DolphinTabPage* tabPage) const
if (!tabPage) {
return QString();
}
- QString name = tabPage->activeViewContainer()->getCaption();
+ QString name = tabPage->activeViewContainer()->caption();
// Make sure that a '&' inside the directory name is displayed correctly
// and not misinterpreted as a keyboard shortcut in QTabBar::setTabText()
return name.replace('&', QLatin1String("&&"));
diff --git a/src/dolphinviewcontainer.cpp b/src/dolphinviewcontainer.cpp
index fc3090183..f747d442e 100644
--- a/src/dolphinviewcontainer.cpp
+++ b/src/dolphinviewcontainer.cpp
@@ -410,7 +410,7 @@ void DolphinViewContainer::reload()
m_messageWidget->hide();
}
-QString DolphinViewContainer::getCaption() const
+QString DolphinViewContainer::caption() const
{
if (GeneralSettings::showFullPathInTitlebar()) {
if (!url().isLocalFile()) {
diff --git a/src/dolphinviewcontainer.h b/src/dolphinviewcontainer.h
index 5d8a34714..409aecfcf 100644
--- a/src/dolphinviewcontainer.h
+++ b/src/dolphinviewcontainer.h
@@ -141,7 +141,7 @@ public:
* calculated depending on settings, if a search is active and other
* factors.
*/
- QString getCaption() const;
+ QString caption() const;
public slots:
/**