Edric Milaret | 25236d9 | 2016-03-28 09:40:58 -0400 | [diff] [blame] | 1 | /*************************************************************************** |
Sébastien Blin | 68abac9 | 2019-01-02 17:41:31 -0500 | [diff] [blame] | 2 | * Copyright (C) 2017-2019 by Savoir-faire Linux * |
Edric Milaret | 25236d9 | 2016-03-28 09:40:58 -0400 | [diff] [blame] | 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 "photoboothdialog.h" |
| 20 | #include "ui_photoboothdialog.h" |
| 21 | |
| 22 | #include <QFileDialog> |
Edric Milaret | 28a86b7 | 2016-05-06 12:13:25 -0400 | [diff] [blame] | 23 | #include <QStandardPaths> |
Edric Milaret | 25236d9 | 2016-03-28 09:40:58 -0400 | [diff] [blame] | 24 | |
| 25 | #include "video/previewmanager.h" |
| 26 | |
| 27 | PhotoBoothDialog::PhotoBoothDialog(QWidget* parent) : |
| 28 | QDialog(parent), |
Edric Milaret | 25236d9 | 2016-03-28 09:40:58 -0400 | [diff] [blame] | 29 | ui(new Ui::PhotoBoothDialog) |
| 30 | { |
| 31 | ui->setupUi(this); |
Olivier SOLDANO | 30ac2c7 | 2017-08-04 09:14:47 -0400 | [diff] [blame] | 32 | setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint)); |
| 33 | connect(ui->Photobooth, &PhotoboothWidget::photoTaken, [this](QString fileName){ |
| 34 | fileName_ = fileName; |
| 35 | accept(); |
| 36 | } |
| 37 | ); |
Edric Milaret | 25236d9 | 2016-03-28 09:40:58 -0400 | [diff] [blame] | 38 | } |
| 39 | |
| 40 | PhotoBoothDialog::~PhotoBoothDialog() |
| 41 | { |
| 42 | delete ui; |
| 43 | } |