Beispiel #1
0
void OFontSelector::changeFont ( )
{
	QFont f = selectedFont ( );

	if ( d-> m_preview )
		d-> m_preview-> setFont ( f );

	emit fontSelected ( f );
}
Beispiel #2
0
/**
 * This method returns the name, style and size of the currently selected
 * font or false if no font is selected
 * @param family The font family will be written there
 * @param style The style will be written there
 * @param size The size will be written there
 * @return success or failure
 */
bool OFontSelector::selectedFont ( QString &family, QString &style, int &size )
{
	QString dummy;
	return selectedFont ( family, style, size, dummy );
}
Beispiel #3
0
void FontPanel::slotUpdatePreviewFont()
{
    m_previewLineEdit->setFont(selectedFont());
}