chore: ScreenSetupView, use auto where possible
This commit is contained in:
parent
a23856ee09
commit
572953d5ba
1 changed files with 1 additions and 1 deletions
|
|
@ -126,7 +126,7 @@ void ScreenSetupView::startDrag(Qt::DropActions)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const QPixmap &pixmap = model()->screen(indexes[0]).pixmap();
|
const QPixmap &pixmap = model()->screen(indexes[0]).pixmap();
|
||||||
QDrag *pDrag = new QDrag(this);
|
auto *pDrag = new QDrag(this);
|
||||||
pDrag->setPixmap(pixmap);
|
pDrag->setPixmap(pixmap);
|
||||||
pDrag->setMimeData(pData);
|
pDrag->setMimeData(pData);
|
||||||
pDrag->setHotSpot(QPoint(pixmap.width() / 2, pixmap.height() / 2));
|
pDrag->setHotSpot(QPoint(pixmap.width() / 2, pixmap.height() / 2));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue