+#if 0
+ if (!leftSoftKey) {
+ qDebug() << "Adding left soft key";
+ leftSoftKey = new QAction(label, this);
+ leftSoftKey->setSoftKeyRole(QAction::PositiveSoftKey);
+ connect(leftSoftKey, SIGNAL(triggered()), receiver, slot);
+ addAction(leftSoftKey);
+ } else {
+#endif
+ if (!menuBar) {
+ qDebug() << "Creating menu bar";
+ menuBar = new QMenuBar(this);
+ menuBar->addAction(leftSoftKey);
+ }
+ qDebug() << "Adding to menu bar";
+ QAction *action = new QAction(label, this);
+ connect(action, SIGNAL(triggered()), receiver, slot);
+ menuBar->addAction(action);
+#if 0