aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/welcome
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2018-12-18 15:28:37 +0100
committerhjk <hjk@qt.io>2018-12-18 15:32:02 +0000
commit626d2e030d3cdda59de2a9c539a430c7739b61bf (patch)
tree9eb81bc7daead82d64847c0cb55e965edfd601de /src/plugins/welcome
parent911bfb3cdacfd372d469e887ceff713f02569382 (diff)
Welcome: Drop unneeded indirection
Change-Id: I6ab30110eb9b490a36c1a213438761a761173ebc Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/welcome')
-rw-r--r--src/plugins/welcome/introductionwidget.cpp4
-rw-r--r--src/plugins/welcome/introductionwidget.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/welcome/introductionwidget.cpp b/src/plugins/welcome/introductionwidget.cpp
index 1c160ee674..36b43a9802 100644
--- a/src/plugins/welcome/introductionwidget.cpp
+++ b/src/plugins/welcome/introductionwidget.cpp
@@ -74,7 +74,7 @@ void IntroductionWidget::askUserAboutIntroduction(QWidget *parent, QSettings *se
IntroductionWidget::IntroductionWidget(QWidget *parent)
: QWidget(parent),
- m_borderImage(std::make_unique<QImage>(":/welcome/images/border.png"))
+ m_borderImage(":/welcome/images/border.png")
{
setFocusPolicy(Qt::StrongFocus);
setFocus();
@@ -321,7 +321,7 @@ void IntroductionWidget::paintEvent(QPaintEvent *)
}
// smooth borders of the spotlighted area by gradients
- StyleHelper::drawCornerImage(*m_borderImage,
+ StyleHelper::drawCornerImage(m_borderImage,
&p,
spotlightRect,
SPOTLIGHTMARGIN,
diff --git a/src/plugins/welcome/introductionwidget.h b/src/plugins/welcome/introductionwidget.h
index 69212e7762..f7326db3ab 100644
--- a/src/plugins/welcome/introductionwidget.h
+++ b/src/plugins/welcome/introductionwidget.h
@@ -71,7 +71,7 @@ private:
QWidget *m_textWidget;
QLabel *m_stepText;
QLabel *m_continueLabel;
- std::unique_ptr<QImage> m_borderImage;
+ QImage m_borderImage;
QString m_bodyCss;
std::vector<Item> m_items;
QPointer<QWidget> m_stepPointerAnchor;