- setAttribute(Qt::WA_Maemo5StackedWindow);
- area_ = new QScrollArea(this);
- layout_ = new QVBoxLayout;
- QHBoxLayout* top = new QHBoxLayout;
- QHBoxLayout* bottom = new QHBoxLayout;
-
- QPushButton* addButton = new QPushButton(QIcon::fromTheme("general_contacts"), tr("Add to contacts"));
- QPushButton* copyButton = new QPushButton(tr("Copy number to clipboard"));
-
- connect(addButton, SIGNAL(pressed()), this, SLOT(showAddToContactsDialog()));
- connect(copyButton, SIGNAL(pressed()), this, SLOT(copyToClipboard()));
-
- nameButton_ = new QMaemo5ValueButton(QIcon::fromTheme("general_default_avatar"), tr("Name"), this);
- streetButton_ = new QMaemo5ValueButton(tr("Street"), this);
- cityButton_ = new QMaemo5ValueButton(tr("City"), this);
- numberButton_ = new QMaemo5ValueButton(QIcon::fromTheme("general_call"), tr("Phone number"), this);
-
- connect(numberButton_, SIGNAL(pressed()), this, SLOT(makeCall()));
-
- top->addWidget(nameButton_);
- bottom->addWidget(streetButton_);
- top->addWidget(numberButton_);
- bottom->addWidget(cityButton_);
- layout_->addLayout(top);
- layout_->addLayout(bottom);
- layout_->addWidget(addButton);
- layout_->addWidget(copyButton);
- area_->setLayout(layout_);
- setCentralWidget(area_);
+ setAttribute(Qt::WA_Maemo5StackedWindow);
+ area_ = new QScrollArea(this);
+ layout_ = new QVBoxLayout;
+ QHBoxLayout* top = new QHBoxLayout;
+ QHBoxLayout* bottom = new QHBoxLayout;
+
+ QPushButton* addButton = new QPushButton(QIcon::fromTheme("general_contacts"), tr("Add to contacts"));
+ QPushButton* copyButton = new QPushButton(tr("Copy number to clipboard"));
+
+ connect(addButton, SIGNAL(pressed()), this, SLOT(showAddToContactsDialog()));
+ connect(copyButton, SIGNAL(pressed()), this, SLOT(copyToClipboard()));
+
+ nameButton_ = new QMaemo5ValueButton(QIcon::fromTheme("general_default_avatar"),
+ tr("Name"), this);
+ streetButton_ = new QMaemo5ValueButton(tr("Street"), this);
+ cityButton_ = new QMaemo5ValueButton(tr("City"), this);
+ numberButton_ = new QMaemo5ValueButton(QIcon::fromTheme("general_call"),
+ tr("Phone number"), this);
+
+ connect(numberButton_, SIGNAL(pressed()), this, SLOT(makeCall()));
+
+ top->addWidget(nameButton_);
+ bottom->addWidget(streetButton_);
+ top->addWidget(numberButton_);
+ bottom->addWidget(cityButton_);
+ layout_->addLayout(top);
+ layout_->addLayout(bottom);
+ layout_->addWidget(addButton);
+ layout_->addWidget(copyButton);
+ area_->setLayout(layout_);
+ setCentralWidget(area_);