Commit c472ecb3 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Merge branch 'master' into krita-psd-rempt

parents f63b87ed ab476739
......@@ -10,6 +10,7 @@ Comment[es]=Ventana acoplable de animación para Krita
Comment[fi]=Krita-animaatiotelakka
Comment[it]=Area di aggancio delle animazioni di Krita
Comment[ja]=Krita のアニメーションドッキングパネル
Comment[nb]=Animeringsdokker for Krita
Comment[nl]=Animatievastzetter voor Krita
Comment[pl]=Dokowanie animacji dla Krita
Comment[pt]=Acoplador de Animação para o Krita
......
......@@ -9,6 +9,7 @@ Name[fi]=Krita-animaatio
Name[ia]=Krita Animation
Name[it]=Animazione di Krita
Name[ja]=Krita Animation
Name[nb]=Krita-animasjon
Name[nl]=Animatie van Krita
Name[pl]=Animacje Krita
Name[pt]=Krita Animação
......
......@@ -9,6 +9,7 @@ Name[fi]=Calligra-animaatiomuokkain
Name[ia]=Editor de animation de Calligra
Name[it]=Editor delle animazioni di Calligra
Name[ja]=Calligra アニメーションエディタ
Name[nb]=Calliga animasjonsverktøy
Name[nl]=Animatiebewerker van Calligra
Name[pl]=Edytor animacji Calligra
Name[pt]=Editor de Animações do Calligra
......
......@@ -9,6 +9,7 @@ Name[es]=Diseño de web 4:3 [ 2160x1440 , 72ppi RGB , 8bit ]
Name[fr]=Style écran [ 2160x1440, 72ppi RGB , 8bit ]
Name[it]=Progettazione web [ 2160x1440 , 72ppi RGB , 8bit ]
Name[ja]=ウェブデザイン [ 2160x1440、72ppi RGB、8 ビット ]
Name[nb]=Web Design [ 2160x1440 , 72ppi RGB , 8bit ]
Name[nl]=Webontwerp [ 2160x1440 , 72ppi RGB , 8bit ]
Name[pl]=Projekt sieciowy [ 2160x1440 , 72ppi RGB , 8bit ]
Name[pt]=Desenho na Web [ 2160x1440 , 72ppp RGB , 8-bits ]
......
......@@ -9,6 +9,7 @@ Name[es]=Textura 1024x1024 8bits srgb
Name[fr]=Texture 1024x1024 8bit srgb
Name[it]=Trama 1024x1024 8bit srgb
Name[ja]=テクスチャ 1024x1024 8 ビット sRGB
Name[nb]=Tekstur 1024x1024 8bit srgb
Name[nl]=Textuur 1024x1024 8bit srgb
Name[pl]=Tekstura 1024x1024 8bit srgb
Name[pt]=Textura 1024x1024 8-bits sRGB
......
......@@ -9,6 +9,7 @@ Name[es]=Textura 2048x2048 8bits srgb
Name[fr]=Texture 2048x2048 8bit srgb
Name[it]=Trama 2048x2048 8bit srgb
Name[ja]=テクスチャ 2048x2048 8 ビット sRGB
Name[nb]=Tekstur 2048x2048 8bit srgb
Name[nl]=Textuur 2048x2048 8bit srgb
Name[pl]=Tekstura 2048x2048 8bit srgb
Name[pt]=Textura 2048x2048 8-bits sRGB
......
......@@ -9,6 +9,7 @@ Name[es]=Textura 256x256 8bits srgb
Name[fr]=Texture 256x256 8bit srgb
Name[it]=Trama 256x256 8bit srgb
Name[ja]=テクスチャ 256x256 8 ビット sRGB
Name[nb]=Tekstur 256x256 8bit srgb
Name[nl]=Textuur 256x256 8bit srgb
Name[pl]=Tekstura 256x256 8bit srgb
Name[pt]=Textura 256x256 8-bits sRGB
......
......@@ -9,6 +9,7 @@ Name[es]=Textura 4096x4096 8bits srgb
Name[fr]=Texture 4096x4096 8bit srgb
Name[it]=Trama 4096x4096 8bit srgb
Name[ja]=テクスチャ 4096x4096 8 ビット sRGB
Name[nb]=Tekstur 4096x4096 8bit srgb
Name[nl]=Textuur 4096x4096 8bit srgb
Name[pl]=Tekstura 4096x4096 8bit srgb
Name[pt]=Textura 4096x4096 8-bits sRGB
......
......@@ -9,6 +9,7 @@ Name[es]=Textura 512x512 8bits srgb
Name[fr]=Texture 512x512 8bit srgb
Name[it]=Trama 512x512 8bit srgb
Name[ja]=テクスチャ 512x512 8 ビット sRGB
Name[nb]=Tekstur 512x512 8bit srgb
Name[nl]=Textuur 512x512 8bit srgb
Name[pl]=Tekstura 512x512 8bit srgb
Name[pt]=Textura 512x512 8-bits sRGB
......
......@@ -7,6 +7,7 @@ Name[en_GB]=Animator
Name[es]=Animador
Name[it]=Animatore
Name[ja]=アニメータ
Name[nb]=Animator
Name[nl]=Animator
Name[pl]=Animator
Name[pt]=Animador
......@@ -23,6 +24,7 @@ Comment[en_GB]=Animator
Comment[es]=Animador
Comment[it]=Animatore
Comment[ja]=アニメータ
Comment[nb]=Animator
Comment[nl]=Animator
Comment[pl]=Animator
Comment[pt]=Animador
......
......@@ -6,6 +6,7 @@ Name[en_GB]=ColourSlider
Name[es]=Selector de color
Name[it]=Cursore del colore
Name[ja]=カラースライダー
Name[nb]=ColorSlider
Name[nl]=KleurSchuifknop
Name[pl]=Suwa koloru
Name[pt]=Barras de Cores
......
......@@ -9,6 +9,7 @@ Name[fr]=Manager de ressources
Name[ia]=Gerente de Ressources
Name[it]=Gestore delle risorse
Name[ja]=リソースマネージャ
Name[nb]=Ressursbehandler
Name[nl]=Beheerder van hulpbronnen
Name[pl]=Zarządca zasobów
Name[pt]=Gestor de Recursos
......
......@@ -7,6 +7,7 @@ Name[es]=Filtros de colores indexados
Name[fr]=Index des filtres de couleurs
Name[it]=Filtro numero di colori
Name[ja]=インデックスカラーフィルタ
Name[nb]=Indeks fargefilter
Name[nl]=Index van kleurfilters
Name[pl]=Filtr indeksowania kolorów
Name[pt]=Filtro de Cores Indexadas
......@@ -23,6 +24,7 @@ Comment[es]=Reduce la cantidad de colores que hay en una imagen a una paleta pre
Comment[fr]=Réduire le nombre de couleurs dans l'image à une palette pré-définie
Comment[it]=Riduci la quantità di colori nell'immagine a una tavolozza predefinita.
Comment[ja]=あらかじめ定義されたパレットに適合するように画像の色数を減らします。
Comment[nb]=Reduserer antall farger i bildet til en palett definert på forhånd.
Comment[nl]=Reduceer de hoeveelheid kleuren in de afbeelding tot een voorgedefinieerd palet.
Comment[pl]=Zmniejsz liczbę barw na obrazie do uprzednio określonej palety.
Comment[pt]=Reduz a quantidade de cores na imagem para uma paleta predefinida.
......
......@@ -8,6 +8,7 @@ Name[fi]=Posterisointisuodin
Name[fr]=Filtre postérisation
Name[it]=Filtro Posterizza
Name[ja]=ポスタリゼーションフィルタ
Name[nb]=Posteriseringsfilter
Name[nl]=Filter voor poster maken
Name[pl]=Filtr posteryzacji
Name[pt]=Filtro de 'Poster'
......@@ -24,6 +25,7 @@ Comment[es]=Reduce la cantidad de colores que hay en una imagen a un intervalo f
Comment[fr]=Réduire le nombre de couleurs dans l'image dans un intervalle fixe
Comment[it]=Riduci la quantità di colori nell'immagine a un intervallo prefissato
Comment[ja]=画像の色数を固定間隔で減らします
Comment[nb]=Reduserer antall farger i bildet til et fast intervall
Comment[nl]=Reduceer de hoeveelheid kleuren in de afbeelding tot een vast interval
Comment[pl]=Zmniejsz liczbę barw na obrazie do stałego przedziału
Comment[pt]=Reduz a quantidade de cores na imagem para um intervalo fixo
......
......@@ -10,6 +10,7 @@ Name[fi]=Kritan HeightMap-vientisuodatin
Name[fr]=Filtre d'exportation HeightMap pour Krita
Name[it]=Filtro di esportazione HeightMap per Krita
Name[ja]=Krita ハイトマップエクスポートフィルタ
Name[nb]=HeightMap eksportfilter for Krita
Name[nl]=HeightMap-exportfilter voor Krita
Name[pl]=Filtr eksportu MapyWysokości z Krita
Name[pt]=Filtro de Exportação de HeightMap para o Krita
......
......@@ -10,6 +10,7 @@ Name[fi]=Kritan HeightMap-tuontisuodatin
Name[fr]=Filtre d'importation HeightMap pour Krita
Name[it]=Filtro di importazione HeightMap per Krita
Name[ja]=Krita ハイトマップインポートフィルタ
Name[nb]=HeightMap importfilter for Krita
Name[nl]=HeightMap-importfilter voor Krita
Name[pl]=Filtr importu MapyWysokości do Krity
Name[pt]=Filtro de Importação de HeightMap para o Krita
......
......@@ -7,6 +7,7 @@ Name[es]=Filtro de Krita de exportación a secuencia PNG
Name[fi]=Kritan PNG Sequence -vientisuodatin
Name[it]=Filtro di esportazione sequenza PNG per Krita
Name[ja]=Krita PNG シーケンスエクスポートフィルタ
Name[nb]=PNG sekvens-eksportfilter for Krita
Name[nl]=PNG volgorde exportfilter voor Krita
Name[pl]=Filtr eksportu szeregu PNG z Krita
Name[pt]=Filtro de Exportação de Sequências em PNG para o Krita
......
......@@ -9,6 +9,7 @@ Name[fi]=Kritan TGA-vientisuodatin
Name[fr]=Filtre d'exportation TGA de Krita
Name[it]=Filtro di esportazione TGA per Krita
Name[ja]=Krita TGA エクスポートフィルタ
Name[nb]=TGA-eksportfilter for Krita
Name[nl]=TGA-exportfilter voor Krita
Name[pl]=Filtr eksportu TGA z Krita
Name[pt]=Filtro de Exportação de TGA para o Krita
......
......@@ -9,6 +9,7 @@ Name[fi]=Kritan TGA-tuontisuodatin
Name[fr]=Filtre d'importation TGA de Krita
Name[it]=Filtro di importazione TGA per Krita
Name[ja]=Krita TGA インポートフィルタ
Name[nb]=TGA-importfilter for Krita
Name[nl]=TGA-importfilter voor Krita
Name[pl]=Filtr importu TGA do Krita
Name[pt]=Filtro de Importação de TGA para o Krita
......
......@@ -57,8 +57,5 @@ void KisSmudgeOption::readOptionSetting(const KisPropertiesConfiguration* settin
{
KisRateOption::readOptionSetting(setting);
if (setting->hasProperty(name() + "Mode"))
m_mode = (Mode)setting->getInt(name() + "Mode", m_mode);
else
m_mode = SMEARING_MODE;
m_mode = (Mode)setting->getInt(name() + "Mode", SMEARING_MODE);
}
......@@ -6,6 +6,7 @@ Name[en_GB]=Grid Brush
Name[es]=Pincel de rejilla
Name[it]=Pennello in griglia
Name[ja]=グリッドブラシ
Name[nb]=Rutenettpensel
Name[nl]=Rasterpenseel
Name[pl]=Pędzel siatki
Name[pt]=Pincel em Grelha
......
......@@ -1090,7 +1090,7 @@ void KisNodeManager::Private::mergeTransparencyMaskAsAlpha(bool writeToLayers)
// guaranteed by KisActionManager
KIS_ASSERT_RECOVER_RETURN(node->inherits("KisTransparencyMask"));
if (!parentNode->hasEditablePaintDevice()) {
if (writeToLayers && !parentNode->hasEditablePaintDevice()) {
KMessageBox::information(view,
i18n("Cannot write alpha channel of "
"the parent layer \"%1\".\n"
......@@ -1100,12 +1100,14 @@ void KisNodeManager::Private::mergeTransparencyMaskAsAlpha(bool writeToLayers)
return;
}
KIS_ASSERT_RECOVER_RETURN(parentNode->hasEditablePaintDevice());
KisPaintDeviceSP dstDevice =
writeToLayers ?
parentNode->paintDevice() :
new KisPaintDevice(*parentNode->paintDevice());
KisPaintDeviceSP dstDevice;
if (writeToLayers) {
KIS_ASSERT_RECOVER_RETURN(parentNode->paintDevice());
dstDevice = parentNode->paintDevice();
} else {
KisPaintDeviceSP copyDevice = parentNode->projection();
dstDevice = new KisPaintDevice(*copyDevice);
}
const KoColorSpace *dstCS = dstDevice->colorSpace();
......
......@@ -57,6 +57,7 @@ public:
if (size > m_size) {
try {
m_data.reset(new quint8[size]);
m_size = size;
}
catch (std::bad_alloc) {
QMessageBox::critical(0, i18n("Fatal Error"), i18n("Krita has run out of memory and has to close."));
......
......@@ -78,8 +78,8 @@ int MessageHandler::askQuestion(const QString& message,
buttonNo, dontShowAskAgainName, options);
}
else {
return askQuestion(message, dlgType, defaultResult, buttonYes,
buttonNo, dontShowAskAgainName, options);
return askQuestionInternal(message, dlgType, defaultResult, buttonYes,
buttonNo, dontShowAskAgainName, options);
}
}
......
......@@ -8,6 +8,8 @@ Comment[en_GB]=Tool for Calligra Page Applications
Comment[es]=Herramienta para las aplicaciones de páginas de Calligra
Comment[fi]=Calligran sivupohjaisten sovellusten työkalu
Comment[it]=Strumento per le applicazioni di Calligra Page
Comment[ja]=Calligra Page 用ツール
Comment[nb]=Verktøy for Calligra side-programmer
Comment[nl]=Hulpmiddel voor Calligra pagina-applicatie
Comment[pl]=Narzędzie dla aplikacji Stron Calligry
Comment[pt]=Ferramenta para as Aplicações de Páginas do Calligra
......
......@@ -17,7 +17,7 @@ include_directories(
)
#build a shared library
set(koreport_LIB_SRCS
set(koreport_LIB_SRCS
common/krutils.cpp
common/krpos.cpp
common/krsize.cpp
......@@ -84,6 +84,7 @@ set(koreport_LIB_SRCS
items/label/KoReportDesignerItemLabel.cpp
items/label/krscriptlabel.cpp
items/label/KoReportLabelPlugin.cpp
items/label/BoundedTextItem.cpp
items/check/KoReportItemCheck.cpp
items/check/KoReportDesignerItemCheck.cpp
......
......@@ -24,6 +24,11 @@
#include <klocalizedstring.h>
#include <renderobjects.h>
KoReportItemLine::KoReportItemLine()
{
createProperties();
}
KoReportItemLine::KoReportItemLine(QDomNode & element)
{
createProperties();
......@@ -59,6 +64,10 @@ KoReportItemLine::KoReportItemLine(QDomNode & element)
}
}
KoReportItemLine::~KoReportItemLine()
{
delete m_set;
}
void KoReportItemLine::createProperties()
{
......
......@@ -39,11 +39,9 @@ class Line;
class KOREPORT_EXPORT KoReportItemLine : public KoReportItemBase
{
public:
KoReportItemLine() {
createProperties();
}
KoReportItemLine();
explicit KoReportItemLine(QDomNode & element);
~KoReportItemLine() {};
~KoReportItemLine();
virtual QString typeName() const;
virtual int renderSimpleData(OROPage *page, OROSection *section, const QPointF &offset, const QVariant &data, KRScriptHandler *script);
......
......@@ -92,7 +92,7 @@ void KoReportDesignerItemCheck::paint(QPainter* painter, const QStyleOptionGraph
painter->setPen(m_foregroundColor->value().value<QColor>());
if ((Qt::PenStyle)m_lineStyle->value().toInt() == Qt::NoPen || m_lineWeight->value().toInt() <= 0) {
painter->setPen(QPen(QColor(224, 224, 224)));
painter->setPen(QPen(Qt::lightGray));
} else {
painter->setPen(QPen(m_lineColor->value().value<QColor>(), m_lineWeight->value().toInt(), (Qt::PenStyle)m_lineStyle->value().toInt()));
}
......
......@@ -25,6 +25,11 @@
#include <renderobjects.h>
#include "renderer/scripting/krscripthandler.h"
KoReportItemCheck::KoReportItemCheck()
{
createProperties();
}
KoReportItemCheck::KoReportItemCheck(QDomNode &element) : m_value(false)
{
createProperties();
......
......@@ -34,10 +34,8 @@ class Check;
class KoReportItemCheck : public KoReportItemBase
{
public:
KoReportItemCheck() {
createProperties();
};
KoReportItemCheck(QDomNode &element);
KoReportItemCheck();
explicit KoReportItemCheck(QDomNode &element);
virtual ~KoReportItemCheck();
virtual QString typeName() const;
......
......@@ -106,7 +106,7 @@ void KoReportDesignerItemField::paint(QPainter* painter, const QStyleOptionGraph
if ((Qt::PenStyle)m_lineStyle->value().toInt() == Qt::NoPen || m_lineWeight->value().toInt() <= 0) {
painter->setPen(QPen(QColor(224, 224, 224)));
painter->setPen(QPen(Qt::lightGray));
} else {
painter->setPen(QPen(m_lineColor->value().value<QColor>(), m_lineWeight->value().toInt(), (Qt::PenStyle)m_lineStyle->value().toInt()));
}
......
......@@ -25,9 +25,9 @@
#include "renderer/scripting/krscripthandler.h"
KoReportItemField::~KoReportItemField()
KoReportItemField::KoReportItemField()
{
delete m_set;
createProperties();
}
KoReportItemField::KoReportItemField(QDomNode & element)
......@@ -74,6 +74,11 @@ KoReportItemField::KoReportItemField(QDomNode & element)
}
}
KoReportItemField::~KoReportItemField()
{
delete m_set;
}
void KoReportItemField::createProperties()
{
m_set = new KoProperty::Set(0, "Field");
......
......@@ -36,10 +36,8 @@ class Field;
class KoReportItemField : public KoReportItemBase
{
public:
KoReportItemField() {
createProperties();
};
KoReportItemField(QDomNode & element);
KoReportItemField();
explicit KoReportItemField(QDomNode & element);
virtual ~KoReportItemField();
virtual QString typeName() const;
......
......@@ -106,7 +106,7 @@ void KoReportDesignerItemImage::paint(QPainter* painter, const QStyleOptionGraph
}
//Draw a border so user knows the object edge
painter->setPen(QPen(QColor(224, 224, 224)));
painter->setPen(QPen(Qt::lightGray));
painter->drawRect(rect());
......
......@@ -25,6 +25,11 @@
#include <kcodecs.h>
#include <renderobjects.h>
KoReportItemImage::KoReportItemImage()
{
createProperties();
}
KoReportItemImage::KoReportItemImage(QDomNode & element)
{
createProperties();
......
......@@ -42,9 +42,7 @@ class Image;
class KoReportItemImage : public KoReportItemBase
{
public:
KoReportItemImage() {
createProperties();
}
KoReportItemImage();
explicit KoReportItemImage(QDomNode & element);
virtual ~KoReportItemImage();
......
/*
KoReport report rendering library
Copyright (C) 2014 Adam Pigg <adam@piggz.co.uk>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#include "BoundedTextItem.h"
#include <QPainter>
#include <QStyleOptionGraphicsItem>
#include <QKeyEvent>
#include <QDebug>
BoundedTextItem::BoundedTextItem(QGraphicsItem* parent): QGraphicsTextItem(parent)
{
setTextInteractionFlags(Qt::TextEditorInteraction);
}
QRectF BoundedTextItem::boundingRect() const
{
if (parentItem()) {
return parentItem()->boundingRect();
}
return QGraphicsTextItem::boundingRect();
}
void BoundedTextItem::paint( QPainter *painter, const QStyleOptionGraphicsItem *o, QWidget *w)
{
QColor bg = m_backgroundColor.isValid() ? m_backgroundColor : o->palette.base().color();
bg.setAlphaF(m_backgroundOpacity * 0.01);
QColor fc = m_foregroundColor.isValid() ? m_foregroundColor : o->palette.text().color();
painter->setBrush(bg);
painter->setPen(fc);
painter->drawRect(boundingRect());
QStyleOptionGraphicsItem opt(*o);
opt.state &= ~QStyle::State_HasFocus;
QGraphicsTextItem::paint(painter, &opt, w);
}
void BoundedTextItem::setBackgroudColor(const QColor& bc)
{
m_backgroundColor = bc;
}
void BoundedTextItem::setForegroundColor(const QColor& fc)
{
m_foregroundColor = fc;
}
void BoundedTextItem::setDisplayFont(const QFont& f)
{
m_font = f;
setFont(m_font);
}
void BoundedTextItem::setBackgroudOpacity(int o)
{
m_backgroundOpacity = o;
}
void BoundedTextItem::keyReleaseEvent(QKeyEvent* event)
{
if (event->key() == Qt::Key_Escape) {
emit exitEditMode();
} else {
QGraphicsTextItem::keyReleaseEvent(event);
}
}
#include "BoundedTextItem.moc"
/*
KoReport report rendering library
Copyright (C) 2014 Adam Pigg <adam@piggz.co.uk>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef KOREPORT_BOUNDEDTEXTITEM_H
#define KOREPORT_BOUNDEDTEXTITEM_H
#include <QGraphicsTextItem>
#include <QFont>
/**
* @brief Subclass of QGraphicsTextItem which simply forces
* its boundingRect to be the same as its parent.
* By default a QGraphicsTextItem will size to its text and
* we want it to size to the parent item.
*
*/
class BoundedTextItem : public QGraphicsTextItem
{
Q_OBJECT
public:
explicit BoundedTextItem(QGraphicsItem *parent);
virtual QRectF boundingRect() const;
virtual void paint( QPainter *painter, const QStyleOptionGraphicsItem *o, QWidget *w);
void setBackgroudColor(const QColor &bc);
void setForegroundColor(const QColor &fc);
void setBackgroudOpacity(int o);
void setDisplayFont(const QFont &f);
protected:
virtual void keyReleaseEvent ( QKeyEvent * event );
private:
QColor m_backgroundColor;
QColor m_foregroundColor;
QFont m_font;
int m_backgroundOpacity;
signals:
void exitEditMode();
};
#endif // KOREPORT_BOUNDEDTEXTITEM_H
......@@ -20,6 +20,7 @@
#include "KoReportDesignerItemLabel.h"
#include <KoReportDesignerItemBase.h>
#include <KoReportDesigner.h>
#include "reportscene.h"
#include <QDomDocument>
#include <QPainter>
......@@ -28,6 +29,8 @@
#include <koproperty/EditorView.h>
#include <QGraphicsScene>
#include <QGraphicsSceneMouseEvent>
#include <QTextCursor>
//
// class ReportEntityLabel
......@@ -44,6 +47,15 @@ void KoReportDesignerItemLabel::init(QGraphicsScene *scene, KoReportDesigner *d)
this, SLOT(slotPropertyChanged(KoProperty::Set&,KoProperty::Property&)));
setZValue(Z);
setFlag(ItemIsFocusable);
m_inlineEdit = new BoundedTextItem(this);
m_inlineEdit->setVisible(false);
m_inlineEdit->setFlag(ItemIsFocusable);
m_inlineEdit->setFlag(ItemIsSelectable, false);
m_inlineEdit->setPlainText(text());