[Kst] kdeextragear-2/kst/kst

Rick Chern rchern at interchange.ubc.ca
Sat Jul 17 00:44:21 CEST 2004


CVS commit by rchern: 

Use KMessageBox instead of QMessageBox.  Also change the dialog from Info type to Sorry type.  
Also make sure the duplicate plot name warning does not go underneath the plot dialog, because it can be hard to find if it does.


  M +7 -5      kstplotdialog_i.cpp   1.58


--- kdeextragear-2/kst/kst/kstplotdialog_i.cpp  #1.57:1.58
@@ -545,5 +545,5 @@ void KstPlotDialogI::new_I() {
           "Change it to a unique name.").arg(Name->text());
 
-      KMessageBox::sorry(0L, message);
+      KMessageBox::sorry(this, message);
       Name->setFocus();
       return;
@@ -1090,10 +1090,12 @@ void KstPlotDialogI::addPlotMarker() {
       return;
     }
-    QMessageBox::information( this, i18n("Kst"),
-    i18n("A plot marker with equal (or very close) value already exists."));
+    KMessageBox::sorry(this,
+                       i18n("A plot marker with equal (or very close) value already exists."),
+                       i18n("Kst"));
     return;
   }
-  QMessageBox::information( this, i18n("Kst"),
-  i18n("The text you have entered is not a valid number.  Please enter a valid number."));
+  KMessageBox::sorry(this,
+                     i18n("The text you have entered is not a valid number.  Please enter a valid number."),
+                     i18n("Kst"));
 }
 





More information about the Kst mailing list