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
This commit is contained in:
David Hallas 2018-08-28 09:50:41 +02:00
parent 5a9567730d
commit aaaaea8e28
4 changed files with 4 additions and 4 deletions

View file

@ -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)

View file

@ -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("&&"));

View file

@ -410,7 +410,7 @@ void DolphinViewContainer::reload()
m_messageWidget->hide();
}
QString DolphinViewContainer::getCaption() const
QString DolphinViewContainer::caption() const
{
if (GeneralSettings::showFullPathInTitlebar()) {
if (!url().isLocalFile()) {

View file

@ -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:
/**