Commit 5529f07f authored by Marco Bubke's avatar Marco Bubke

QmlDesigner: Remove unused ItemLibraryModel::createDragPixmap

Change-Id: I1a8838969a5b5bd4917ee35afbbde0348737660c
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
parent a5fb3ad6
......@@ -356,18 +356,6 @@ int ItemLibraryModel::getHeight(const ItemLibraryEntry &itemLibraryEntry)
return 64;
}
QPixmap ItemLibraryModel::createDragPixmap(int , int )
{
QImage dragImage(10, 10, QImage::Format_ARGB32); // TODO: draw item drag icon
dragImage.fill(0x00ffffff); //### todo for now we disable the preview image
QPainter p(&dragImage);
QPen pen(Qt::gray);
// pen.setWidth(2);
// p.setPen(pen);
// p.drawRect(1, 1, dragImage.width() - 2, dragImage.height() - 2);
return QPixmap::fromImage(dragImage);
}
void registerQmlTypes()
{
registerItemLibrarySortedModel();
......
......@@ -94,7 +94,6 @@ private: // functions
int getWidth(const ItemLibraryEntry &entry);
int getHeight(const ItemLibraryEntry &entry);
QPixmap createDragPixmap(int width, int height);
private: // variables
QMap<int, ItemLibrarySection*> m_sectionModels;
......
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