Config Window code redesigned

This commit is contained in:
lupoDharkael
2017-05-19 03:08:13 +02:00
parent 2e41b8c411
commit 4dcf48a60b
6 changed files with 131 additions and 96 deletions

43
config/configwindow.cpp Normal file
View File

@@ -0,0 +1,43 @@
// Copyright 2017 Alejandro Sirgo Rica
//
// This file is part of Flameshot.
//
// Flameshot is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Flameshot is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Flameshot. If not, see <http://www.gnu.org/licenses/>.
#include "configwindow.h"
#include "capture/button.h"
#include "config/buttonlistview.h"
#include <QIcon>
#include <QVBoxLayout>
#include <QLabel>
#include <QDebug>
// ConfigWindow contains the menus where you can configure the application
ConfigWindow::ConfigWindow(QWidget *parent) : QWidget(parent){
setAttribute(Qt::WA_DeleteOnClose);
setWindowIcon(QIcon(":img/flameshot.svg"));
setWindowTitle(tr("Configuration"));
QVBoxLayout *baseLayout = new QVBoxLayout(this);
QLabel *buttonSelectLabel = new QLabel("Choose the buttons to enable", this);
baseLayout->addWidget(buttonSelectLabel);
ButtonListView *m_buttonListView = new ButtonListView(this);
m_buttonListView->setFlow(QListWidget::TopToBottom);
baseLayout->addWidget(m_buttonListView);
show();
}