Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit e5b25cbd authored by Laurent Montel's avatar Laurent Montel 😁

Fix Bug 384254 - window title not updated when switching tab

FIXED-IN: 5.7.0
BUG: 384254
parent 9abd645e
cmake_minimum_required(VERSION 3.0)
set(PIM_VERSION "5.6.46")
set(PIM_VERSION "5.6.47")
if (POLICY CMP0053)
cmake_policy(SET CMP0053 NEW)
......
......@@ -1093,6 +1093,12 @@ bool Widget::selectionEmpty() const
return d->mView->selectionEmpty();
}
Akonadi::Collection Widget::currentFolder() const
{
return d->mCurrentFolder;
}
void Widget::setCurrentFolder(const Akonadi::Collection &collection)
{
d->mCurrentFolder = collection;
......
......@@ -128,6 +128,7 @@ public:
* Sets the current folder.
*/
void setCurrentFolder(const Akonadi::Collection &collection);
Akonadi::Collection currentFolder() const;
void saveCurrentSelection();
......
......@@ -713,6 +713,15 @@ MessageList::StorageModel *Pane::createStorageModel(QAbstractItemModel *model, Q
return new MessageList::StorageModel(model, selectionModel, parent);
}
Akonadi::Collection Pane::currentFolder() const
{
Widget *w = static_cast<Widget *>(currentWidget());
if (w) {
return w->currentCollection();
}
return {};
}
void Pane::setCurrentFolder(const Akonadi::Collection &collection, bool, Core::PreSelectionMode preSelectionMode, const QString &overrideLabel)
{
d->mPreSelectionMode = preSelectionMode;
......
......@@ -382,6 +382,9 @@ public:
void populateStatusFilterCombo();
Core::QuickSearchLine::SearchOptions currentOptions() const;
Akonadi::Collection currentFolder() const;
public Q_SLOTS:
/**
* Selects all the items in the current folder.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment