mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-06 15:04:34 +08:00
Move statusbar styelsheet to where it belongs
This commit is contained in:
parent
f058e666e5
commit
e35a7ef9d3
@ -92,7 +92,6 @@ Application::Application(const QString &id, int &argc, char **argv)
|
|||||||
setApplicationName("qBittorrent");
|
setApplicationName("qBittorrent");
|
||||||
initializeTranslation();
|
initializeTranslation();
|
||||||
#ifndef DISABLE_GUI
|
#ifndef DISABLE_GUI
|
||||||
setStyleSheet("QStatusBar::item { border-width: 0; }");
|
|
||||||
setQuitOnLastWindowClosed(false);
|
setQuitOnLastWindowClosed(false);
|
||||||
#ifdef Q_OS_WIN
|
#ifdef Q_OS_WIN
|
||||||
connect(this, SIGNAL(commitDataRequest(QSessionManager &)), this, SLOT(shutdownCleanup(QSessionManager &)), Qt::DirectConnection);
|
connect(this, SIGNAL(commitDataRequest(QSessionManager &)), this, SLOT(shutdownCleanup(QSessionManager &)), Qt::DirectConnection);
|
||||||
|
@ -44,6 +44,8 @@
|
|||||||
StatusBar::StatusBar(QStatusBar *bar)
|
StatusBar::StatusBar(QStatusBar *bar)
|
||||||
: m_bar(bar)
|
: m_bar(bar)
|
||||||
{
|
{
|
||||||
|
qApp->setStyleSheet("QStatusBar::item { border-width: 0; }");
|
||||||
|
|
||||||
Preferences* const pref = Preferences::instance();
|
Preferences* const pref = Preferences::instance();
|
||||||
connect(BitTorrent::Session::instance(), SIGNAL(speedLimitModeChanged(bool)), this, SLOT(updateAltSpeedsBtn(bool)));
|
connect(BitTorrent::Session::instance(), SIGNAL(speedLimitModeChanged(bool)), this, SLOT(updateAltSpeedsBtn(bool)));
|
||||||
container = new QWidget(bar);
|
container = new QWidget(bar);
|
||||||
|
Loading…
Reference in New Issue
Block a user