mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-05 16:22:36 -08:00
add preview panel for entries and groups
This commit is contained in:
17 files changed
+930
-1
No files matched your search
@@ -41,6 +41,8 @@ GroupView::GroupView(Database* db, QWidget* parent)
|
||||
|
||||
connect(selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)), SLOT(emitGroupChanged()));
|
||||
|
||||
connect(this, SIGNAL(clicked(QModelIndex)), SLOT(emitGroupPressed(QModelIndex)));
|
||||
|
||||
modelReset();
|
||||
|
||||
setDragEnabled(true);
|
||||
@@ -126,6 +128,11 @@ void GroupView::emitGroupChanged()
|
||||
emit groupChanged(currentGroup());
|
||||
}
|
||||
|
||||
void GroupView::emitGroupPressed(const QModelIndex& index)
|
||||
{
|
||||
emit groupPressed(m_model->groupFromIndex(index));
|
||||
}
|
||||
|
||||
void GroupView::syncExpandedState(const QModelIndex& parent, int start, int end)
|
||||
{
|
||||
for (int row = start; row <= end; row++) {
|
||||
|
||||
Reference in new issue
Block a user