mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-01 22:32:55 -08:00
add preview panel for entries and groups
This commit is contained in:
17 files changed
+930
-1
No files matched your search
@@ -49,6 +49,8 @@ EntryView::EntryView(QWidget* parent)
|
||||
connect(selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), SIGNAL(entrySelectionChanged()));
|
||||
connect(m_model, SIGNAL(switchedToEntryListMode()), SLOT(switchToEntryListMode()));
|
||||
connect(m_model, SIGNAL(switchedToGroupMode()), SLOT(switchToGroupMode()));
|
||||
|
||||
connect(this, SIGNAL(clicked(QModelIndex)), SLOT(emitEntryPressed(QModelIndex)));
|
||||
}
|
||||
|
||||
void EntryView::keyPressEvent(QKeyEvent* event)
|
||||
@@ -99,6 +101,11 @@ void EntryView::emitEntryActivated(const QModelIndex& index)
|
||||
emit entryActivated(entry, static_cast<EntryModel::ModelColumn>(m_sortModel->mapToSource(index).column()));
|
||||
}
|
||||
|
||||
void EntryView::emitEntryPressed(const QModelIndex& index)
|
||||
{
|
||||
emit entryPressed(entryFromIndex(index));
|
||||
}
|
||||
|
||||
void EntryView::setModel(QAbstractItemModel* model)
|
||||
{
|
||||
Q_UNUSED(model);
|
||||
|
||||
Reference in new issue
Block a user