- horizontalLayout->addWidget(list);
-
-#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()));
+ addButton(tr("Add bookmark"), this, SLOT(onAdd()), "add");