Browse Source

Merge pull request #2676 from pmzqla/copytrackers

Allow to copy all the trackers with a keyboard shortcut
adaptive-webui-19844
sledgehammer999 9 years ago
parent
commit
983c19eb29
  1. 2
      src/gui/properties/trackerlist.cpp
  2. 1
      src/gui/properties/trackerlist.h

2
src/gui/properties/trackerlist.cpp

@ -79,6 +79,7 @@ TrackerList::TrackerList(PropertiesWidget *properties): QTreeWidget(), propertie
editHotkey = new QShortcut(QKeySequence("F2"), this, SLOT(editSelectedTracker()), 0, Qt::WidgetShortcut); editHotkey = new QShortcut(QKeySequence("F2"), this, SLOT(editSelectedTracker()), 0, Qt::WidgetShortcut);
connect(this, SIGNAL(doubleClicked(QModelIndex)), SLOT(editSelectedTracker())); connect(this, SIGNAL(doubleClicked(QModelIndex)), SLOT(editSelectedTracker()));
deleteHotkey = new QShortcut(QKeySequence(QKeySequence::Delete), this, SLOT(deleteSelectedTrackers()), 0, Qt::WidgetShortcut); deleteHotkey = new QShortcut(QKeySequence(QKeySequence::Delete), this, SLOT(deleteSelectedTrackers()), 0, Qt::WidgetShortcut);
copyHotkey = new QShortcut(QKeySequence(Qt::ControlModifier + Qt::Key_C), this, SLOT(copyTrackerUrl()), 0, Qt::WidgetShortcut);
loadSettings(); loadSettings();
} }
@ -86,6 +87,7 @@ TrackerList::TrackerList(PropertiesWidget *properties): QTreeWidget(), propertie
TrackerList::~TrackerList() { TrackerList::~TrackerList() {
delete editHotkey; delete editHotkey;
delete deleteHotkey; delete deleteHotkey;
delete copyHotkey;
saveSettings(); saveSettings();
} }

1
src/gui/properties/trackerlist.h

@ -59,6 +59,7 @@ private:
QTreeWidgetItem* lsd_item; QTreeWidgetItem* lsd_item;
QShortcut *editHotkey; QShortcut *editHotkey;
QShortcut *deleteHotkey; QShortcut *deleteHotkey;
QShortcut *copyHotkey;
public: public:
TrackerList(PropertiesWidget *properties); TrackerList(PropertiesWidget *properties);

Loading…
Cancel
Save