RFontChooserWidget
Class in GUI Module
Header: #include <src/gui/RFontChooserWidget.h>
Inherits: QWidget
Description
Section titled “Description”Scriptable: This class is available in script environments.
Public Functions
Section titled “Public Functions”RFontChooserWidget(QWidget *parent=0) |
|
| QFont | getChosenFont() const |
| QString | getLabel() const |
| int | getSize() const |
| void | setChosenFont(const QFont &font) |
| void | setLabel(const QString &l) |
| void | setSize(int size) |
Public Slots
Section titled “Public Slots”| void | chosenFontChanged(const QFont &font) |
| void | sizeChanged(int index) |
Protected Functions
Section titled “Protected Functions”| void | resizeEvent(QResizeEvent *event) |
Private Functions
Section titled “Private Functions”| void | updateSizeCombo() |
Private Attributes
Section titled “Private Attributes”| QFontComboBox * | cbChosenFont |
| QComboBox * | cbSize |
| QLabel * | lbLabel |
| QLabel * | lbSampleText |
Signals
Section titled “Signals”| void | valueChanged(const QFont &font) |
Properties
Section titled “Properties”| QFont | chosenFont |
| QString | label |
Member Documentation
Section titled “Member Documentation”RFontChooserWidget
Section titled “RFontChooserWidget”RFontChooserWidget::RFontChooserWidget(QWidget *parent=0)All rights reserved.
This file is part of the QCAD project.
QCAD 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.
QCAD 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 QCAD.
getChosenFont
Section titled “getChosenFont”QFont RFontChooserWidget::getChosenFont() constconst
getLabel
Section titled “getLabel”QString RFontChooserWidget::getLabel() constconst
getSize
Section titled “getSize”int RFontChooserWidget::getSize() constconst
setChosenFont
Section titled “setChosenFont”void RFontChooserWidget::setChosenFont(const QFont &font)setLabel
Section titled “setLabel”void RFontChooserWidget::setLabel(const QString &l)setSize
Section titled “setSize”void RFontChooserWidget::setSize(int size)chosenFontChanged
Section titled “chosenFontChanged”void RFontChooserWidget::chosenFontChanged(const QFont &font)sizeChanged
Section titled “sizeChanged”void RFontChooserWidget::sizeChanged(int index)resizeEvent
Section titled “resizeEvent”void RFontChooserWidget::resizeEvent(QResizeEvent *event)protected
updateSizeCombo
Section titled “updateSizeCombo”void RFontChooserWidget::updateSizeCombo()private
cbChosenFont
Section titled “cbChosenFont”QFontComboBox* RFontChooserWidget::cbChosenFontprivate
cbSize
Section titled “cbSize”QComboBox* RFontChooserWidget::cbSizeprivate
lbLabel
Section titled “lbLabel”QLabel* RFontChooserWidget::lbLabelprivate
lbSampleText
Section titled “lbSampleText”QLabel* RFontChooserWidget::lbSampleTextprivate
valueChanged
Section titled “valueChanged”void RFontChooserWidget::valueChanged(const QFont &font)chosenFont
Section titled “chosenFont”QFont RFontChooserWidget::chosenFontQString RFontChooserWidget::label