32 lines
568 B
C++
32 lines
568 B
C++
// This class represents a static theme-dependent image
|
|
|
|
#ifndef AOIMAGE_H
|
|
#define AOIMAGE_H
|
|
|
|
#include "aoapplication.h"
|
|
|
|
#include <QDebug>
|
|
#include <QLabel>
|
|
#include <QMovie>
|
|
|
|
class AOImage : public QLabel {
|
|
public:
|
|
AOImage(QWidget *parent, AOApplication *p_ao_app, bool make_static = false);
|
|
~AOImage();
|
|
|
|
QWidget *m_parent;
|
|
AOApplication *ao_app;
|
|
QMovie *movie;
|
|
|
|
QString path;
|
|
|
|
bool is_static = false;
|
|
|
|
bool masked = false;
|
|
|
|
bool set_image(QString p_image, QString p_misc = "");
|
|
void set_size_and_pos(QString identifier);
|
|
};
|
|
|
|
#endif // AOIMAGE_H
|