Olivier SOLDANO | 57442b2 | 2017-04-20 11:56:57 -0400 | [diff] [blame^] | 1 | /*************************************************************************** |
| 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 | |
| 27 | QuickActContactRequestWidget::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, [=](){ |
| 43 | emit quickValidCRBtnClicked(); |
| 44 | }); |
| 45 | |
| 46 | connect(ui->quickBanCRBtn, &QPushButton::clicked, this, [=](){ |
| 47 | emit quickValidCRBtnClicked(); |
| 48 | }); |
| 49 | |
| 50 | } |
| 51 | |
| 52 | QuickActContactRequestWidget::~QuickActContactRequestWidget() |
| 53 | { |
| 54 | disconnect(this); |
| 55 | delete ui; |
| 56 | } |