mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-08-26 22:42:05 +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()
|
void KevaBookmarksDialog::apply()
|
||||||
{
|
{
|
||||||
QModelIndex idIdx = selectedIndex.sibling(selectedIndex.row(), KevaBookmarksModel::Id);
|
QModelIndex idIdx = selectedIndex.sibling(selectedIndex.row(), KevaBookmarksModel::Id);
|
||||||
|
@ -41,6 +41,7 @@ public Q_SLOTS:
|
|||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void namespaceView_selectionChanged();
|
void namespaceView_selectionChanged();
|
||||||
|
void on_namespaceView_doubleClicked(const QModelIndex &index);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::KevaBookmarksDialog *ui;
|
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()
|
void KevaMyNamespacesDialog::apply()
|
||||||
{
|
{
|
||||||
QModelIndex idIdx = selectedIndex.sibling(selectedIndex.row(), KevaNamespaceModel::Id);
|
QModelIndex idIdx = selectedIndex.sibling(selectedIndex.row(), KevaNamespaceModel::Id);
|
||||||
|
@ -41,6 +41,7 @@ public Q_SLOTS:
|
|||||||
|
|
||||||
private Q_SLOTS:
|
private Q_SLOTS:
|
||||||
void namespaceView_selectionChanged();
|
void namespaceView_selectionChanged();
|
||||||
|
void on_namespaceView_doubleClicked(const QModelIndex &index);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::KevaMyNamespacesDialog *ui;
|
Ui::KevaMyNamespacesDialog *ui;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user