[QGIS Commit] r8773 - branches/advanced_printing_branch/src/app/composer

svn_qgis at osgeo.org svn_qgis at osgeo.org
Mon Jul 14 16:04:28 EDT 2008


Author: mhugent
Date: 2008-07-14 16:04:28 -0400 (Mon, 14 Jul 2008)
New Revision: 8773

Modified:
   branches/advanced_printing_branch/src/app/composer/qgscomposerlabelwidget.cpp
   branches/advanced_printing_branch/src/app/composer/qgscomposerlegendwidget.cpp
   branches/advanced_printing_branch/src/app/composer/qgscomposerlegendwidget.h
Log:
wired in check box and spin box of composer legend widget

Modified: branches/advanced_printing_branch/src/app/composer/qgscomposerlabelwidget.cpp
===================================================================
--- branches/advanced_printing_branch/src/app/composer/qgscomposerlabelwidget.cpp	2008-07-14 19:51:14 UTC (rev 8772)
+++ branches/advanced_printing_branch/src/app/composer/qgscomposerlabelwidget.cpp	2008-07-14 20:04:28 UTC (rev 8773)
@@ -87,5 +87,3 @@
     }
 }
 
-
-

Modified: branches/advanced_printing_branch/src/app/composer/qgscomposerlegendwidget.cpp
===================================================================
--- branches/advanced_printing_branch/src/app/composer/qgscomposerlegendwidget.cpp	2008-07-14 19:51:14 UTC (rev 8772)
+++ branches/advanced_printing_branch/src/app/composer/qgscomposerlegendwidget.cpp	2008-07-14 20:04:28 UTC (rev 8773)
@@ -173,3 +173,30 @@
 	}
     }
 }
+
+void QgsComposerLegendWidget::on_mBoxCheckBox_stateChanged(int state)
+{
+  if(mLegend)
+    {
+      if(state == Qt::Checked)
+	{
+	  mLegend->setFrame(true);
+	}
+      else
+	{
+	  mLegend->setFrame(false);
+	}
+      mLegend->update();
+    }
+}
+
+
+void QgsComposerLegendWidget::on_mBoxSpaceSpinBox_valueChanged(double d)
+{
+  if(mLegend)
+    {
+      mLegend->setBoxSpace(d);
+      mLegend->adjustBoxSize();
+      mLegend->update();
+    }
+}

Modified: branches/advanced_printing_branch/src/app/composer/qgscomposerlegendwidget.h
===================================================================
--- branches/advanced_printing_branch/src/app/composer/qgscomposerlegendwidget.h	2008-07-14 19:51:14 UTC (rev 8772)
+++ branches/advanced_printing_branch/src/app/composer/qgscomposerlegendwidget.h	2008-07-14 20:04:28 UTC (rev 8773)
@@ -42,6 +42,8 @@
   void on_mTitleFontButton_clicked();
   void on_mLayerFontButton_clicked();
   void on_mItemFontButton_clicked();
+  void on_mBoxCheckBox_stateChanged(int state);
+  void on_mBoxSpaceSpinBox_valueChanged(double d);
 
  private:
   QgsComposerLegendWidget();



More information about the QGIS-commit mailing list