aboutsummaryrefslogtreecommitdiff
path: root/aoimage.cpp
blob: 0f03a7b688ffa88824e8c8f776331dc6f16b963e (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
#include "file_functions.h"
#include "path_functions.h"
#include "global_variables.h"

#include "aoimage.h"

AOImage::AOImage(QWidget *parent) : QLabel(parent)
{

}

AOImage::~AOImage()
{

}

void AOImage::set_image(QString p_image)
{
  QString theme_image_path = get_theme_path() + p_image;
  QString default_image_path = get_default_theme_path() + p_image;

  if (file_exists(theme_image_path))
    this->setPixmap(theme_image_path);
  else
    this->setPixmap(default_image_path);
}