aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index ccf75f3..fef3bcc 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -2,6 +2,7 @@
#include "ui_mainwindow.h"
#include "settings.h"
#include <QMenu>
+#include <QMenuBar>
#include <QCloseEvent>
#include <QMessageBox>
#include "browser.h"
@@ -34,8 +35,10 @@ MainWindow::MainWindow(Browser *instance, QUrl defaultUrl, QWidget *parent) :
browserMenu->addAction(tr("Quit"), qApp, SLOT(quit()), QKeySequence(tr("Ctrl+Q")));
// Profile menu
- profileMenu = new QMenu(profile->storageName());
- ui->menuBar->addMenu(profileMenu);
+ QMenuBar *rightBar = new QMenuBar(ui->menuBar);
+ profileMenu = new QMenu(tr("Profile: ") + profile->storageName());
+ rightBar->addMenu(profileMenu);
+ ui->menuBar->setCornerWidget(rightBar);
profileMenu->addAction(tr("Edit profile"), this, SLOT(createProfileDialog()));
profileMenu->addAction(tr("Load profile"));
@@ -108,7 +111,7 @@ void MainWindow::handleUrlUpdated(const QUrl &url)
void MainWindow::handleTitleUpdated(const QString &title)
{
Settings settings;
- setWindowTitle(title + settings.value("window/title", "qtwebenginebrowser").toString());
+ setWindowTitle(title + settings.value("window/title").toString());
}
void MainWindow::createProfileDialog()