Logo Search packages:      
Sourcecode: mailody-kde4 version File versions  Download package

void Composer::setMsgAndQuote ( const QString &  plain,
const QString &  html,
bool  sign = true 
)

similar to above, but it will quoute the message, html and plain

Definition at line 522 of file composer.cpp.

References Mailody::Global::quote(), setDirty(), and setMsg().

{
    if ( m_text->textMode()==KRichTextWidget::Plain ) {
        QString plaintext = i18n( "You wrote:\n" ) + Global::quote( plain ) + '\n';
    }
    setMsg( plain, html, sign );

    bool dirty = m_dirty;
    // Add header.
    m_text->insertHtml( i18n( "<br><hr><b>You wrote:</b><br>" ) );

    // Move to top
    QTextCursor cursor = m_text->textCursor();
    cursor.setPosition( 0 );
    m_text->setTextCursor( cursor );
    setDirty( dirty );
}


Generated by  Doxygen 1.6.0   Back to index