mirror of
https://github.com/KDE/konsole.git
synced 2026-05-04 04:33:38 -04:00
Only permit selection of monospaced fonts
svn path=/trunk/KDE/kdebase/apps/konsole/; revision=738000
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user