Add double-click to copy IP to clipboard to UI.
This commit is contained in:
parent
77683eda0c
commit
ea4269e0d2
3 changed files with 12 additions and 0 deletions
|
@ -104,3 +104,10 @@ void NetworkWidget::on_networkIdPushButton_clicked()
|
|||
{
|
||||
QApplication::clipboard()->setText(ui->networkIdPushButton->text());
|
||||
}
|
||||
|
||||
void NetworkWidget::on_ipListWidget_doubleClicked(const QModelIndex &index)
|
||||
{
|
||||
QListWidgetItem *ci = ui->ipListWidget->currentItem();
|
||||
if (ci)
|
||||
QApplication::clipboard()->setText(ci->text());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue