mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
FEATURE: Inhibit system sleep when torrents are active (Vladimir Golovnev)
Remove visual style settings
This commit is contained in:
parent
b45171ba43
commit
0f1473e212
16 changed files with 573 additions and 182 deletions
10
src/main.cpp
10
src/main.cpp
|
@ -153,15 +153,6 @@ void sigabrtHandler(int) {
|
|||
}
|
||||
#endif
|
||||
|
||||
#ifndef DISABLE_GUI
|
||||
void useStyle(QString style){
|
||||
if(!style.isEmpty()) {
|
||||
QApplication::setStyle(QStyleFactory::create(style));
|
||||
}
|
||||
Preferences().setStyle(QApplication::style()->objectName());
|
||||
}
|
||||
#endif
|
||||
|
||||
// Main
|
||||
int main(int argc, char *argv[]){
|
||||
// Create Application
|
||||
|
@ -286,7 +277,6 @@ int main(int argc, char *argv[]){
|
|||
}
|
||||
|
||||
#ifndef DISABLE_GUI
|
||||
useStyle(pref.getStyle());
|
||||
app.setStyleSheet("QStatusBar::item { border-width: 0; }");
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue