1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

[TabBar] Don't draw base. Should help with Qt5 Fusion style

Also small changes in MainApplication
This commit is contained in:
nowrep 2014-03-10 09:38:16 +01:00
parent d14655a3ab
commit fb2629898b
2 changed files with 6 additions and 4 deletions

View File

@ -270,6 +270,9 @@ MainApplication::~MainApplication()
{
// Delete all classes that are saving data in destructor
delete m_bookmarks;
delete m_cookieJar;
IconProvider::instance()->saveIconsToDatabase();
}
bool MainApplication::isClosing() const
@ -729,7 +732,6 @@ void MainApplication::saveSettings()
qzSettings->saveSettings();
AdBlockManager::instance()->save();
IconProvider::instance()->saveIconsToDatabase();
QFile::remove(DataPaths::currentProfilePath() + QLatin1String("/WebpageIcons.db"));
Settings::syncSettings();
}

View File

@ -55,13 +55,13 @@ TabBar::TabBar(BrowserWindow* window, TabWidget* tabWidget)
setObjectName("tabbar");
setContextMenuPolicy(Qt::CustomContextMenu);
setElideMode(Qt::ElideRight);
setDocumentMode(true);
setFocusPolicy(Qt::NoFocus);
setTabsClosable(false);
setMouseTracking(true);
setMovable(true);
setDocumentMode(true);
setAcceptDrops(true);
setDrawBase(false);
setMovable(true);
connect(this, SIGNAL(currentChanged(int)), this, SLOT(currentTabChanged(int)));
connect(this, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(contextMenuRequested(QPoint)));