Ticket #4853: mythtv-4853-StyleSetting_default-20080703.patch
File mythtv-4853-StyleSetting_default-20080703.patch, 1.4 KB (added by , 16 years ago) |
---|
-
programs/mythfrontend/globalsettings.cpp
2919 2919 2920 2920 void fillSelections(void) { 2921 2921 clearSelections(); 2922 addSelection(QObject::tr("Desktop Style"), ""); 2922 addSelection(QObject::tr("Desktop Style"), 2923 "UseSystemDefaultDesktopStyle"); 2923 2924 QStyleFactory factory; 2924 2925 QStringList list = factory.keys(); 2925 2926 QStringList::iterator iter = list.begin(); -
libs/libmythui/mythuihelper.cpp
11 11 #include <QApplication> 12 12 #include <QPainter> 13 13 #include <QDesktopWidget> 14 #include <QStyleFactory> 14 15 15 16 #include "mythdirs.h" 16 17 #include "mythuihelper.h" … … 370 371 371 372 d->m_qtThemeSettings = new Settings; 372 373 373 QString style = GetMythDB()->GetSetting("Style", ""); 374 if (style != "") 374 QString style = GetMythDB()->GetSetting("Style", 375 "UseSystemDefaultDesktopStyle"); 376 if (QStyleFactory::keys().contains(style)) 375 377 qApp->setStyle(style); 376 378 377 379 QString themename = GetMythDB()->GetSetting("Theme");