mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-09 21:45:34 +08:00
Ref T30, font settings component and same as dialog
This commit is contained in:
committed by
Mathew Sutcliffe
parent
c0fb236b25
commit
bf573f0f20
48
src/blackgui/components/settingsfontdialog.h
Normal file
48
src/blackgui/components/settingsfontdialog.h
Normal file
@@ -0,0 +1,48 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef BLACKGUI_COMPONENTS_SETTINGSFONTDIALOG_H
|
||||
#define BLACKGUI_COMPONENTS_SETTINGSFONTDIALOG_H
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
namespace Ui { class CSettingsFontDialog; }
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Components
|
||||
{
|
||||
/*!
|
||||
* Dialog to edit fonts
|
||||
* \see BlackMisc::Components::CSettingsFontComponent
|
||||
*/
|
||||
class CSettingsFontDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
explicit CSettingsFontDialog(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
virtual ~CSettingsFontDialog();
|
||||
|
||||
//! Get stylesheet
|
||||
const QString &getQss() const;
|
||||
|
||||
//! Set the current font
|
||||
void setCurrentFont(const QFont &font);
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::CSettingsFontDialog> ui;
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user