Ticket #4853: mythtv-StyleSetting_default.patch
File mythtv-StyleSetting_default.patch, 1.3 KB (added by , 16 years ago) |
---|
-
programs/mythfrontend/globalsettings.cpp
2843 2843 2844 2844 void fillSelections(void) { 2845 2845 clearSelections(); 2846 addSelection(QObject::tr("Desktop Style"), ""); 2846 addSelection(QObject::tr("Desktop Style"), 2847 "UseSystemDefaultDesktopStyle"); 2847 2848 QStyleFactory factory; 2848 2849 QStringList list = factory.keys(); 2849 2850 QStringList::iterator iter = list.begin(); -
libs/libmyth/mythcontext.cpp
10 10 #include <qnetwork.h> 11 11 #include <qwaitcondition.h> 12 12 #include <qregexp.h> 13 #include <qstylefactory.h> 13 14 14 15 #include <qhostaddress.h> 15 16 … … 1994 1995 1995 1996 d->m_qtThemeSettings = new Settings; 1996 1997 1997 QString style = GetSetting("Style", " ");1998 if ( style != "")1998 QString style = GetSetting("Style", "UseSystemDefaultDesktopStyle"); 1999 if (QStyleFactory::keys().contains(style)) 1999 2000 qApp->setStyle(style); 2000 2001 2001 2002 QString themename = GetSetting("Theme");