Ignore:
Timestamp:
Oct 9, 2014, 2:54:21 PM (11 years ago)
Author:
Silvan Scherrer
Message:

SMPlayer: updated trunk to 14.9.0

Location:
smplayer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smplayer/trunk

  • smplayer/trunk/src/skingui/skingui.cpp

    r165 r170  
    102102        else {
    103103                QString qss = Images::styleSheet();
     104#ifdef USE_RESOURCES
     105                Images::setTheme(pref->iconset);
     106                QString path = ":/" + pref->iconset;
     107#else
    104108                QDir current = QDir::current();
    105109                QString td = Images::themesDirectory();
    106                 QString relativePath = current.relativeFilePath(td);
     110                QString path = current.relativeFilePath(td);
     111#endif
    107112                qss.replace(QRegExp("url\\s*\\(\\s*([^\\);]+)\\s*\\)", Qt::CaseSensitive, QRegExp::RegExp2),
    108                                                         QString("url(%1\\1)").arg(relativePath + "/"));
    109                 //qDebug("qss: %s", qss.toLatin1().constData());
     113                                                        QString("url(%1\\1)").arg(path + "/"));
     114                //qDebug("SkinGui::changeStyleSheet: qss: %s", qss.toLatin1().constData());
    110115                qApp->setStyleSheet(qss);
    111116        }
Note: See TracChangeset for help on using the changeset viewer.