コード例 #1
0
ファイル: LCDST7565.cpp プロジェクト: nakoustix/ThereMIDIn
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();

}
コード例 #2
0
ファイル: glwidget.cpp プロジェクト: vfdev-5/GameOf4
void GLWidget::paintEvent(QPaintEvent *e)
{
    _painter->begin(this);

    _scene->draw();
    _figures->draw();

    drawMenuButton();

    _painter->end();

}
コード例 #3
0
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));
    }
}