Welcome: Show the url of link buttons as tool tip

Less secretiveness about what these buttons do.

Change-Id: I145e5a3e62ccaffd2d1cb97614154a0ef43e1369
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2017-10-15 21:57:45 +02:00
committed by hjk
parent ef07e39c02
commit e50b75b5d8

View File

@@ -147,6 +147,7 @@ public:
{ {
setAutoFillBackground(true); setAutoFillBackground(true);
setMinimumHeight(30); setMinimumHeight(30);
setToolTip(m_openUrl);
const QString fileName = QString(":/welcome/images/%1.png").arg(iconSource); const QString fileName = QString(":/welcome/images/%1.png").arg(iconSource);
const Icon icon({{fileName, Theme::Welcome_ForegroundPrimaryColor}}, Icon::Tint); const Icon icon({{fileName, Theme::Welcome_ForegroundPrimaryColor}}, Icon::Tint);
@@ -191,7 +192,7 @@ public:
QString m_iconSource; QString m_iconSource;
QString m_title; QString m_title;
QString m_openUrl; const QString m_openUrl;
QLabel *m_icon; QLabel *m_icon;
QLabel *m_label; QLabel *m_label;