]> cloud.milkyroute.net Git - dolphin.git/commitdiff
changed all calls to "title(), setTitle()" to "customLabel(), setCustomLabel()"
authorambar chakravartty <amch9605@gmail.com>
Sun, 2 Feb 2025 05:06:06 +0000 (10:36 +0530)
committerMéven Car <meven@kde.org>
Thu, 6 Feb 2025 14:32:35 +0000 (14:32 +0000)
src/dolphintabpage.cpp
src/dolphintabwidget.cpp

index 7199bcbf3f9b96d3be236d02943ab6b09872466d..dbc55e7d62cdd2272594cb2e739c0e7c66562da7 100644 (file)
@@ -13,6 +13,7 @@
 #include <QGridLayout>
 #include <QStyle>
 #include <QVariantAnimation>
+
 DolphinTabPage::DolphinTabPage(const QUrl &primaryUrl, const QUrl &secondaryUrl, QWidget *parent)
     : QWidget(parent)
     , m_expandingContainer{nullptr}
@@ -274,8 +275,8 @@ QByteArray DolphinTabPage::saveState() const
     stream << m_primaryViewActive;
     stream << m_splitter->saveState();
 
-    if (!m_title.isEmpty()) {
-        stream << m_title;
+    if (!m_customLabel.isEmpty()) {
+        stream << m_customLabel;
     }
 
     return state;
@@ -335,7 +336,7 @@ void DolphinTabPage::restoreState(const QByteArray &state)
     if (!stream.atEnd()) {
         QString tabTitle;
         stream >> tabTitle;
-        setTitle(tabTitle);
+        setCustomLabel(tabTitle);
     }
 }
 
@@ -351,14 +352,14 @@ void DolphinTabPage::setActive(bool active)
     activeViewContainer()->setActive(active);
 }
 
-void DolphinTabPage::setTitle(const QString &name)
+void DolphinTabPage::setCustomLabel(const QString &label)
 {
-    m_title = name;
+    m_customLabel = label;
 }
 
-QString DolphinTabPage::title() const
+QString DolphinTabPage::customLabel() const
 {
-    return m_title;
+    return m_customLabel;
 }
 
 void DolphinTabPage::slotAnimationFinished()
index c2fae5170f926f3d0fcc8cffa71d031f7dbac629..be674994d90b3514a1e2378ae464a3b1ea94d6d9 100644 (file)
@@ -124,8 +124,8 @@ void DolphinTabWidget::updateTabName(int index)
 {
     Q_ASSERT(index >= 0);
 
-    if (!tabPageAt(index)->title().isEmpty()) {
-        QString name = tabPageAt(index)->title();
+    if (!tabPageAt(index)->customLabel().isEmpty()) {
+        QString name = tabPageAt(index)->customLabel();
         tabBar()->setTabText(index, name);
         return;
     }
@@ -483,7 +483,7 @@ void DolphinTabWidget::currentTabChanged(int index)
 void DolphinTabWidget::renameTab(int index, const QString &name)
 {
     if (!name.isEmpty()) {
-        tabPageAt(index)->setTitle(name);
+        tabPageAt(index)->setCustomLabel(name);
     }
 
     updateTabName(index);