Ejemplo n.º 1
0
void OFontSelector::changeFont ( )
{
	QFont f = selectedFont ( );

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

	emit fontSelected ( f );
}
Ejemplo n.º 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 );
}
Ejemplo n.º 3
0
void FontPanel::slotUpdatePreviewFont()
{
    m_previewLineEdit->setFont(selectedFont());
}