]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Renames DolphinViewContainer::getCaption to caption
authorDavid Hallas <david@davidhallas.dk>
Tue, 28 Aug 2018 07:50:41 +0000 (09:50 +0200)
committerDavid Hallas <david@davidhallas.dk>
Sun, 2 Sep 2018 09:11:41 +0000 (11:11 +0200)
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

src/dolphinmainwindow.cpp
src/dolphintabwidget.cpp
src/dolphinviewcontainer.cpp
src/dolphinviewcontainer.h

index 23894f3466910f616ecaa28ab78482849d2ec5e3..b603b8cfa5fa324c1753957e0e769c84e2d20370 100644 (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)
index ab2f42c62943b5b78e6ce07d5f444691be289d85..edb7247cc611d2edd556d797643b553128136283 100644 (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("&&"));
index fc3090183bf14076c8b2ad7097857a9c7c894b4e..f747d442ee81e769f3fac28decb21c17a30ca64a 100644 (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()) {
index 5d8a347140983daf3b0d3c171c4fb954941bb591..409aecfcfaf6e0ab063cb2db221eb543164e9d84 100644 (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:
     /**