blob: 3c2b1927d9a541801b7bc40e0d219072663ff33e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
//! [0]
QPushButton *button = new QPushButton(tr("Ro&ck && Roll"), this);
//! [0]
//! [1]
button->setIcon(QIcon(":/images/print.png"));
button->setShortcut(tr("Alt+F7"));
//! [1]
//! [2]
void MyWidget::reactToToggle(bool checked)
{
if (checked) {
// Examine the new button states.
...
}
}
//! [2]
|