Warning, file /education/kmplot/kmplot/equationhighlighter.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 KmPlot - a math. function plotter for the KDE-Desktop 0003 0004 SPDX-FileCopyrightText: 2006 David Saxton <david@bluehaze.org> 0005 0006 This file is part of the KDE Project. 0007 KmPlot is part of the KDE-EDU Project. 0008 0009 SPDX-License-Identifier: GPL-2.0-or-later 0010 0011 */ 0012 0013 #ifndef EQUATIONHIGHLIGHTER_H 0014 #define EQUATIONHIGHLIGHTER_H 0015 0016 #include <QSyntaxHighlighter> 0017 0018 class EquationEdit; 0019 class QString; 0020 0021 /** 0022 * \author David Saxton 0023 */ 0024 class EquationHighlighter : public QSyntaxHighlighter 0025 { 0026 public: 0027 explicit EquationHighlighter(EquationEdit *parent); 0028 ~EquationHighlighter(); 0029 0030 /** 0031 * This is used to indicate the position where the error occurred. 0032 * If \p position is negative, then no error will be shown. 0033 */ 0034 void setErrorPosition(int position); 0035 0036 protected: 0037 void highlightBlock(const QString &text) Q_DECL_OVERRIDE; 0038 0039 int m_errorPosition; 0040 EquationEdit *m_parent; 0041 }; 0042 0043 #endif