Only permit selection of monospaced fonts

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=738000
This commit is contained in:
Jakub Stachowski
2007-11-17 16:20:28 +00:00
parent ffc0f1d9dc
commit ac148385ec

View File

@@ -962,13 +962,10 @@ void EditProfileDialog::fontSelected(const QFont& font)
}
void EditProfileDialog::showFontDialog()
{
//TODO Only permit selection of mono-spaced fonts.
// the KFontDialog API does not appear to have a means to do this
// at present.
QFont currentFont = _ui->fontPreviewLabel->font();
KFontDialog* dialog = new KFontDialog(this);
dialog->setFont(currentFont);
KFontDialog* dialog = new KFontDialog(this, KFontChooser::FixedFontsOnly);
dialog->setFont(currentFont, true);
connect( dialog , SIGNAL(fontSelected(const QFont&)) , this , SLOT(fontSelected(const QFont&)) );
dialog->show();