[Kst] branches/work/kst/portto4/kst/src/libkstapp

Adam Treat treat at kde.org
Sat Sep 8 00:20:52 CEST 2007


SVN commit 709605 by treat:

* A little nicer


 M  +8 -0      layouttab.cpp  
 M  +2 -0      layouttab.h  
 M  +1 -1      layouttab.ui  
 M  +2 -2      viewitemdialog.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/layouttab.cpp #709604:709605
@@ -30,6 +30,14 @@
 }
 
 
+void LayoutTab::setLayoutEnabled(bool layoutEnabled) {
+  _horMargin->setEnabled(layoutEnabled);
+  _verMargin->setEnabled(layoutEnabled);
+  _horSpacing->setEnabled(layoutEnabled);
+  _verSpacing->setEnabled(layoutEnabled);
+}
+
+
 double LayoutTab::horizontalMargin() const {
   return _horMargin->value();
 }
--- branches/work/kst/portto4/kst/src/libkstapp/layouttab.h #709604:709605
@@ -25,6 +25,8 @@
     LayoutTab(QWidget *parent = 0);
     virtual ~LayoutTab();
 
+    void setLayoutEnabled(bool layoutEnabled);
+
     double horizontalMargin() const;
     void setHorizontalMargin(double horizontalMargin);
 
--- branches/work/kst/portto4/kst/src/libkstapp/layouttab.ui #709604:709605
@@ -65,7 +65,7 @@
      <property name="sizeHint" >
       <size>
        <width>20</width>
-       <height>40</height>
+       <height>59</height>
       </size>
      </property>
     </spacer>
--- branches/work/kst/portto4/kst/src/libkstapp/viewitemdialog.cpp #709604:709605
@@ -94,7 +94,7 @@
   ViewGridLayout *layout = _item->layout();
 
   if (!layout) {
-    _layoutTab->setEnabled(false);
+    _layoutTab->setLayoutEnabled(false);
     return;
   }
 
@@ -147,7 +147,7 @@
   ViewGridLayout *layout = _item->layout();
 
   if (!layout) {
-    _layoutTab->setEnabled(false);
+    _layoutTab->setLayoutEnabled(false);
     return;
   }
 


More information about the Kst mailing list