You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
888 B
33 lines
888 B
15 years ago
|
/****************************************************************************
|
||
|
** ui.h extension file, included from the uic-generated form implementation.
|
||
|
**
|
||
|
** If you wish to add, delete or rename functions or slots use
|
||
|
** Qt Designer which will update this file, preserving your code. Create an
|
||
|
** init() function in place of a constructor, and a destroy() function in
|
||
|
** place of a destructor.
|
||
|
*****************************************************************************/
|
||
|
|
||
|
|
||
|
void KJSErrorDlg::init()
|
||
|
{
|
||
15 years ago
|
_errorText->setTextFormat(TQTextEdit::LogText);
|
||
15 years ago
|
_errorText->setMaxLogLines(2048);//Limit to about 2K errors so we don't use much CPU
|
||
|
}
|
||
|
|
||
15 years ago
|
void KJSErrorDlg::addError( const TQString & error )
|
||
15 years ago
|
{
|
||
|
|
||
|
_errorText->append(error);
|
||
|
}
|
||
|
|
||
15 years ago
|
void KJSErrorDlg::setURL( const TQString & url )
|
||
15 years ago
|
{
|
||
|
_url->setText(url);
|
||
|
}
|
||
|
|
||
|
void KJSErrorDlg::clear()
|
||
|
{
|
||
|
_errorText->clear();
|
||
|
init();
|
||
|
}
|