*
*/
-#include <QMaemo5ValueButton>
-#include <QMaemo5InformationBox>
-#include <QApplication>
#include <QtDBus/QDBusConnection>
#include <QtDBus/QDBusMessage>
#include <QtGui/QMessageBox>
#include <QtGui/QLabel>
#include <QtGui/QClipboard>
+#include <QtGui/QDialogButtonBox>
+#include <QMaemo5ValueButton>
+#include <QMaemo5InformationBox>
+#include <QApplication>
#include <QDebug>
#include "detailwindow.h"
#include "contactmanager.h"
QHBoxLayout* layout = new QHBoxLayout();
QLabel* name = new QLabel(tr("Name"));
QPushButton* button = new QPushButton(tr("Add"));
+
+ QDialogButtonBox* buttons = new QDialogButtonBox;
+ buttons->setCenterButtons(false);
+ buttons->addButton(button, QDialogButtonBox::AcceptRole);
connect(button, SIGNAL(pressed()), this, SLOT(addToContacts()));
- layout->addWidget(name);
- layout->addWidget(addContactInput_);
- layout->addWidget(button);
+
+ QHBoxLayout* left = new QHBoxLayout();
+ left->addWidget(name);
+ left->addWidget(addContactInput_);
+
+ layout->addLayout(left, Qt::AlignLeft);
+ layout->addWidget(buttons);
addDialog_->setLayout(layout);
}