Пример #1
0
//--------------------------------------------------------------------------------------------------
/// 
//--------------------------------------------------------------------------------------------------
void RIResultInfoPanel::setInfo(const QString& info)
{
    QString tmp(info);

	convertStringToHTML(&tmp);

	m_textEdit->setText(info);
}
Пример #2
0
//--------------------------------------------------------------------------------------------------
/// 
//--------------------------------------------------------------------------------------------------
void MessagePanel::showInfo(QString info)
{
    convertStringToHTML(&info);

    QString str = "<font color='green'>";
    str += info;
    str += "</font>";

    m_textEdit->append(str);
}
Пример #3
0
//--------------------------------------------------------------------------------------------------
/// 
//--------------------------------------------------------------------------------------------------
void MessagePanel::showWarning(QString warn)
{
    convertStringToHTML(&warn);

    QString str = "<font color='maroon'>";
    str += warn;
    str += "</font>";
    
    m_textEdit->append(str);
}
Пример #4
0
//--------------------------------------------------------------------------------------------------
/// 
//--------------------------------------------------------------------------------------------------
void MessagePanel::showError(QString error)
{
    convertStringToHTML(&error);

    QString str = "<b><font color='red'>";
    str += error;
    str += "</font></b>";

    m_textEdit->append(str);
}