[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Thu Aug 19 18:21:52 CEST 2004


CVS commit by arwalker: 

Make the various KFontCombo's non-editable. This prevents the user from entering an invalid font family name.


  M +2 -2      kstlabeldialog_i.cpp   1.19
  M +3 -0      kstplotdialog_i.cpp   1.86


--- kdeextragear-2/kst/kst/kstlabeldialog_i.cpp  #1.18:1.19
@@ -39,5 +39,5 @@ KstLabelDialogI::KstLabelDialogI(QWidget
 
   FontComboBox->setCurrentFont(this->font().family());
-
+  FontComboBox->setEditable(false);
   connect(Apply, SIGNAL(clicked()), this, SLOT(apply()));
   connect(OK, SIGNAL(clicked()), this, SLOT(ok()));

--- kdeextragear-2/kst/kst/kstplotdialog_i.cpp  #1.85:1.86
@@ -81,4 +81,7 @@ KstPlotDialogI::KstPlotDialogI(KstDoc *i
   setScalarDestTopLabel();
 
+  FontComboBox->setEditable(false);
+  LegendFontComboBox->setEditable(false);
+  
   connect(Select, SIGNAL(activated(int)), this, SLOT(update(int)));
   connect(TabWidget, SIGNAL(currentChanged(QWidget*)), this, SLOT(newTab()));





More information about the Kst mailing list