stream << m_primaryViewActive;
stream << m_splitter->saveState();
+ if (!m_customLabel.isEmpty()) {
+ stream << m_customLabel;
+ }
+
return state;
}
QByteArray splitterState;
stream >> splitterState;
m_splitter->restoreState(splitterState);
+
+ if (!stream.atEnd()) {
+ QString tabTitle;
+ stream >> tabTitle;
+ setCustomLabel(tabTitle);
+ }
}
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()
+QString DolphinTabPage::customLabel() const
{
- return m_title;
+ return m_customLabel;
}
void DolphinTabPage::slotAnimationFinished()