void OperatorUi::paintEvent(QPaintEvent*) { QStyleOption opt; opt.init(this); QPainter p(this); style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); }
void FmAddModifyDialog::paintEvent(QPaintEvent *) { QStyleOption opt; opt.init(this); QPainter p(this); style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); }
QRect GroupBoxTaskMenuInlineEditor::editRectangle() const { QWidget *w = widget(); QStyleOption opt; // ## QStyleOptionGroupBox opt.init(w); return QRect(QPoint(), QSize(w->width(),20)); }
void PeakMeter::paintEvent(QPaintEvent *){ QPainter painter(this); //to allow stylesheets QStyleOption opt; opt.init(this); style()->drawPrimitive(QStyle::PE_Widget, &opt, &painter, this); //meter if(isEnabled()){ //draw bottom to up painter.fillRect(1, height()-1 , width()-2, -currentPeak * height(), usingGradient ? gradient : QBrush(solidColor) ); //draw max peak marker if(maxPeak > 0 && paintingMaxPeak){ int peakY = height() - maxPeak * height(); painter.fillRect(0, peakY, width(), 3, MAX_PEAK_COLOR); } } //decay long ellapsedTimeFromLastUpdate = QDateTime::currentMSecsSinceEpoch() - lastUpdate; currentPeak -= (float)ellapsedTimeFromLastUpdate/decayTime; if(currentPeak < 0){ currentPeak = 0; } lastUpdate = QDateTime::currentMSecsSinceEpoch(); //max peak long ellapsedTimeFromLastMaxPeak = QDateTime::currentMSecsSinceEpoch() - lastMaxPeakTime; if(ellapsedTimeFromLastMaxPeak >= MAX_PEAK_SHOW_TIME){ maxPeak = 0; } }
void QCustomTabWidget::paintEvent(QPaintEvent *) { QStyleOption opt; opt.init(this); QPainter p(this); style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); }
void SongsQueryWideget::paintEvent(QPaintEvent *) { QStyleOption opt; opt.init(this); QPainter p(this); style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); }
/* Necesario para poner estilos a traves de hojas CSS. */ void BlWidget::paintEvent ( QPaintEvent * ) { QStyleOption option; option.initFrom ( this ); QPainter painter ( this ); style()->drawPrimitive ( QStyle::PE_Widget, &option, &painter, this ); }
void LibraryReadingLineGridViewer::paintEvent(QPaintEvent* ) { QStyleOption opt; opt.init(this); QPainter p(this); style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); }
void EditNullView::paintEvent(QPaintEvent * event) { QStyleOption opt; opt.init(this); QPainter p(this); style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); }
void SyncMeasuresDialog::paintEvent ( QPaintEvent * event ) { QStyleOption opt; opt.init(this); QPainter p(this); style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); }
void ViewerBookmark::paintEvent( QPaintEvent* ) { QStyleOption opt; opt.init(this); QPainter p(this); style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); }
void WDisplay::paintEvent(QPaintEvent* ) { QStyleOption option; option.initFrom(this); QStylePainter p(this); p.drawPrimitive(QStyle::PE_Widget, option); if (m_pPixmapBack) { m_pPixmapBack->draw(0, 0, &p); } // If we are disabled, use the disabled pixmaps. If not, use the regular // pixmaps. const QVector<PaintablePointer>& pixmaps = (isDisabled() && m_bDisabledLoaded) ? m_disabledPixmaps : m_pixmaps; if (pixmaps.empty()) { return; } int idx = getActivePixmapIndex(); // Clamp active pixmap index to valid ranges. if (idx < 0) { idx = 0; } else if (idx >= pixmaps.size()) { idx = pixmaps.size() - 1; } PaintablePointer pPixmap = pixmaps[idx]; if (pPixmap) { pPixmap->draw(0, 0, &p); } }
void WidgetBaseParameter::paintEvent(QPaintEvent *) { QStyleOption opt; opt.init(this); QPainter p(this); style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); }
void CQSplitterHandle:: paintEvent(QPaintEvent *) { QStylePainter ps(this); QStyleOption opt; #if 0 ps.fillRect(rect(), QBrush(QColor(100,100,150))); #else opt.initFrom(this); opt.rect = rect(); opt.state = (! area_->isVerticalDockArea() ? QStyle::State_None : QStyle::State_Horizontal); if (mouseState_.pressed) opt.state |= QStyle::State_Sunken; if (mouseOver_) opt.state |= QStyle::State_MouseOver; ps.drawControl(QStyle::CE_Splitter, opt); #endif }
void ContextMenu::paintEvent(QPaintEvent *event) { Q_UNUSED(event) QStyleOption opt; opt.init(this); QPainter p(this); style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); }
void MiniatureViewLandscape::paintEvent (QPaintEvent *) { QStyleOption opt; opt.init(this); QPainter p(this); style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); }
void NotificationWidget::paintEvent(QPaintEvent* event) { QPainter painter(this); QStyleOption opt; opt.init(this); style()->drawPrimitive(QStyle::PE_PanelButtonBevel, &opt, &painter, this); }
void Synthesis_Result::paintEvent( QPaintEvent * event ) { // got it somewhere from internet QStyleOption opt; opt.init(this); QPainter p(this); style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); }
void SelectionPad::paintEvent(QPaintEvent *event) { Q_UNUSED(event); QStyleOption myOption; myOption.initFrom(this); QPainter myPainter(this); style()->drawPrimitive( QStyle::PE_Widget, &myOption, &myPainter, this); }
void FakeToolTip::resizeEvent(QResizeEvent *) { QStyleHintReturnMask frameMask; QStyleOption option; option.init(this); if (style()->styleHint(QStyle::SH_ToolTip_Mask, &option, this, &frameMask)) setMask(frameMask.region); }
void ContactWidget::paintEvent(QPaintEvent *) { QStyleOption option; option.initFrom(this); option.state = QStyle::State_Open; QPainter painter(this); //style().drawControl(QStyle::CE_Widget, &option, &painter, this); }
void ToolBox::paintEvent( QPaintEvent* e) { QStyleOption opt; opt.init(this); QPainter p(this); style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); QWidget::paintEvent(e); }
void HorizontalLine::paintEvent(QPaintEvent*) { // Must do this for stylesheets to work. QStyleOption opt; opt.init(this); QPainter p(this); style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); }
void AboutQtDialog::paintEvent(QPaintEvent * pe) { QStyleOption opt; opt.init(this); QPainter p(this); p.setClipRect(pe->rect()); style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); }
void AboutWidget::paintEvent(QPaintEvent* event) { QStyleOption opt; opt.init(this); QStylePainter p(this); p.drawPrimitive(QStyle::PE_Widget, opt); QWidget::paintEvent(event); }
void DocumentWidget::paintEvent(QPaintEvent *) { QStyleOption o; o.initFrom(this); QPainter p(this); style()->drawPrimitive( QStyle::PE_Widget, &o, &p, this); }
/*! \reimp */ void QColumnViewGrip::paintEvent(QPaintEvent *event) { QPainter painter(this); QStyleOption opt; opt.initFrom(this); style()->drawControl(QStyle::CE_ColumnViewGrip, &opt, &painter, this); event->accept(); }
void ContentPane::paintEvent(ATTR_UNUSED QPaintEvent* event) { Q_UNUSED(event) QStyleOption o; o.initFrom(this); QPainter p(this); style()->drawPrimitive(QStyle::PE_Widget, &o, &p, this); }
void CustomMailPage::paintEvent(QPaintEvent *AEvent) { QStyleOption opt; opt.init(this); QPainter p(this); p.setClipRect(AEvent->rect()); style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); }
void QBasicFormMoveableWidget::paintEvent(QPaintEvent *event) { QStyleOption opt; opt.init(this); QPainter p(this); style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this); QWidget::paintEvent(event); }