Skip to content
Snippets Groups Projects
Commit 47b2bde0 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

Qml Designer.ItemLibrary: fixes graphical glitch (dnd)

See BAUHAUS-277
parent 3b7527de
No related merge requests found
...@@ -266,6 +266,7 @@ void ItemLibrary::setMetaInfo(const MetaInfo &metaInfo) ...@@ -266,6 +266,7 @@ void ItemLibrary::setMetaInfo(const MetaInfo &metaInfo)
if (!itemLibraryRepresentationList.isEmpty() && metaInfo.hasNodeMetaInfo(type)) { if (!itemLibraryRepresentationList.isEmpty() && metaInfo.hasNodeMetaInfo(type)) {
foreach (ItemLibraryInfo itemLibraryRepresentation, itemLibraryRepresentationList) { foreach (ItemLibraryInfo itemLibraryRepresentation, itemLibraryRepresentationList) {
QImage image(64, 64, QImage::Format_RGB32); // = m_d->m_queryView->paintObject(nodeInfo, itemLibraryRepresentation.properties()); TODO QImage image(64, 64, QImage::Format_RGB32); // = m_d->m_queryView->paintObject(nodeInfo, itemLibraryRepresentation.properties()); TODO
image.fill(0xffffffff);
if (!image.isNull()) { if (!image.isNull()) {
QPainter p(&image); QPainter p(&image);
QPen pen(Qt::gray); QPen pen(Qt::gray);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment