AboutDialog::AboutDialog(QWidget* parent): QDialog(parent)
{
- setWindowTitle(tr("About"));
+ setWindowTitle(tr("About"));
- QHBoxLayout* mainLayout = new QHBoxLayout();
- QPixmap pixmap(":/icons/icon.png");
- QLabel* image = new QLabel;
- image->setPixmap(pixmap);
- mainLayout->addWidget(image, 0, Qt::AlignLeft);
- mainLayout->addSpacing(20);
- QLabel* text = new QLabel("<font size='4'><b>Jenirok</b></font><br>(c) 2010 Jesse Hakanen<br><a href='http://jenirok.garage.maemo.org'>http://jenirok.garage.maemo.org</a>");
- mainLayout->addWidget(text, 10, Qt::AlignLeft);
+ QHBoxLayout* mainLayout = new QHBoxLayout();
+ QPixmap pixmap(":/icons/icon.png");
+ QLabel* image = new QLabel;
+ image->setPixmap(pixmap);
+ mainLayout->addWidget(image, 0, Qt::AlignLeft);
+ mainLayout->addSpacing(20);
+ QLabel* text = new QLabel("<font size='4'><b>Jenirok</b></font><br>(c) 2010 Jesse Hakanen<br><a href='http://jenirok.garage.maemo.org'>http://jenirok.garage.maemo.org</a>");
+ mainLayout->addWidget(text, 10, Qt::AlignLeft);
- setLayout(mainLayout);
+ setLayout(mainLayout);
}
void DetailWindow::addToContacts()
{
+ setAttribute(Qt::WA_Maemo5ShowProgressIndicator, true);
+
ContactManager cm;
ContactManager::Contact contact;
contact.name = addContactInput_->text();
QMessageBox::critical(this, tr("Error"), tr("Unable to add contact."));
}
+ setAttribute(Qt::WA_Maemo5ShowProgressIndicator, false);
+
}
void DetailWindow::copyToClipboard()
if(!searchDialog_)
{
searchDialog_ = new SearchDialog(this);
- connect(searchDialog_, SIGNAL(search(SearchDialog::SearchDetails&)), this, SLOT(handleSearch(SearchDialog::SearchDetails&)));
+ connect(searchDialog_, SIGNAL(search(SearchDialog::SearchDetails&)),
+ this, SLOT(handleSearch(SearchDialog::SearchDetails&)));
}
searchDialog_->show();
void MainWindow::showAbout()
{
- if(!aboutDialog_)
- {
- aboutDialog_ = new AboutDialog(this);
- }
+ if(!aboutDialog_)
+ {
+ aboutDialog_ = new AboutDialog(this);
+ }
- aboutDialog_->show();
+ aboutDialog_->show();
}