connect(decoder_menu, SIGNAL(decoder_selected(srd_decoder*)),
this, SLOT(on_stack_decoder(srd_decoder*)));
+ decoder_menu->setStyleSheet("QMenu { menu-scrollable: 1; }");
+
stack_button_->setMenu(decoder_menu);
stack_button_->show();
return;
QAction *const copy_annotation_to_clipboard =
new QAction(tr("Copy annotation text to clipboard"), this);
copy_annotation_to_clipboard->setIcon(QIcon::fromTheme("edit-paste",
- QIcon(":/icons/edit-paste.png")));
+ QIcon(":/icons/edit-paste.svg")));
connect(copy_annotation_to_clipboard, SIGNAL(triggered()), this, SLOT(on_copy_annotation_to_clipboard()));
menu->addAction(copy_annotation_to_clipboard);
return;
QClipboard *clipboard = QGuiApplication::clipboard();
- clipboard->setText(annotations->front().annotations().front());
+ clipboard->setText(annotations->front().annotations().front(), QClipboard::Clipboard);
+
+ if (clipboard->supportsSelection())
+ clipboard->setText(annotations->front().annotations().front(), QClipboard::Selection);
delete annotations;
}