Opened 19 years ago

Closed 19 years ago

#7 closed enhancement (fixed)

Implement QWidget::setIcon()

Reported by: dmik Owned by: dmik
Priority: normal Milestone: qt-os2-3.3.1-rc07
Component: kernel Version:
Severity: normal Keywords: icon setIcon
Cc:

Description

We need to implement setting the widget's icon and ensure it works both for top-level widgets (i.e. a correct icon appears in the PM window title) and for self-drawn MDI widgets.

Change History (3)

comment:1 by dmik, 19 years ago

Status: newassigned

comment:2 by dmik, 19 years ago

Milestone: qt-os2-3.3.1-rc07

comment:3 by dmik, 19 years ago

Resolution: fixed
Status: assignedclosed

QWidget::setIcon() has been implemented.

Since this method accepts only one pixmap (and also because of a bug in WinCreatePointerIndirect, causing it to ignore hbmMiniPointer and hbmMiniColor fields of the POINTERINFO structure), the specified pixmap is scaled to match the actual (system defined) size either of the normal icon or mini icon, as follows:

  • If the pixmap is equal to or larger than the normal icon size, it is scaled to that size. A mini icon will be implicitly provided by PM using its own scaling.
  • Otherwise, the pixmap is scaled to the size of the mini icon. A normal icon will be implicitly provided by PM using its own scaling.
Note: See TracTickets for help on using tickets.