00001 #include "projectinformationdialog.h" 00002 #include "../Data/project.h" 00003 00004 ProjectInformationDialog::ProjectInformationDialog(QWidget *parent) : QDialog(parent) 00005 { 00006 setupUi(this); 00007 setAttribute(Qt::WA_DeleteOnClose, true); 00008 00009 connect(buttonBox, SIGNAL(accepted()), this, SLOT(ok())); 00010 00011 textName->setText(Project::name()); 00012 textDescription->setText(Project::description()); 00013 textDateCreation->setText(Project::dateCreation().toString("dd.MM.yyyy hh:mm:ss")); 00014 textDateModification->setText(Project::dateModified().toString("dd.MM.yyyy hh:mm:ss")); 00015 textOwnerName->setText(Project::ownerName()); 00016 textOwnerEmail->setText(Project::ownerEmail()); 00017 } 00018 00019 void ProjectInformationDialog::ok() 00020 { 00021 done(0); 00022 }