aboutsummaryrefslogtreecommitdiff
path: root/lib/addressbar
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-05-04 21:03:14 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-05-04 21:03:14 +0200
commit591e25eb4431e44e8ae28da299e2f024a95c2c03 (patch)
tree5963ced1a971fb630d70125b4b03cc9da3e8c8e2 /lib/addressbar
parentMerge address bar menus (diff)
downloadsmolbote-591e25eb4431e44e8ae28da299e2f024a95c2c03.tar.xz
Stylesheet load setting
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);