+ if (!showButtons) {
+ return;
+ }
+#ifdef Q_OS_SYMBIAN
+ Q_UNUSED(role);
+ if (!menu) {
+ QAction *menuAction = new QAction(tr("Options"), this);
+ menuAction->setSoftKeyRole(QAction::PositiveSoftKey);
+ menu = new QMenu(this);
+ menuAction->setMenu(menu);
+ }
+ QAction *action = new QAction(label, this);
+ connect(action, SIGNAL(triggered()), receiver, slot);
+ menu->addAction(action);
+#else
+ QPushButton *button = new QPushButton(label, this);
+ connect(button, SIGNAL(clicked()), receiver, slot);