Add the option of automatically picking up URLs from the clipboard on window focus (#1633)

This commit is contained in:
Esa Varemo
2022-01-23 17:57:21 +02:00
committed by GitHub
parent bda754bbeb
commit 032e01c9d8
8 changed files with 103 additions and 45 deletions

View File

@@ -88,6 +88,7 @@ protected:
void contextMenuEvent(QContextMenuEvent*) override;
void dragEnterEvent(QDragEnterEvent*) override;
void dropEvent(QDropEvent*) override;
bool event(QEvent*) override;
private slots:
void addTorrents(QStringList const& filenames);
@@ -175,6 +176,8 @@ private:
QWidget* filter_bar_ = {};
QAction* alt_speed_action_ = {};
QString error_message_;
bool auto_add_clipboard_links = {};
QStringList clipboard_processed_keys_ = {};
QString const total_ratio_stats_mode_name_ = QStringLiteral("total-ratio");
QString const total_transfer_stats_mode_name_ = QStringLiteral("total-transfer");