Esempio n. 1
0
QScriptValue PHILabelItem::html( const QScriptValue &t )
{
    if ( !t.isValid() ) return realText();
    setHtmlText( true );
    setText( t.toString() );
    return self();
}
Esempio n. 2
0
QScriptValue PHILabelItem::text( const QScriptValue &t )
{
    if ( !t.isValid() ) {
        QString s=realText();
        return s.replace( QRegExp( L1( "<[^>]*>" ) ), QString() );
    }
    setText( t.toString() );
    setHtmlText( false );
    return self();
}
Esempio n. 3
0
 void TextField::setHtmlText(const std::wstring& str)
 {
     setHtmlText(ws2utf8(str.c_str()));
 }