Commit 526ccd6e authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Debug-- + fix resize column

parent d05787b4
Pipeline #98055 passed with stage
in 13 minutes and 59 seconds
......@@ -43,8 +43,7 @@ QVariant CollectionSwitcherModel::data(const QModelIndex &index, int role) const
void CollectionSwitcherModel::addHistory(const Akonadi::Collection &currentCol, const QString &fullPath)
{
mCollectionsInfo.append({currentCol, fullPath});
qDebug() << " void CollectionSwitcherModel::addHistory(const Akonadi::Collection &currentCol, const QString &fullPath) " << fullPath;
qDebug() << " mCollectionsInfo " << mCollectionsInfo.count();
Q_EMIT dataChanged(createIndex(0, 0), createIndex(mCollectionsInfo.size() - 1, 1), {});
}
const Akonadi::Collection CollectionSwitcherModel::collection(int index)
......
......@@ -28,13 +28,12 @@ CollectionSwitcherTreeView::~CollectionSwitcherTreeView()
int CollectionSwitcherTreeView::sizeHintWidth() const
{
return sizeHintForColumn(0) + sizeHintForColumn(1);
return sizeHintForColumn(0);
}
void CollectionSwitcherTreeView::resizeColumnsToContents()
{
resizeColumnToContents(0);
resizeColumnToContents(1);
}
void CollectionSwitcherTreeView::keyReleaseEvent(QKeyEvent *event)
......
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