Ref T30, font settings component and same as dialog

This commit is contained in:
Klaus Basan
2017-07-05 02:38:14 +02:00
committed by Mathew Sutcliffe
parent c0fb236b25
commit bf573f0f20
6 changed files with 531 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
/* Copyright (C) 2017
* swift project Community / Contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
* including this file, may be copied, modified, propagated, or distributed except according to the terms
* contained in the LICENSE file.
*/
#include "settingsfontdialog.h"
#include "ui_settingsfontdialog.h"
namespace BlackGui
{
namespace Components
{
CSettingsFontDialog::CSettingsFontDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::CSettingsFontDialog)
{
ui->setupUi(this);
ui->comp_FontSettings->setMode(CSettingsFontComponent::GenerateQssOnly);
connect(ui->comp_FontSettings, &CSettingsFontComponent::accept, this, &CSettingsFontDialog::accept);
connect(ui->comp_FontSettings, &CSettingsFontComponent::reject, this, &CSettingsFontDialog::reject);
}
CSettingsFontDialog::~CSettingsFontDialog()
{ }
const QString &CSettingsFontDialog::getQss() const
{
return ui->comp_FontSettings->getQss();
}
void CSettingsFontDialog::setCurrentFont(const QFont &font)
{
ui->comp_FontSettings->setCurrentFont(font);
}
} // ns
} // ns