mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-29 12:18:44 +01:00
This commit introduces a button to create a new contact because when the contact table is full of contacts, you cannot do 'right-click -> New contact'.
This commit is contained in:
@@ -32,6 +32,10 @@ ContactsWidget::ContactsWidget(QWidget *parent) :
|
||||
this->newContact();
|
||||
});
|
||||
|
||||
connect(ui->btn_addContact, &QPushButton::pressed, [this]{
|
||||
this->newContact();
|
||||
});
|
||||
|
||||
connect(ui->contacts, &QTreeView::customContextMenuRequested, [=](const QPoint & point){
|
||||
QModelIndex index = ui->contacts->indexAt(point);
|
||||
if (index.isValid()) {
|
||||
|
||||
Reference in New Issue
Block a user