Beispiel #1
0
PlayLabel::PlayLabel(int resID,int width,int height,QWidget *parent) :
    m_iResID(resID),QLabel(parent),m_width(width),m_height(height)
{
    initVar();
    setupUI();
    prepareStyle();
    prepareSlot();
}
AuthorityMgrWidget::AuthorityMgrWidget(QWidget *parent) :
    QDialog(parent)
{
    setupUI();
    initVar();
    prepareStyle();
    prepareSlot();
}
Beispiel #3
0
QString KoStyle::saveOdf(KoGenStyles& styles) const
{
    KoGenStyle::Type type;
    if(m_name.isEmpty()) {
        type = automaticstyleType();
    }
    else {
        type = styleType();
    }
    KoGenStyle style(type, styleFamilyName());
    prepareStyle(style);
    style.setAutoStyleInStylesDotXml(m_autoStyleInStylesDotXml);

    QString styleName = m_name;
    if(styleName.isEmpty()) {
        styleName = defaultPrefix();
    }

    return styles.insert(style, styleName, insertionFlags());
}