Skip to content

Commit

Permalink
qtcollider: QStaticText:-string: use 'asString' on the argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
jleben committed Feb 18, 2012
1 parent 19f1871 commit dbf994c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions SCClassLibrary/QtCollider/BasicViews.sc
Expand Up @@ -196,8 +196,6 @@ QScrollView : QAbstractScroll {
/////////////////////////// WIDGETS ///////////////////////////////

QStaticText : QTextViewBase {
var <string;

*qtClass { ^"QLabel" }

*new { arg aParent, aBounds;
Expand All @@ -213,10 +211,8 @@ QStaticText : QTextViewBase {
super.background_( aColor );
}

string_ { arg text;
string = text;
this.setProperty( \text, text );
}
string { ^this.getProperty(\text) }
string_ { arg text; this.setProperty( \text, text.asString ) }

stringColor {
^this.palette.windowText;
Expand Down

0 comments on commit dbf994c

Please sign in to comment.