daily pastebin goal
81%
SHARE
TWEET

Untitled

a guest Feb 12th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .-----.
  2. | Phy |
  3. `-----´
  4.    
  5. void MyWidget::drawIcon(QPainter *painter, QPoint pos) {
  6.      QPixmap pixmap = icon.pixmap(QSize(22, 22),
  7.                                     isEnabled() ? QIcon::Normal
  8.                                                 : QIcon::Disabled,
  9.                                     isChecked() ? QIcon::On
  10.                                                 : QIcon::Off);
  11.      painter->drawPixmap(pos, pixmap);
  12.  }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top