chore: adjusted the project directory structure

This commit is contained in:
Gary Wang
2020-11-05 14:12:58 +08:00
parent 1066fa45ea
commit 8c152dc862
29 changed files with 213 additions and 213 deletions

26
app/graphicsscene.h Normal file
View File

@ -0,0 +1,26 @@
#ifndef GRAPHICSSCENE_H
#define GRAPHICSSCENE_H
#include <QGraphicsScene>
class GraphicsScene : public QGraphicsScene
{
Q_OBJECT
public:
GraphicsScene(QObject *parent = nullptr);
~GraphicsScene();
void showImage(const QPixmap &pixmap);
void showText(const QString &text);
void showSvg(const QString &filepath);
void showGif(const QString &filepath);
bool trySetTransformationMode(Qt::TransformationMode mode);
QPixmap renderToPixmap();
private:
QGraphicsItem * m_theThing;
};
#endif // GRAPHICSSCENE_H