mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-26 18:41:40 +08:00
23 lines
628 B
C++
23 lines
628 B
C++
#ifndef JKQTPSTYLEPLAINTEXTEDIT_H
|
|
#define JKQTPSTYLEPLAINTEXTEDIT_H
|
|
|
|
#include <QPlainTextEdit>
|
|
|
|
class JKQTPStylePlainTextEdit : public QPlainTextEdit
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
JKQTPStylePlainTextEdit(QWidget *parent = nullptr);
|
|
virtual ~JKQTPStylePlainTextEdit();
|
|
protected:
|
|
void contextMenuEvent(QContextMenuEvent *event) override;
|
|
protected slots:
|
|
void changeCurrentLineValueTo(const QString &targetText);
|
|
void addTransparencyToCurrentLineValue(const QString &targetText);
|
|
void addMathFontSpecifier(const QString &newMath);
|
|
private:
|
|
QTextCursor curContextMenu;
|
|
};
|
|
|
|
#endif // JKQTPSTYLEPLAINTEXTEDIT_H
|