mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-03-13 06:01:45 +00:00
WIP: supported double-click on namespace.
This commit is contained in:
parent
21747533fb
commit
f7e392a078
@ -58,6 +58,12 @@ void KevaBookmarksDialog::namespaceView_selectionChanged()
|
||||
}
|
||||
}
|
||||
|
||||
void KevaBookmarksDialog::on_namespaceView_doubleClicked(const QModelIndex &index)
|
||||
{
|
||||
selectedIndex = index;
|
||||
this->apply();
|
||||
}
|
||||
|
||||
void KevaBookmarksDialog::apply()
|
||||
{
|
||||
QModelIndex idIdx = selectedIndex.sibling(selectedIndex.row(), KevaBookmarksModel::Id);
|
||||
|
@ -41,6 +41,7 @@ public Q_SLOTS:
|
||||
|
||||
private Q_SLOTS:
|
||||
void namespaceView_selectionChanged();
|
||||
void on_namespaceView_doubleClicked(const QModelIndex &index);
|
||||
|
||||
private:
|
||||
Ui::KevaBookmarksDialog *ui;
|
||||
|
@ -60,6 +60,12 @@ void KevaMyNamespacesDialog::namespaceView_selectionChanged()
|
||||
}
|
||||
}
|
||||
|
||||
void KevaMyNamespacesDialog::on_namespaceView_doubleClicked(const QModelIndex &index)
|
||||
{
|
||||
selectedIndex = ui->namespaceView->selectionModel()->currentIndex();
|
||||
this->apply();
|
||||
}
|
||||
|
||||
void KevaMyNamespacesDialog::apply()
|
||||
{
|
||||
QModelIndex idIdx = selectedIndex.sibling(selectedIndex.row(), KevaNamespaceModel::Id);
|
||||
|
@ -41,6 +41,7 @@ public Q_SLOTS:
|
||||
|
||||
private Q_SLOTS:
|
||||
void namespaceView_selectionChanged();
|
||||
void on_namespaceView_doubleClicked(const QModelIndex &index);
|
||||
|
||||
private:
|
||||
Ui::KevaMyNamespacesDialog *ui;
|
||||
|
Loading…
x
Reference in New Issue
Block a user