386 if (manager && manager->
object 395 for (
int cnum = 0; cnum < actions.
size(); ++cnum) {
401 int x1 =
qMin(-hotSpot.
x(), 0);
403 int y1 =
qMin(-hotSpot.
y(), 0);
412 QPoint newHotSpot = hotSpot;
414 #if defined(Q_OS_WINCE) 419 QPoint hotspotInPM = newHotSpot - pmDest;
423 newHotSpot =
QPoint(
int(r * reqw), newHotSpot.y());
424 if (newHotSpot.x() + cpm.
width() > reqw)
431 newHotSpot =
QPoint(newHotSpot.x(), int(r * reqh));
432 if (newHotSpot.y() + cpm.
height() > reqh)
444 newCursor.fill(
QColor(0, 0, 0, 0));
446 p.drawPixmap(pmDest, pm, srcRect);
447 p.drawPixmap(
qMax(0,newHotSpot.x()),
qMax(0,newHotSpot.y()),cpm);
The QPainter class performs low-level painting on widgets and other paint devices.
The QColor class provides colors based on RGB, HSV or CMYK values.
QMap< Qt::DropAction, QCursor > cursors
The QCursor class provides a mouse cursor with an arbitrary shape.
Q_DECL_CONSTEXPR const T & qMin(const T &a, const T &b)
int width() const
Returns the width of the pixmap.
int left() const
Returns the x-coordinate of the rectangle's left edge.
int width() const
Returns the width of the rectangle.
int height() const
Returns the height of the rectangle.
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
const T & at(int i) const
Returns the item at index position i in the list.
QPixmap pixmap() const
Returns the pixmap used to represent the data in a drag and drop operation.
static QDragManager * self()
void setY(int y)
Sets the y coordinate of this point to the given y coordinate.
int top() const
Returns the y-coordinate of the rectangle's top edge.
The QPoint class defines a point in the plane using integer precision.
int size() const
Returns the number of items in the list.
The QRect class defines a rectangle in the plane using integer precision.
QRect rect() const
Returns the pixmap's enclosing rectangle.
int y() const
Returns the y coordinate of this point.
The QPixmap class is an off-screen image representation that can be used as a paint device...
int height() const
Returns the height of the pixmap.
The QSize class defines the size of a two-dimensional object using integer point precision.
QPixmap dragCursor(Qt::DropAction action) const
int x() const
Returns the x coordinate of this point.
bool isNull() const
Returns true if this is a null pixmap; otherwise returns false.
bool hasCustomDragCursors() const
void setX(int x)
Sets the x coordinate of this point to the given x coordinate.
QPoint hotSpot() const
Returns the position of the hot spot relative to the top-left corner of the cursor.
The QList class is a template class that provides lists.