[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:01
Message-ID: 20110101042701.1D136AC8AE () svn ! kde ! org
[Download RAW message or body]
SVN commit 1210545 by asimha:
+ Remove unused m_SkyPixmap2.
+ Add destructor that frees up space allocated for the sky pixmap.
M +4 -1 skymapqdraw.cpp
M +6 -1 skymapqdraw.h
--- trunk/KDE/kdeedu/kstars/kstars/skymapqdraw.cpp #1210544:1210545
@@ -22,9 +22,12 @@
SkyMapQDraw::SkyMapQDraw( SkyMap *sm ) : SkyMapDrawAbstract( sm ), QWidget( sm ) {
// TODO: Any construction to be done?
m_SkyPixmap = new QPixmap( width(), height() );
- m_SkyPixmap2 = NULL;
}
+SkyMapQDraw::~SkyMapQDraw() {
+ delete m_SkyPixmap;
+}
+
void SkyMapQDraw::paintEvent( QPaintEvent *event ) {
//If computeSkymap is false, then we just refresh the window using the stored sky pixmap
//and draw the "overlays" on top. This lets us update the overlay information rapidly
--- trunk/KDE/kdeedu/kstars/kstars/skymapqdraw.h #1210544:1210545
@@ -37,13 +37,18 @@
*/
SkyMapQDraw( SkyMap *parent );
+ /**
+ *@short Destructor
+ */
+ ~SkyMapDraw();
+
protected:
virtual void paintEvent( QPaintEvent *e );
virtual void resizeEvent( QResizeEvent *e );
- QPixmap *m_SkyPixmap, *m_SkyPixmap2;
+ QPixmap *m_SkyPixmap;
};
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic