KHTML
kjserrordlg.cpp
Go to the documentation of this file.00001 #include "kjserrordlg.h" 00002 #include "kjserrordlg.moc" 00003 00004 KJSErrorDlg::KJSErrorDlg( QWidget *parent ) 00005 : QDialog( parent ) 00006 { 00007 setupUi( this ); 00008 connect(_clear,SIGNAL(clicked()),this,SLOT(clear())); 00009 connect(_close,SIGNAL(clicked()),this,SLOT(hide())); 00010 init(); 00011 } 00012 00013 void KJSErrorDlg::addError( const QString & error ) 00014 { 00015 _errorText->append(error); 00016 } 00017 00018 void KJSErrorDlg::setURL( const QString & url ) 00019 { 00020 _url->setText(url); 00021 } 00022 00023 void KJSErrorDlg::clear() 00024 { 00025 _errorText->clear(); 00026 init(); 00027 } 00028 00029 void KJSErrorDlg::init() 00030 { 00031 _errorText->setAcceptRichText(false); 00032 }