aboutsummaryrefslogtreecommitdiff
path: root/src/webengine/downloaditemform.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-02-23 17:19:32 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-02-23 17:19:32 +0100
commitabd011f7cf8d298b8bbbe30eedb329094d43c0b9 (patch)
tree300909ce22e5c356a4735dbedaf795a594055c9e /src/webengine/downloaditemform.cpp
parentMinor features (diff)
downloadsmolbote-abd011f7cf8d298b8bbbe30eedb329094d43c0b9.tar.xz
Download manager improvements
Added shortcut for download dialog Dialog has proper title Settings replaces ~ with home location Showing download item details
Diffstat (limited to 'src/webengine/downloaditemform.cpp')
-rw-r--r--src/webengine/downloaditemform.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/webengine/downloaditemform.cpp b/src/webengine/downloaditemform.cpp
index f2928f7..599ea08 100644
--- a/src/webengine/downloaditemform.cpp
+++ b/src/webengine/downloaditemform.cpp
@@ -28,6 +28,8 @@ DownloadItemForm::DownloadItemForm(QWebEngineDownloadItem *item, QWidget *parent
QWidget(parent),
ui(new Ui::DownloadItemForm)
{
+ m_item = item;
+
ui->setupUi(this);
ui->url_lineEdit->setText(item->url().toString());
@@ -41,6 +43,11 @@ DownloadItemForm::~DownloadItemForm()
delete ui;
}
+QWebEngineDownloadItem *DownloadItemForm::item() const
+{
+ return m_item;
+}
+
void DownloadItemForm::updateState(QWebEngineDownloadItem::DownloadState state)
{
switch (state) {