kjserrordlg.ui.h
00001 /**************************************************************************** 00002 ** ui.h extension file, included from the uic-generated form implementation. 00003 ** 00004 ** If you wish to add, delete or rename functions or slots use 00005 ** Qt Designer which will update this file, preserving your code. Create an 00006 ** init() function in place of a constructor, and a destroy() function in 00007 ** place of a destructor. 00008 *****************************************************************************/ 00009 00010 00011 void KJSErrorDlg::init() 00012 { 00013 _errorText->setTextFormat(QTextEdit::LogText); 00014 _errorText->setMaxLogLines(2048);//Limit to about 2K errors so we don't use much CPU 00015 } 00016 00017 void KJSErrorDlg::addError( const QString & error ) 00018 { 00019 00020 _errorText->append(error); 00021 } 00022 00023 void KJSErrorDlg::setURL( const QString & url ) 00024 { 00025 _url->setText(url); 00026 } 00027 00028 void KJSErrorDlg::clear() 00029 { 00030 _errorText->clear(); 00031 init(); 00032 }