Skip to content

Commit

Permalink
fix #25336: give access to raw text in plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Apr 10, 2014
1 parent 65899b5 commit dc959cc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libmscore/text.h
Expand Up @@ -168,10 +168,15 @@ class TextBlock {

//---------------------------------------------------------
// @@ Text
/// Graphic representation of a text.
//
// @P text string the raw text
//---------------------------------------------------------

class Text : public Element {
Q_OBJECT

Q_PROPERTY(QString text READ text WRITE undoSetText)

QString _text;
QList<TextBlock> _layout;
Expand Down Expand Up @@ -295,6 +300,8 @@ class Text : public Element {
friend class TextFragment;
virtual void textChanged() {}
QString convertFromHtml(const QString& ss) const;

void undoSetText(const QString& s) { undoChangeProperty(P_TEXT, s); };
};


Expand Down

0 comments on commit dc959cc

Please sign in to comment.