-#ifndef Q_WS_MAEMO_5
- QDialogButtonBox *buttonBox = new QDialogButtonBox(Qt::Vertical);
-
- QPushButton *goButton = new QPushButton(tr("Go to"), this);
- buttonBox->addButton(goButton, QDialogButtonBox::ActionRole);
- connect(goButton, SIGNAL(clicked()), this, SLOT(onGo()));
-
- QPushButton *closeButton = buttonBox->addButton(QDialogButtonBox::Close);
- connect(closeButton, SIGNAL(clicked()), this, SLOT(onClose()));
-
- QPushButton *addButton = new QPushButton(tr("Add"), this);
- buttonBox->addButton(addButton, QDialogButtonBox::ActionRole);
- connect(addButton, SIGNAL(clicked()), this, SLOT(onAdd()));
-
- QPushButton *deleteButton = new QPushButton(tr("Delete"), this);
- buttonBox->addButton(deleteButton, QDialogButtonBox::DestructiveRole);
- connect(deleteButton, SIGNAL(clicked()), this, SLOT(onDelete()));
-
- horizontalLayout->addWidget(buttonBox);
-#else
- QAction *addBookmarkAction = menuBar()->addAction(tr("Add bookmark"));
- connect(addBookmarkAction, SIGNAL(triggered()), this, SLOT(onAdd()));
-#endif // Q_WS_MAEMO_5
- connect(list, SIGNAL(itemActivated(QListWidgetItem *)),
- this, SLOT(onItemActivated(QListWidgetItem *)));