File indexing completed on 2024-11-03 12:28:40
0001 /* 0002 SPDX-FileCopyrightText: 2010 Akarsh Simha <akarsh.simha@kdemail.net> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef SKYMAPQDRAW_H_ 0008 #define SKYMAPQDRAW_H_ 0009 0010 #include "skymapdrawabstract.h" 0011 0012 #include <QWidget> 0013 0014 /** 0015 *@short This class draws the SkyMap using native QPainter. It 0016 * implements SkyMapDrawAbstract 0017 *@version 1.0 0018 *@author Akarsh Simha <akarsh.simha@kdemail.net> 0019 */ 0020 0021 class SkyMapQDraw : public QWidget, public SkyMapDrawAbstract 0022 { 0023 Q_OBJECT 0024 0025 public: 0026 /** 0027 *@short Constructor 0028 */ 0029 explicit SkyMapQDraw(SkyMap *parent); 0030 0031 /** 0032 *@short Destructor 0033 */ 0034 ~SkyMapQDraw() override; 0035 0036 protected: 0037 void paintEvent(QPaintEvent *e) override; 0038 0039 void resizeEvent(QResizeEvent *e) override; 0040 0041 QPixmap *m_SkyPixmap; 0042 0043 QScopedPointer<SkyQPainter> m_SkyPainter; 0044 }; 0045 0046 #endif