[Kde-bindings] [marble] src: MarbleControlBox: rename addMarbleWidget() to setMarbleWidget() to reflect its real implementation

Bernhard Beschow bbeschow at cs.tu-berlin.de
Mon Nov 21 11:03:36 UTC 2011


Git commit ea177cabe33aca7389a92afc08347d3ead6512d0 by Bernhard Beschow.
Committed on 21/11/2011 at 00:04.
Pushed by beschow into branch 'master'.

MarbleControlBox: rename addMarbleWidget() to setMarbleWidget() to reflect its real implementation

CCMAIL: kde-bindings at kde.org

M  +1    -1    src/ControlView.cpp
M  +1    -1    src/lib/MarbleControlBox.cpp
M  +4    -4    src/lib/MarbleControlBox.h

http://commits.kde.org/marble/ea177cabe33aca7389a92afc08347d3ead6512d0

diff --git a/src/ControlView.cpp b/src/ControlView.cpp
index 558d626..11386a0 100644
--- a/src/ControlView.cpp
+++ b/src/ControlView.cpp
@@ -73,7 +73,7 @@ ControlView::ControlView( QWidget *parent )
     m_splitter->setStretchFactor( m_splitter->indexOf( m_marbleWidget ), 1 );
     m_splitter->setSizes( QList<int>() << 180 << width() - 180 );
 
-    m_control->addMarbleWidget( m_marbleWidget );
+    m_control->setMarbleWidget( m_marbleWidget );
 
     connect( m_control, SIGNAL( showMapWizard() ), this, SIGNAL( showMapWizard() ) );
     connect( m_control, SIGNAL( showUploadDialog() ), this, SIGNAL( showUploadDialog() ) );
diff --git a/src/lib/MarbleControlBox.cpp b/src/lib/MarbleControlBox.cpp
index 5deff87..b03a14d 100644
--- a/src/lib/MarbleControlBox.cpp
+++ b/src/lib/MarbleControlBox.cpp
@@ -109,7 +109,7 @@ MarbleControlBox::~MarbleControlBox()
     delete d;
 }
 
-void MarbleControlBox::addMarbleWidget(MarbleWidget *widget)
+void MarbleControlBox::setMarbleWidget(MarbleWidget *widget)
 {
     d->m_widget = widget;
 
diff --git a/src/lib/MarbleControlBox.h b/src/lib/MarbleControlBox.h
index f9042e2..57a9407 100644
--- a/src/lib/MarbleControlBox.h
+++ b/src/lib/MarbleControlBox.h
@@ -82,15 +82,15 @@ class MARBLE_EXPORT MarbleControlBox : public QToolBox
     ~MarbleControlBox();
 
     /**
-     * @brief Add a MarbleWidget to be controlled by this widget.
-     * @param widget  the MarbleWidget to be added.
+     * @brief Set the MarbleWidget to be controlled by this widget.
+     * @param widget  the MarbleWidget to be controlled.
      *
-     *  Add a MarbleWidget so that it will be controlled by this
+     *  Sets a MarbleWidget so that it will be controlled by this
      *  widget.  This call create all the connections of signals and
      *  slots that are necessary to have full control of the
      *  MarbleWidget, and thereby frees the programmer from doing it.
      */
-    void addMarbleWidget( MarbleWidget *widget );
+    void setMarbleWidget( MarbleWidget *widget );
 
     /**
       * Toggle offline mode of download manager and runners.


More information about the Kde-bindings mailing list