blob: 020d9e6dc57f419e5870479d6afbc510bdef321d [file] [log] [blame]
Olivier SOLDANO57442b22017-04-20 11:56:57 -04001/***************************************************************************
2 * Copyright (C) 2015-2017 by Savoir-faire Linux *
3 * Author: Olivier Soldano <olivier.soldano@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 "quickactcontactrequestwidget.h"
20#include "ui_quickactcontactrequestwidget.h"
21
22#include <QFont>
23
24// CLIENT
25#include "contactrequestitemdelegate.h"
26
27QuickActContactRequestWidget::QuickActContactRequestWidget(QWidget *parent) :
28 QWidget(parent),
29 ui(new Ui::QuickActContactRequestWidget)
30{
31 ui->setupUi(this);
32
33 // set symbols in buttons using FontAwsome
34 ui->quickValidCRBtn->setText(QChar(0xf00c));
35 ui->quickMuteCRBtn->setText(QChar(0xf12d));
36 ui->quickBanCRBtn->setText(QChar(0xf00d));
37
38 connect(ui->quickValidCRBtn, &QPushButton::clicked, this, [=](){
39 emit quickValidCRBtnClicked();
40 });
41
42 connect(ui->quickMuteCRBtn, &QPushButton::clicked, this, [=](){
Olivier SOLDANOa9826412017-06-02 09:46:57 -040043 emit quickMuteCRBtnClicked();
Olivier SOLDANO57442b22017-04-20 11:56:57 -040044 });
45
46 connect(ui->quickBanCRBtn, &QPushButton::clicked, this, [=](){
Olivier SOLDANOa9826412017-06-02 09:46:57 -040047 emit quickBanCRBtnClicked();
Olivier SOLDANO57442b22017-04-20 11:56:57 -040048 });
49
50}
51
52QuickActContactRequestWidget::~QuickActContactRequestWidget()
53{
54 disconnect(this);
55 delete ui;
56}