aboutsummaryrefslogtreecommitdiff
path: root/lib/addressbar
diff options
context:
space:
mode:
Diffstat (limited to 'lib/addressbar')
-rw-r--r--lib/addressbar/addressbar.cpp2
-rw-r--r--lib/addressbar/completer.cpp1
-rw-r--r--lib/addressbar/urllineedit.cpp1
3 files changed, 3 insertions, 1 deletions
diff --git a/lib/addressbar/addressbar.cpp b/lib/addressbar/addressbar.cpp
index a923e72..2215c0e 100644
--- a/lib/addressbar/addressbar.cpp
+++ b/lib/addressbar/addressbar.cpp
@@ -30,13 +30,13 @@ AddressBar::AddressBar(const QHash<QString, QString> &config, QWidget *parent)
urlBar->selectAll();
});
-
connect(urlBar, &UrlLineEdit::textEdited, [=](const QString &text) {
std::function<void(QStringList &)> callback = std::bind(&UrlLineEdit::updateCompleter, urlBar, std::placeholders::_1);
emit complete(text, callback);
});
progressBar = new QProgressBar(this);
+ progressBar->setObjectName("LoadingBar");
progressBar->setMaximumHeight(5);
progressBar->setTextVisible(false);
layout()->addWidget(progressBar);
diff --git a/lib/addressbar/completer.cpp b/lib/addressbar/completer.cpp
index 9b95ac0..6c04775 100644
--- a/lib/addressbar/completer.cpp
+++ b/lib/addressbar/completer.cpp
@@ -12,6 +12,7 @@
Completer::Completer(QWidget *parent)
: QListView(parent)
{
+ setObjectName("Completer");
setWindowFlags(Qt::ToolTip);
}
diff --git a/lib/addressbar/urllineedit.cpp b/lib/addressbar/urllineedit.cpp
index f92518e..ac311b3 100644
--- a/lib/addressbar/urllineedit.cpp
+++ b/lib/addressbar/urllineedit.cpp
@@ -16,6 +16,7 @@ UrlLineEdit::UrlLineEdit(QWidget *parent)
: QLineEdit(parent)
, m_listView(new Completer(this))
{
+ setObjectName("UrlBar");
setPlaceholderText(tr("Enter address"));
m_listView->setVisible(false);