[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Thu Apr 14 04:08:00 CEST 2005
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