From 078e742f6d91edc19f82bd56b2b19652e382e4bf Mon Sep 17 00:00:00 2001 From: Samadrita Date: Mon, 26 Dec 2016 21:35:00 +0530 Subject: [PATCH] multiple URL support added --- Qutube-dl.pro.user | 2 +- qutubedl.cpp | 5 +++-- qutubedl.h | 2 +- qutubedl.ui | 53 ++++++++++++++++++++++------------------------ 4 files changed, 30 insertions(+), 32 deletions(-) diff --git a/Qutube-dl.pro.user b/Qutube-dl.pro.user index 7d1e587..66467e2 100644 --- a/Qutube-dl.pro.user +++ b/Qutube-dl.pro.user @@ -1,6 +1,6 @@ - + EnvironmentId diff --git a/qutubedl.cpp b/qutubedl.cpp index e59c028..d0b9dda 100644 --- a/qutubedl.cpp +++ b/qutubedl.cpp @@ -36,7 +36,7 @@ void Qutubedl::on_Go_pb_clicked() QDir open; youtube_d_handle(); - QFileDialog *d_path = new QFileDialog; + QFileDialog *d_path = new QFileDialog(this); QString d_path_string=d_path->getExistingDirectory(this,"Save Directory", QDir::homePath()); qDebug()<url->text(); + //Url=ui->url->text(); + Url=ui->url->toPlainText(); proxy=ui->prxy->text(); fmt=ui->frmt->text(); } diff --git a/qutubedl.h b/qutubedl.h index 2bc1e0d..61bcb80 100644 --- a/qutubedl.h +++ b/qutubedl.h @@ -31,7 +31,7 @@ private slots: private: Ui::Qutubedl *ui; - QProcess *youtube=new QProcess; + QProcess *youtube=new QProcess(this); QString f_output; QString f_cb; int i=0,z=0; diff --git a/qutubedl.ui b/qutubedl.ui index 6f4176d..eb5ddd5 100644 --- a/qutubedl.ui +++ b/qutubedl.ui @@ -6,32 +6,15 @@ 0 0 - 697 - 343 + 695 + 341 Qutubedl - - - - - - - - - - - 18 - - - - - - - + <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> @@ -56,62 +39,76 @@ p, li { white-space: pre-wrap; } + + + + 18 + + + + + + - Url: + Url(s): +(separated by space) - + Format Code: - + Proxy: - + eg: socks://127.0.0.1:9050/ - + Stop! - + Go! - + Available Format? - + Update Backend + + +