void LCDST7565::drawHome() { this->clear(); if(synth->config->enabled) drawMenuButton(BUT_NOTE, 1); else drawMenuButton(BUT_NOTE_NOT, 1); if(midi->configuration()->enabled ) drawMenuButton(BUT_MIDI, 0); else drawMenuButton(BUT_MIDI_NOT, 0); drawMenuButton(BUT_MENU, 3); drawOffsetBar( CT_PITCH ); drawOffsetBar( CT_VOLUME ); this->display(); }
void GLWidget::paintEvent(QPaintEvent *e) { _painter->begin(this); _scene->draw(); _figures->draw(); drawMenuButton(); _painter->end(); }
void QSpreadsheetHeaderView::paintSection(QPainter *painter, const QRect &rect, int logicalIndex) const { painter->save(); QHeaderView::paintSection(painter, rect, logicalIndex); painter->restore(); if (!rect.isValid() || isSortIndicatorShown()) return; if (isSectionHidden(logicalIndex - 1)) { drawPrevButton(painter, logicalIndex); } if (isSectionHidden(logicalIndex + 1)) { drawNextButton(painter, logicalIndex); } QPoint pos = mapFromGlobal(QCursor::pos()); if (rect.contains(pos)) { drawMenuButton(painter, logicalIndex, buttonMenuRect(logicalIndex).contains(pos)); } }