Ticket #4853: mythtv-StyleSetting_default.patch

File mythtv-StyleSetting_default.patch, 1.3 KB (added by sphery <mtdean@…>, 13 years ago)
  • programs/mythfrontend/globalsettings.cpp

     
    28432843
    28442844    void fillSelections(void) {
    28452845        clearSelections();
    2846         addSelection(QObject::tr("Desktop Style"), "");
     2846        addSelection(QObject::tr("Desktop Style"),
     2847                     "UseSystemDefaultDesktopStyle");
    28472848        QStyleFactory factory;
    28482849        QStringList list = factory.keys();
    28492850        QStringList::iterator iter = list.begin();
  • libs/libmyth/mythcontext.cpp

     
    1010#include <qnetwork.h>
    1111#include <qwaitcondition.h>
    1212#include <qregexp.h>
     13#include <qstylefactory.h>
    1314
    1415#include <qhostaddress.h>
    1516
     
    19941995
    19951996    d->m_qtThemeSettings = new Settings;
    19961997
    1997     QString style = GetSetting("Style", "");
    1998     if (style != "")
     1998    QString style = GetSetting("Style", "UseSystemDefaultDesktopStyle");
     1999    if (QStyleFactory::keys().contains(style))
    19992000        qApp->setStyle(style);
    20002001
    20012002    QString themename = GetSetting("Theme");