From 38b2631de97f31b272250601a608a9fff56c4163 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sun, 27 Jan 2019 18:00:02 +0100 Subject: [PATCH] SiteInfoWidget: Add site name header --- src/lib/other/siteinfowidget.cpp | 2 + src/lib/other/siteinfowidget.ui | 92 +++++++++++++++++++++----------- 2 files changed, 63 insertions(+), 31 deletions(-) diff --git a/src/lib/other/siteinfowidget.cpp b/src/lib/other/siteinfowidget.cpp index 8724809ab..480241ea1 100644 --- a/src/lib/other/siteinfowidget.cpp +++ b/src/lib/other/siteinfowidget.cpp @@ -38,6 +38,8 @@ SiteInfoWidget::SiteInfoWidget(BrowserWindow* window, QWidget* parent) WebView* view = m_window->weView(); + ui->titleLabel->setText(tr("Site %1").arg(view->url().host())); + if (view->url().scheme() == QL1S("https")) { ui->secureLabel->setText(tr("Your connection to this site is secured.")); ui->secureIcon->setPixmap(QPixmap(":/icons/locationbar/safe.png")); diff --git a/src/lib/other/siteinfowidget.ui b/src/lib/other/siteinfowidget.ui index b701c3a56..8de90f119 100644 --- a/src/lib/other/siteinfowidget.ui +++ b/src/lib/other/siteinfowidget.ui @@ -7,7 +7,7 @@ 0 0 117 - 89 + 144 @@ -17,7 +17,16 @@ - + + 0 + + + 0 + + + 0 + + 0 @@ -29,35 +38,7 @@ 15 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + 6 @@ -93,6 +74,55 @@ + + + + + + + + + + + + + + + + + + + + + + + + + Qt::AlignCenter + + + + + + + Qt::Horizontal + + + + + + + + + + + + + + Qt::Horizontal + + +