[Kst] [Bug 103848] static vectors generated from new equation dialog are un-editable.

George Staikos staikos at kde.org
Thu Apr 14 04:08:12 CEST 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=103848         
staikos kde org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From staikos kde org  2005-04-14 04:08 -------
CVS commit by staikos: 

Fix enabled status of the vector dialog.  Patch also contains some changes
related to the KIO problem, but doesn't fix it.
BUG: 103848


  M +19 -2     kstvectordialog_i.cpp   1.70


--- kdeextragear-2/kst/kst/kstvectordialog_i.cpp  #1.69:1.70
 @ -128,6 +128,15  @ void KstVectorDialogI::updateCompletion(
     bool complete = false;
     QString u = FileName->url();
+    KURL url;
+    if (QFile::exists(u) && QFileInfo(u).isRelative()) {
+      url.setPath(u);
+    } else {
+      url = KURL::fromPathOrURL(u);
+    }
+
+    if (url.isValid()) {
     kdDebug() << "URL: " << u << endl;
     list = KstDataSource::fieldListForSource(u, QString::null, &type, &complete);
+    }
     Field->setEditable(!complete);
     Field->setEnabled(!list.isEmpty());
 @ -162,5 +171,7  @ void KstVectorDialogI::_fillFieldsForRVE
   _rvectorGroup->show();
   _kstDataRange->show();
+  _kstDataRange->setEnabled(true);
   _svectorGroup->hide();
+  _svectorGroup->setEnabled(false);
   _generateX->hide();
 
 @ -227,6 +238,9  @ void KstVectorDialogI::_fillFieldsForSVE
   _readFromSource->hide();
   _rvectorGroup->hide();
+  _rvectorGroup->setEnabled(false);
   _kstDataRange->hide();
+  _kstDataRange->setEnabled(false);
   _svectorGroup->show();
+  _svectorGroup->setEnabled(true);
   _generateX->hide();
 
 @ -264,6 +278,9  @ void KstVectorDialogI::_fillFieldsForNew
   _readFromSource->show();
   _rvectorGroup->show();
+  _rvectorGroup->setEnabled(true);
   _kstDataRange->show();
+  _kstDataRange->setEnabled(true);
   _svectorGroup->show();
+  _svectorGroup->setEnabled(false);
   _generateX->show();


More information about the Kst mailing list