mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
Set stylesheet of target widget rather then defining global stylesheet
This commit is contained in:
@@ -49,7 +49,7 @@ StatusBar::StatusBar(QWidget *parent)
|
|||||||
#ifndef Q_OS_MACOS
|
#ifndef Q_OS_MACOS
|
||||||
// Redefining global stylesheet breaks certain elements on mac like tabs.
|
// Redefining global stylesheet breaks certain elements on mac like tabs.
|
||||||
// Qt checks whether the stylesheet class inherts("QMacStyle") and this becomes false.
|
// Qt checks whether the stylesheet class inherts("QMacStyle") and this becomes false.
|
||||||
qApp->setStyleSheet("QStatusBar::item { border-width: 0; }");
|
setStyleSheet("QStatusBar::item { border-width: 0; }");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
BitTorrent::Session *const session = BitTorrent::Session::instance();
|
BitTorrent::Session *const session = BitTorrent::Session::instance();
|
||||||
|
|||||||
Reference in New Issue
Block a user