aboutsummaryrefslogtreecommitdiff
path: root/include/aoimage.h
blob: b75eee1982b9088bcae89d3c915992e348252dd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// 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 set_image(QString p_image, QString p_misc = "");
  void set_size_and_pos(QString identifier);
};

#endif // AOIMAGE_H