25 #include <QApplication>
34 QPushButton(
"", parent),
35 popup_(rows, cols, this)
37 connect(
this, SIGNAL(clicked(
bool)),
this, SLOT(
on_clicked(
bool)));
59 for (
unsigned int r = 0; r < rows; r++)
60 for (
unsigned int c = 0; c < cols; c++)
75 for (
unsigned int r = 0; r < rows; r++)
76 for (
unsigned int c = 0; c < cols; c++)
78 QBrush(palette[r * cols + c]));
95 QPushButton::paintEvent(e);
101 p.setPen(QApplication::palette().color(QPalette::Dark));