[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/kstars/kstars
From:       Akarsh Simha <akarshsimha () gmail ! com>
Date:       2011-01-01 4:27:51
Message-ID: 20110101042751.569C2AC8B3 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1210564 by asimha:

Cosmetic changes.

+ Remove old commented code that has been moved already.

+ Remove completed TODOs

+ Make comments more descriptive of the issues.

 M  +2 -45     skymapevents.cpp  
 M  +0 -1      skymapgldraw.cpp  
 M  +0 -1      skymapqdraw.cpp  


--- trunk/KDE/kdeedu/kstars/kstars/skymapevents.cpp #1210563:1210564
@@ -57,8 +57,8 @@
     //FIXME: No equivalent for this line in Qt4 ??
     //	if ( testWState( Qt::WState_AutoMask ) ) updateMask();
 
-    // TODO: Hopefully the child QWidget / QGLWidget will scale automatically...
-    // No, it doesn't seem to:
+    // Resize the widget that draws the sky map.
+    // FIXME: The resize event doesn't pass to children. Any better way of doing this?
     m_SkyMapDraw->resize( size() );
 
     // Resize infoboxes container.
@@ -642,49 +642,6 @@
     }
 }
 
-/*
-void SkyMap::initializeGL()
-{
-}
-
-void SkyMap::resizeGL(int width, int height)
-{
-    Q_UNUSED(width)
-    Q_UNUSED(height)
-    //do nothing since we resize in SkyGLPainter::paintGL()
-}
-
-void SkyMap::paintEvent( QPaintEvent *event )
-{
-    QPainter p;
-    p.begin(this);
-    p.beginNativePainting();
-
-    setupProjector();
-    if(m_framecount == 25) {
-        float sec = m_fpstime.elapsed()/1000.;
-        printf("FPS: %.2f\n", m_framecount/sec);
-        m_framecount = 0;
-        m_fpstime.restart();
-    }
-    SkyGLPainter psky(this);
-    //FIXME: we may want to move this into the components.
-    psky.begin();
-
-    //Draw all sky elements
-    psky.drawSkyBackground();
-    data->skyComposite()->draw( &psky );
-    //Finish up
-    psky.end();
-    
-    p.endNativePainting();
-    drawOverlays(p);
-    p.end();
-
-    ++m_framecount;
-}
-*/
-
 double SkyMap::zoomFactor( const int modifier ) {
     double factor = ( modifier & Qt::ControlModifier) ? DZOOM : 2.0; 
     if ( modifier & Qt::ShiftModifier ) 
--- trunk/KDE/kdeedu/kstars/kstars/skymapgldraw.cpp #1210563:1210564
@@ -22,7 +22,6 @@
 
 
 SkyMapGLDraw::SkyMapGLDraw( SkyMap *sm ) : SkyMapDrawAbstract( sm ), QGLWidget( TextureManager::getContext(), sm ) {
-    // TODO: Any construction to be done?
     if( !format().testOption( QGL::SampleBuffers ) )
         qWarning() << "No sample buffer; can't use multisampling (antialiasing)";
     if( !format().testOption( QGL::StencilBuffer ) )
--- trunk/KDE/kdeedu/kstars/kstars/skymapqdraw.cpp #1210563:1210564
@@ -20,7 +20,6 @@
 #include "skymap.h"
 
 SkyMapQDraw::SkyMapQDraw( SkyMap *sm ) : SkyMapDrawAbstract( sm ), QWidget( sm ) {
-    // TODO: Any construction to be done?
     m_SkyPixmap = new QPixmap( width(), height() );
 }
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic