diff options
Diffstat (limited to 'torrentdisplay.cpp')
-rw-r--r-- | torrentdisplay.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/torrentdisplay.cpp b/torrentdisplay.cpp index 3a1664b..58df338 100644 --- a/torrentdisplay.cpp +++ b/torrentdisplay.cpp @@ -13,6 +13,7 @@ #include <QApplication> #include <QMenu> #include <QContextMenuEvent> +#include <QAction> #include "torrentdisplay.h" @@ -81,6 +82,12 @@ TorrentDisplay::TorrentDisplay(QWidget *parent, Qt::WindowFlags f) : QDialog(par mainLayout->addLayout(buttonLayout); setLayout(mainLayout); setWindowTitle(tr("Torrent Info")); + + //actions + QAction *copyFnToClip = new QAction(QIcon(":/edit-copy.png"), tr("Filename to Clip"), this); + copyFnToClip->setShortcut(tr("CTRL+C")); + connect(copyFnToClip, SIGNAL(triggered()), this, SLOT(copyToClipboard())); + addActions(QList<QAction*>() << copyFnToClip); } void TorrentDisplay::setData(const QList<QVariant> data, const QString &filename) { |