[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Mon Jul 19 21:21:54 CEST 2004


CVS commit by arwalker: 

Add the type of the fit to the View Fits dialog.


  M +2 -1      kstviewfitsdialog_i.cpp   1.10
  M +1 -0      plugin.cpp   1.20
  M +16 -0     viewfitsdialog.ui   1.2


--- kdeextragear-2/kst/kst/kstviewfitsdialog_i.cpp  #1.9:1.10
@@ -50,5 +50,5 @@ KstViewFitsDialog(parent, name, modal, f
   tableFits->setSorting( FALSE );
   tableFits->setSelectionMode( QTable::Single );
-  layout2->addWidget( tableFits, 1, 0 );
+  layout2->addWidget( tableFits, 2, 0 );
     
   connect( Cancel, SIGNAL( clicked() ), this, SLOT( close() ) );
@@ -175,4 +175,5 @@ void KstViewFitsDialogI::fitChanged(cons
       KstSharedPtr<Plugin> pluginBase = plugin->plugin();
       if (pluginBase) {
+        textLabelFit->setText( pluginBase->data()._readableName );
         for( i=0; i<iNumParams; i++ ) {
           strParameterName = pluginBase->parameterName(i);

--- kdeextragear-2/kst/kst/plugin.cpp  #1.19:1.20
@@ -140,4 +140,5 @@ void Plugin::Data::clear() {
   _localdata = false;
   _name = QString::null;
+  _readableName = QString::null;
   _author = QString::null;
   _description = QString::null;

--- kdeextragear-2/kst/kst/viewfitsdialog.ui  #1.1:1.2
@@ -76,4 +76,20 @@
                     </hbox>
                 </widget>
+                <widget class="QLabel" row="1" column="0">
+                    <property name="name">
+                        <cstring>textLabelFit</cstring>
+                    </property>
+                    <property name="sizePolicy">
+                        <sizepolicy>
+                            <hsizetype>5</hsizetype>
+                            <vsizetype>0</vsizetype>
+                            <horstretch>0</horstretch>
+                            <verstretch>0</verstretch>
+                        </sizepolicy>
+                    </property>
+                    <property name="text">
+                        <string></string>
+                    </property>
+                </widget>
             </grid>
         </widget>





More information about the Kst mailing list