Message info
 
To:kde-commits@kde.org From:Jan Hambrecht Subject:[calligra] karbon/plugins/tools: remove dead code Date:Thu, 5 Apr 2012 23:09:41 +0200 (CEST)
 

Git commit 35a06d289caeaff59c7d4923c9d360eba0ff12ac by Jan Hambrecht.
Committed on 03/03/2012 at 18:13.
Pushed by jaham into branch 'master'.

remove dead code

M +0 -15 karbon/plugins/tools/KarbonGradientTool.cpp
M +0 -2 karbon/plugins/tools/KarbonGradientTool.h

http://commits.kde.org/calligra/35a06d289caeaff59c7d4923c9d360eba0ff12ac

diff --git a/karbon/plugins/tools/KarbonGradientTool.cpp b/karbon/plugins/tools/KarbonGradientTool.cpp
index 83e1cc5..5a4a947 100644
--- a/karbon/plugins/tools/KarbonGradientTool.cpp
+++ b/karbon/plugins/tools/KarbonGradientTool.cpp
@@ -511,21 +511,6 @@ QList<QWidget *> KarbonGradientTool::createOptionWidgets()
return widgets;
}

-QWidget * KarbonGradientTool::createOptionWidget()
-{
- QWidget *optionWidget = new QWidget();
- QVBoxLayout* layout = new QVBoxLayout(optionWidget);
- layout->setMargin(6);
-
- m_gradientWidget = new KarbonGradientEditWidget(optionWidget);
- m_gradientWidget->setGradient(*m_gradient);
- layout->addWidget(m_gradientWidget);
-
- connect(m_gradientWidget, SIGNAL(changed()), this, SLOT(gradientChanged()));
-
- return optionWidget;
-}
-
void KarbonGradientTool::gradientSelected(KoResource * resource)
{
if (! resource)
diff --git a/karbon/plugins/tools/KarbonGradientTool.h b/karbon/plugins/tools/KarbonGradientTool.h
index a841cd5..40d3645 100644
--- a/karbon/plugins/tools/KarbonGradientTool.h
+++ b/karbon/plugins/tools/KarbonGradientTool.h
@@ -58,8 +58,6 @@ public:

protected:
/// reimplemented from KoToolBase
- virtual QWidget * createOptionWidget();
- /// reimplemented from KoToolBase
virtual QList<QWidget *> createOptionWidgets();

private Q_SLOTS: