Ticket #4853: mythtv-4853-StyleSetting_default.2.patch
File mythtv-4853-StyleSetting_default.2.patch, 1.5 KB (added by , 15 years ago) |
---|
-
programs/mythfrontend/globalsettings.cpp
old new 2985 2985 2986 2986 void fillSelections(void) { 2987 2987 clearSelections(); 2988 addSelection(QObject::tr("Desktop Style"), ""); 2988 addSelection(QObject::tr("Desktop Style"), 2989 "UseSystemDefaultDesktopStyle"); 2989 2990 QStyleFactory factory; 2990 2991 QStringList list = factory.keys(); 2991 2992 QStringList::iterator iter = list.begin(); -
libs/libmythui/mythuihelper.cpp
old new 10 10 #include <QApplication> 11 11 #include <QPainter> 12 12 #include <QDesktopWidget> 13 #include <QStyleFactory> 13 14 14 15 #include "mythdirs.h" 15 16 #include "mythuihelper.h" … … 389 390 390 391 d->m_qtThemeSettings = new Settings; 391 392 392 QString style = GetMythDB()->GetSetting("Style", ""); 393 if (!style.isEmpty()) 393 QString style = GetMythDB()->GetSetting("Style", 394 "UseSystemDefaultDesktopStyle"); 395 if (QStyleFactory::keys().contains(style)) 394 396 qApp->setStyle(style); 395 397 396 398 QString themename = GetMythDB()->GetSetting("Theme");