Kstars

skymapqdraw.h
1 /*
2  SPDX-FileCopyrightText: 2010 Akarsh Simha <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #ifndef SKYMAPQDRAW_H_
8 #define SKYMAPQDRAW_H_
9 
10 #include "skymapdrawabstract.h"
11 
12 #include <QWidget>
13 
14 /**
15  *@short This class draws the SkyMap using native QPainter. It
16  * implements SkyMapDrawAbstract
17  *@version 1.0
18  *@author Akarsh Simha <[email protected]>
19  */
20 
21 class SkyMapQDraw : public QWidget, public SkyMapDrawAbstract
22 {
23  Q_OBJECT
24 
25  public:
26  /**
27  *@short Constructor
28  */
29  explicit SkyMapQDraw(SkyMap *parent);
30 
31  /**
32  *@short Destructor
33  */
34  ~SkyMapQDraw() override;
35 
36  protected:
37  void paintEvent(QPaintEvent *e) override;
38 
39  void resizeEvent(QResizeEvent *e) override;
40 
41  QPixmap *m_SkyPixmap;
42 
43  QScopedPointer<SkyQPainter> m_SkyPainter;
44 };
45 
46 #endif
Q_OBJECTQ_OBJECT
This class defines the methods that both rendering engines (GLPainter and QPainter) must implement.
~SkyMapQDraw() override
Destructor.
Definition: skymapqdraw.cpp:22
SkyMapQDraw(SkyMap *parent)
Constructor.
Definition: skymapqdraw.cpp:16
This class draws the SkyMap using native QPainter.
Definition: skymapqdraw.h:21
Canvas widget for displaying the sky bitmap; also handles user interaction events.
Definition: skymap.h:52
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 19 2022 03:57:55 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.