add preview panel for entries and groups
This commit is contained in:
@@ -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