diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-06-30 19:14:57 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-06-30 19:14:57 +0200 |
commit | 501e2035c4207ba906aee84461f3ee427a9bce97 (patch) | |
tree | fa32316f806f9e0fe4b7f5e315dcbbb065bcd9b4 /src/mainwindow.cpp | |
parent | Some MainWindow and WebViewTabBar cleanup (diff) | |
download | smolbote-501e2035c4207ba906aee84461f3ee427a9bce97.tar.xz |
Status bar height capped; loading bar now hides after 2s
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 6944ac7..eae09e6 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -37,7 +37,7 @@ MainWindow::MainWindow(QUrl defaultUrl, QWidget *parent) : tabToolBar(new QToolBar(tr("Tab bar"), this)), tabBar(new WebViewTabBar(nullptr, this)), urlLineEdit(new UrlLineEdit(navigationToolBar)), - progressBar(new LoadingBar(this)) + m_progressBar(new LoadingBar(this)) { // set up UI ui->setupUi(this); @@ -93,7 +93,7 @@ MainWindow::MainWindow(QUrl defaultUrl, QWidget *parent) : tabBar->setProfile(qApp->profile(sSettings->value("browser.profile.default").toString())); // loading bar - ui->statusBar->addPermanentWidget(progressBar); + ui->statusBar->addPermanentWidget(m_progressBar); // shortcuts QAction *focusAddressAction = new QAction(this); @@ -219,7 +219,7 @@ void MainWindow::handleTabChanged(WebView *view) connect(view, SIGNAL(titleChanged(QString)), this, SLOT(handleTitleUpdated(QString))); connect(view, SIGNAL(linkHovered(QString)), ui->statusBar, SLOT(showMessage(QString))); - progressBar->connectWebView(view); + m_progressBar->connectWebView(view); // update UI urlLineEdit->setUrl(view->url()); |