[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Wed Apr 14 18:42:32 CEST 2004


CVS commit by arwalker: 

Do some translation and draw the line breaking input and output across the entire width of the dialog.


  M +4 -5      kstplugindialog_i.cpp   1.60


--- kdeextragear-2/kst/kst/kstplugindialog_i.cpp  #1.59:1.60
@@ -549,4 +549,5 @@ void KstPluginDialogI::pluginChanged(int
     const QString& pluginName = _pluginList[idx];
     const Plugin::Data& pluginData = PluginCollection::self()->pluginList()[PluginCollection::self()->pluginNameList()[pluginName]];
+    int cnt = 3;
 
     // Setup the grid and the "static" entries
@@ -555,7 +556,7 @@ void KstPluginDialogI::pluginChanged(int
     grid->setMargin(6);
     grid->setSpacing(5);
-    grid->addWidget(new QLabel("Plugin Name:", _frameWidget), 0, 0);
+    grid->addWidget(new QLabel(i18n("Plugin Name:"), _frameWidget), 0, 0);
     grid->addWidget(new QLabel(pluginData._name, _frameWidget), 0, 1);
-    grid->addWidget(new QLabel("Description:", _frameWidget), 1, 0);
+    grid->addWidget(new QLabel(i18n("Description:"), _frameWidget), 1, 0);
     QLabel *lab = new QLabel(pluginData._description, _frameWidget);
     lab->setAlignment(lab->alignment() | Qt::WordBreak);
@@ -568,6 +569,4 @@ void KstPluginDialogI::pluginChanged(int
     grid->addMultiCellWidget(line, 2, 2, 0, 1);
 
-    int cnt = 3;
-
     // Generate the input values
     generateEntries(true, cnt, _frameWidget, grid, pluginData._inputs);
@@ -579,5 +578,5 @@ void KstPluginDialogI::pluginChanged(int
       line->setFrameShadow(QFrame::Sunken);
       line->setFrameShape(QFrame::HLine);
-      grid->addWidget(line, cnt, 0);
+      grid->addMultiCellWidget(line, cnt, cnt, 0, 1);
       cnt++;
     }





More information about the Kst mailing list