39 , m_mainWindow(parent)
41 QVBoxLayout *
const layout =
new QVBoxLayout(
this);
42 layout->setContentsMargins(2, 2, 2, 2);
43 setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
48 QAction selectAllAction(tr(
"Select all"));
49 selectAllAction.setShortcut(QKeySequence::SelectAll);
50 BT_CONNECT(&selectAllAction, &QAction::triggered,
54 copyAction.setShortcut(QKeySequence(Qt::CTRL | Qt::Key_C));
59 menu.addAction(&selectAllAction);
60 menu.addAction(©Action);
61 menu.exec(QCursor::pos());
64 [
this](QUrl
const & url) {
65 auto const decodedLink(
68 if (!decodedLink && !decodedLink->module)
71 auto const *
const m = decodedLink->module;
72 std::unique_ptr<CSwordKey> key(m->createKey());
73 key->setKey(decodedLink->key);
75 setInfo(key->renderedText(), m->language()->abbrev());
A QTextBrowser subclass which adds the ability to start drags for references.