From ac148385eca355617ea88524766a2c03511411bc Mon Sep 17 00:00:00 2001 From: Jakub Stachowski Date: Sat, 17 Nov 2007 16:20:28 +0000 Subject: [PATCH] Only permit selection of monospaced fonts svn path=/trunk/KDE/kdebase/apps/konsole/; revision=738000 --- src/EditProfileDialog.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/EditProfileDialog.cpp b/src/EditProfileDialog.cpp index b2d9d0912..be1cc4828 100644 --- a/src/EditProfileDialog.cpp +++ b/src/EditProfileDialog.cpp @@ -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();