25 #include <QSizePolicy> 29 #include "ui_klfprogerr.h" 33 : QDialog(parent,
Qt::Sheet)
35 u =
new Ui::KLFProgErr;
37 setObjectName(
"KLFProgErr");
39 setWindowModality(Qt::WindowModal);
40 setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred));
42 u->txtError->setWordWrapMode(QTextOption::WrapAnywhere);
43 u->txtError->setText(errtext);
75 QRegExp latexerr(
"\\n(\\!.*)\\n\\n");
79 return "<pre>"+s+
"</pre>";
QString cap(int nth) const
static void showError(QWidget *parent, QString text)
int indexIn(const QString &str, int offset, CaretMode caretMode) const
static QString extractLatexError(const QString &str)
KLFProgErr(QWidget *parent, QString errtext)
QTextEdit * textEditWidget()
QString & replace(int position, int n, QChar after)
virtual void showEvent(QShowEvent *e)