aboutsummaryrefslogtreecommitdiff
path: root/lib/downloads/widgets
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-01-07 23:28:42 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2018-01-07 23:28:42 +0100
commitb984992fc92b6dd607732d6dad1c533b36f1ba3a (patch)
tree984c5ede072c2ebb10ad32acb5d5928162feb97f /lib/downloads/widgets
parentSearching through BookmarkModel elements (diff)
downloadsmolbote-b984992fc92b6dd607732d6dad1c533b36f1ba3a.tar.xz
Added .clang-format
Diffstat (limited to 'lib/downloads/widgets')
-rw-r--r--lib/downloads/widgets/downloaditemwidget.cpp8
-rw-r--r--lib/downloads/widgets/downloaditemwidget.h5
-rw-r--r--lib/downloads/widgets/elidedlabel.h6
3 files changed, 11 insertions, 8 deletions
diff --git a/lib/downloads/widgets/downloaditemwidget.cpp b/lib/downloads/widgets/downloaditemwidget.cpp
index a51275e..6860c16 100644
--- a/lib/downloads/widgets/downloaditemwidget.cpp
+++ b/lib/downloads/widgets/downloaditemwidget.cpp
@@ -11,9 +11,9 @@
#include <QUrl>
-DownloadItemWidget::DownloadItemWidget(QWebEngineDownloadItem *item, QWidget *parent) :
- QWidget(parent),
- ui(new Ui::DownloadItemForm)
+DownloadItemWidget::DownloadItemWidget(QWebEngineDownloadItem *item, QWidget *parent)
+ : QWidget(parent)
+ , ui(new Ui::DownloadItemForm)
{
m_item = item;
@@ -68,7 +68,7 @@ QString DownloadItemWidget::sizeString(int size) const
void DownloadItemWidget::updateState(QWebEngineDownloadItem::DownloadState state)
{
- switch (state) {
+ switch(state) {
case QWebEngineDownloadItem::DownloadRequested:
ui->status_label->setText(tr("Requested"));
break;
diff --git a/lib/downloads/widgets/downloaditemwidget.h b/lib/downloads/widgets/downloaditemwidget.h
index c6246da..09a7370 100644
--- a/lib/downloads/widgets/downloaditemwidget.h
+++ b/lib/downloads/widgets/downloaditemwidget.h
@@ -9,10 +9,11 @@
#ifndef DOWNLOADITEMFORM_H
#define DOWNLOADITEMFORM_H
-#include <QWidget>
#include <QWebEngineDownloadItem>
+#include <QWidget>
-namespace Ui {
+namespace Ui
+{
class DownloadItemForm;
}
diff --git a/lib/downloads/widgets/elidedlabel.h b/lib/downloads/widgets/elidedlabel.h
index d0f6221..d6c06c5 100644
--- a/lib/downloads/widgets/elidedlabel.h
+++ b/lib/downloads/widgets/elidedlabel.h
@@ -67,10 +67,12 @@ public:
explicit ElidedLabel(QWidget *parent = nullptr);
void setContent(const QString &text);
- const QString & text() const {
+ const QString &text() const
+ {
return content;
}
- bool isElided() const {
+ bool isElided() const
+ {
return elided;
}