Commit 792d5e28 authored by Jan Möbius's avatar Jan Möbius

Fixed more warnings

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@13307 383ad7c9-94d9-4d36-a494-682f7c89f535
parent b341e717
......@@ -67,6 +67,8 @@ namespace VSI {
Text::Text (QGraphicsItem *_parent) :
QGraphicsSimpleTextItem (_parent),
backgroundSet_ (false),
leftOut_(true),
rightOut_(true),
alignment_ (Qt::AlignLeft),
hStretch_ (true)
{
......@@ -80,6 +82,8 @@ Text::Text (const QString &_text, QGraphicsItem *_parent) :
QGraphicsSimpleTextItem (_text, _parent),
text_ (_text),
backgroundSet_ (false),
leftOut_(true),
rightOut_(true),
alignment_ (Qt::AlignLeft),
hStretch_ (true)
{
......@@ -297,8 +301,8 @@ void Text::paint (QPainter *_painter, const QStyleOptionGraphicsItem *_option, Q
void Text::setBackground(bool _leftOut, bool _rightOut)
{
backgroundSet_ = true;
leftOut_ = _leftOut;
rightOut_ = _rightOut;
leftOut_ = _leftOut;
rightOut_ = _rightOut;
updateGeometry ();
}
......
......@@ -61,7 +61,7 @@ class GraphicsScene;
//== CLASS DEFINITION =========================================================
/** Layoutable text widget implementation with an optional background.
* The background can va convex or concave sides.
* The background can have convex or concave sides.
*/
class Text : public QObject, public QGraphicsSimpleTextItem, public QGraphicsLayoutItem
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment