[Marble-commits] KDE/kdeedu/marble

Bernhard Beschow bbeschow at cs.tu-berlin.de
Mon Mar 28 16:34:42 CEST 2011


SVN commit 1226290 by beschow:

remove MarbleWidget::MarbleWidget( MarbleMap*, ... )

* This constructor does not work on a conceptual level (MarbleMap being tightly associated with e.g. MarbleWidget's size).
  Thus, there shouldn't be any code using it.

 M  +7 -0      docs/release_notes/APIChanges-0.12.txt  
 M  +0 -9      src/lib/MarbleWidget.cpp  
 M  +0 -11     src/lib/MarbleWidget.h  


--- trunk/KDE/kdeedu/marble/docs/release_notes/APIChanges-0.12.txt #1226289:1226290
@@ -71,3 +71,10 @@
     void centerSun();
   Use centerOn() with the appropriate (lat, lon) values instead of centerSun().
   Call model()->sunLocator()->update() instead of updateSun().
+
+
+2011-03-28  Bernhard Beschow <bbeschow at cs.tu-berlin.de>
+
+* Remove MarbleWidget::MarbleWidget( MarbleMap *, ... ).
+  This constructor does not work on a conceptual level (MarbleMap being tightly associated with e.g. MarbleWidget's size).
+  Thus, there shouldn't be any code using it.
--- trunk/KDE/kdeedu/marble/src/lib/MarbleWidget.cpp #1226289:1226290
@@ -137,15 +137,6 @@
     d->construct();
 }
 
-
-MarbleWidget::MarbleWidget(MarbleMap *map, QWidget *parent)
-    : QWidget( parent ),
-      d( new MarbleWidgetPrivate( map, this ) )
-{
-//    setAttribute( Qt::WA_PaintOnScreen, true );
-    d->construct();
-}
-
 MarbleWidget::~MarbleWidget()
 {
     // Remove and delete an existing InputHandler
--- trunk/KDE/kdeedu/marble/src/lib/MarbleWidget.h #1226289:1226290
@@ -157,17 +157,6 @@
      */
     explicit MarbleWidget( QWidget *parent = 0 );
 
-    /**
-     * @brief Construct a new MarbleWidget.
-     * @param model  the data model for the widget.
-     * @param parent the parent widget
-     *
-     * This constructor should be used when you plan to use more than
-     * one MarbleWidget for the same MarbleModel (not yet supported,
-     * but will be soon).
-     */
-    explicit MarbleWidget( MarbleMap *map, QWidget *parent = 0 );
-
     virtual ~MarbleWidget();
 
     /// @name Access to helper objects


More information about the Marble-commits mailing list