mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-25 23:39:45 -05:00
parent
e07eb2c82c
commit
12ee4a9446
@ -33,6 +33,7 @@ GroupView::GroupView(Database* db, QWidget* parent)
|
|||||||
QTreeView::setModel(m_model);
|
QTreeView::setModel(m_model);
|
||||||
setHeaderHidden(true);
|
setHeaderHidden(true);
|
||||||
setUniformRowHeights(true);
|
setUniformRowHeights(true);
|
||||||
|
setTextElideMode(Qt::ElideNone);
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
connect(this, SIGNAL(expanded(QModelIndex)), SLOT(expandedChanged(QModelIndex)));
|
connect(this, SIGNAL(expanded(QModelIndex)), SLOT(expandedChanged(QModelIndex)));
|
||||||
@ -92,6 +93,7 @@ void GroupView::contextMenuShortcutPressed()
|
|||||||
void GroupView::changeDatabase(const QSharedPointer<Database>& newDb)
|
void GroupView::changeDatabase(const QSharedPointer<Database>& newDb)
|
||||||
{
|
{
|
||||||
m_model->changeDatabase(newDb.data());
|
m_model->changeDatabase(newDb.data());
|
||||||
|
setColumnWidth(0, sizeHintForColumn(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
void GroupView::dragMoveEvent(QDragMoveEvent* event)
|
void GroupView::dragMoveEvent(QDragMoveEvent* event)
|
||||||
@ -134,6 +136,7 @@ void GroupView::expandedChanged(const QModelIndex& index)
|
|||||||
|
|
||||||
Group* group = m_model->groupFromIndex(index);
|
Group* group = m_model->groupFromIndex(index);
|
||||||
group->setExpanded(isExpanded(index));
|
group->setExpanded(isExpanded(index));
|
||||||
|
setColumnWidth(0, sizeHintForColumn(0));
|
||||||
}
|
}
|
||||||
|
|
||||||
void GroupView::recInitExpanded(Group* group)
|
void GroupView::recInitExpanded(Group* group)
|
||||||
|
Loading…
Reference in New Issue
Block a user