void SurfaceImpl::FillRectangle(PRectangle rc, Surface &surfacePattern) { Q_ASSERT(painter); SurfaceImpl &si = static_cast<SurfaceImpl &>(surfacePattern); QPixmap *pm = static_cast<QPixmap *>(si.pd); if (pm) { QBrush brsh(Qt::black, *pm); painter->setPen(Qt::NoPen); painter->setBrush(brsh); drawRect(rc); } else { FillRectangle(rc, ColourDesired(0)); } }
ColourDesired Platform::ChromeHighlight() { QColor c(Qt::lightGray); return ColourDesired(c.red(), c.green(), c.blue()); }
ColourDesired Platform::Chrome() { QColor c(Qt::gray); return ColourDesired(c.red(), c.green(), c.blue()); }
ColourDesired Platform::ChromeHighlight() { return ColourDesired(0xff,0xff,0xff); }
// Manage system wide parameters. ColourDesired Platform::Chrome() { return ColourDesired(0xe0,0xe0,0xe0); }