2015-09-08 17:05:59 +02:00
|
|
|
#include "./downloadwidget.h"
|
|
|
|
|
2015-12-05 22:56:32 +01:00
|
|
|
#include "ui_downloadwidget.h"
|
2015-04-22 19:32:04 +02:00
|
|
|
|
2017-05-01 03:22:50 +02:00
|
|
|
#include <QMessageBox>
|
2015-04-22 19:32:04 +02:00
|
|
|
#include <QMouseEvent>
|
2017-05-01 03:22:50 +02:00
|
|
|
#include <QPaintEvent>
|
2019-03-14 18:03:24 +01:00
|
|
|
#include <QStyleOption>
|
2019-07-20 20:20:58 +02:00
|
|
|
#include <QStylePainter>
|
2015-04-22 19:32:04 +02:00
|
|
|
|
|
|
|
namespace QtGui {
|
|
|
|
|
2017-05-01 03:22:50 +02:00
|
|
|
DownloadWidget::DownloadWidget(QWidget *parent)
|
|
|
|
: QWidget(parent)
|
|
|
|
, m_ui(new Ui::DownloadWidget)
|
2015-04-22 19:32:04 +02:00
|
|
|
{
|
|
|
|
m_ui->setupUi(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
DownloadWidget::~DownloadWidget()
|
2017-05-01 03:22:50 +02:00
|
|
|
{
|
|
|
|
}
|
2015-04-22 19:32:04 +02:00
|
|
|
|
|
|
|
void DownloadWidget::paintEvent(QPaintEvent *)
|
|
|
|
{
|
2019-03-14 18:03:24 +01:00
|
|
|
QStylePainter painter(this);
|
|
|
|
QStyleOptionFocusRect option;
|
|
|
|
option.initFrom(this);
|
|
|
|
option.backgroundColor = palette().color(QPalette::Highlight);
|
|
|
|
painter.drawPrimitive(QStyle::PE_FrameFocusRect, option);
|
2015-04-22 19:32:04 +02:00
|
|
|
}
|
2019-07-20 20:20:58 +02:00
|
|
|
} // namespace QtGui
|