Kstars

skymapqdraw.h
1/*
2 SPDX-FileCopyrightText: 2010 Akarsh Simha <akarsh.simha@kdemail.net>
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 <akarsh.simha@kdemail.net>
19 */
20
22{
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
This class defines the methods that both rendering engines (GLPainter and QPainter) must implement.
This class draws the SkyMap using native QPainter.
Definition skymapqdraw.h:22
~SkyMapQDraw() override
Destructor.
SkyMapQDraw(SkyMap *parent)
Constructor.
This is the canvas on which the sky is painted.
Definition skymap.h:54
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:04 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.