void QSoftKeyDesignToolWidget::on_EditName_editingFinished()
{
    if( !m_pvSelectedKeys || m_pvSelectedKeys->count() != 1 ) return;

    CSoftkey* pKey = m_pvSelectedKeys->at(0);
    pKey->setName( ui->EditName->text() );

    emit invalidateKey( pKey );
}
Beispiel #2
0
// Queries the system theme and invalidates existing
// icons if the theme has changed.
void QIconLoader::updateSystemTheme()
{
    // Only change if this is not explicitly set by the user
    if (m_userTheme.isEmpty()) {
        QString theme = QIcon::themeName();//qt_guiPlatformPlugin()->systemIconThemeName();
        //if (theme.isEmpty())
        //    theme = fallbackTheme();
        if (theme != m_systemTheme) {
            m_systemTheme = theme;
            invalidateKey();
        }
    }
}
Beispiel #3
0
// Queries the system theme and invalidates existing
// icons if the theme has changed.
void QIconLoader::updateSystemTheme()
{
    // Only change if this is not explicitly set by the user
    if (m_userTheme.isEmpty()) {
        QString theme = systemThemeName();
        if (theme.isEmpty())
            theme = fallbackTheme();
        if (theme != m_systemTheme) {
            m_systemTheme = theme;
            invalidateKey();
        }
    }
}
void QSoftKeyDesignToolWidget::on_CBVisible_activated(int index)
{
    if( index < 0 ) return;

    bool bVisible = (index == 0) ? true : false;

    if( !m_pvSelectedKeys ) return;

    for ( int nI=0 ; nI<m_pvSelectedKeys->count() ; nI++ )
    {
        CSoftkey* pKey = m_pvSelectedKeys->at(nI);
        pKey->setShow( bVisible );
        emit invalidateKey( pKey );
    }
}
Beispiel #5
0
void QIconLoader::setThemeSearchPath(const QStringList &searchPaths)
{
    m_iconDirs = searchPaths;
    themeList.clear();
    invalidateKey();
}
Beispiel #6
0
void QIconLoader::setThemeName(const QString &themeName)
{
    m_userTheme = themeName;
    invalidateKey();
}