[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Thu May 22 17:39:06 CEST 2003
CVS commit by staikos:
fix scalar parsing in the XML and add widget spacing to the generated dialog
M +3 -0 kstplugindialog_i.cpp 1.16
M +4 -0 pluginxmlparser.cpp 1.8
--- kdeextragear-2/kst/kst/kstplugindialog_i.cpp #1.15:1.16
@@ -373,4 +373,6 @@ void KstPluginDialogI::pluginChanged(int
int variables = pluginData._inputs.count() + pluginData._outputs.count();
QGridLayout *grid = new QGridLayout(_frameWidget, 4+variables, 2);
+ grid->setMargin(6);
+ grid->setSpacing(5);
grid->addWidget(new QLabel("Plugin Name:", _frameWidget), 0, 0);
grid->addWidget(new QLabel(pluginData._name, _frameWidget), 0, 1);
@@ -408,4 +410,5 @@ void KstPluginDialogI::pluginChanged(int
// resize everything
+ _frameWidget->resize(_frameWidget->minimumSizeHint());
_pluginFrame->resize(_pluginFrame->minimumSizeHint());
resize(minimumSizeHint());
--- kdeextragear-2/kst/kst/pluginxmlparser.cpp #1.7:1.8
@@ -233,4 +233,8 @@ QDomNode n = element.firstChild();
if (tn == QS_table) {
iov._type = Plugin::Data::IOValue::TableType;
+ } else if (tn == QS_integer) {
+ iov._type = Plugin::Data::IOValue::IntegerType;
+ } else if (tn == QS_float) {
+ iov._type = Plugin::Data::IOValue::FloatType;
} else if (tn == QS_string) {
iov._type = Plugin::Data::IOValue::StringType;
More information about the Kst
mailing list