blob: fd96c24ee313059a7f636593c6a4cef64d6ceb0f [file] [log] [blame]
Edric Milaret43f3c1e2015-07-16 17:52:47 -04001/***************************************************************************
2 * Copyright (C) 2015 by Savoir-faire Linux *
3 * Author: Edric Ladent Milaret <edric.ladent-milaret@savoirfairelinux.com>*
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 3 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
17 **************************************************************************/
18
19#include "contactdialog.h"
20#include "ui_contactdialog.h"
21
22ContactDialog::ContactDialog(const QString &number, QWidget *parent) :
23 QDialog(parent),
24 ui(new Ui::ContactDialog)
25{
26 ui->setupUi(this);
27 ui->numberLineEdit->setText(number);
28}
29
30ContactDialog::~ContactDialog()
31{
32 delete ui;
33}
34
35const QString&
36ContactDialog::getName()
37{
38 return contactName_;
39}
40
41void
42ContactDialog::on_nameLineEdit_textChanged(const QString &arg1)
43{
44 contactName_ = arg1;
45}