mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-25 00:54:39 +03:00
ImageItem design time label has been fixed
This commit is contained in:
parent
f927f3a83c
commit
887710d728
@ -241,6 +241,7 @@ void ImageItem::paint(QPainter *ppainter, const QStyleOptionGraphicsItem *option
|
|||||||
if (img.isNull() && itemMode()==DesignMode){
|
if (img.isNull() && itemMode()==DesignMode){
|
||||||
QString text;
|
QString text;
|
||||||
ppainter->setFont(transformToSceneFont(QFont("Arial",10)));
|
ppainter->setFont(transformToSceneFont(QFont("Arial",10)));
|
||||||
|
ppainter->setPen(Qt::black);
|
||||||
if (!datasource().isEmpty() && !field().isEmpty())
|
if (!datasource().isEmpty() && !field().isEmpty())
|
||||||
text = datasource()+"."+field();
|
text = datasource()+"."+field();
|
||||||
else text = tr("Image");
|
else text = tr("Image");
|
||||||
|
Loading…
Reference in New Issue
Block a user