blob: 5ea809157c5b9fce3c148053f88d18fc4cd39d6d [file] [log] [blame]
Edric Milaret25236d92016-03-28 09:40:58 -04001/***************************************************************************
Anthony LĂ©onard2fde81d2017-04-17 10:06:55 -04002 * Copyright (C) 2017 by Savoir-faire Linux *
Edric Milaret25236d92016-03-28 09:40:58 -04003 * 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 Milaret28a86b72016-05-06 12:13:25 -040023#include <QStandardPaths>
Edric Milaret25236d92016-03-28 09:40:58 -040024
25#include "video/previewmanager.h"
26
27PhotoBoothDialog::PhotoBoothDialog(QWidget* parent) :
28 QDialog(parent),
Edric Milaret25236d92016-03-28 09:40:58 -040029 ui(new Ui::PhotoBoothDialog)
30{
31 ui->setupUi(this);
Olivier SOLDANO30ac2c72017-08-04 09:14:47 -040032 setWindowFlags(windowFlags() & (~Qt::WindowContextHelpButtonHint));
33 connect(ui->Photobooth, &PhotoboothWidget::photoTaken, [this](QString fileName){
34 fileName_ = fileName;
35 accept();
36 }
37 );
Edric Milaret25236d92016-03-28 09:40:58 -040038}
39
40PhotoBoothDialog::~PhotoBoothDialog()
41{
42 delete ui;
43}