mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Ref T30, font settings component and same as dialog
This commit is contained in:
committed by
Mathew Sutcliffe
parent
c0fb236b25
commit
bf573f0f20
41
src/blackgui/components/settingsfontdialog.cpp
Normal file
41
src/blackgui/components/settingsfontdialog.cpp
Normal 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
|
||||
Reference in New Issue
Block a user