atrooney-online-2/src/aoimage.h
TrickyLeifa 39e4354b1d Reimplemented favorite server widget, ...
* Reworked favorite server widget
* Renamed `server_type` to `ServerInfo`
* Renamed `connection_type` to `ServerConnectionType`
* Refactored `AOCharButton`
* Reimplemented `AOButton`
* Partially reimplemented `AOEmoteButton`
* Refactored `AOEvidenceButton`
2024-05-16 03:09:21 +02:00

28 lines
443 B
C++

// This class represents a static theme-dependent image
#pragma once
#include "aoapplication.h"
#include <QDebug>
#include <QLabel>
#include <QMovie>
class AOImage : public QLabel
{
Q_OBJECT
public:
AOImage(AOApplication *ao_app, QWidget *parent = nullptr);
QString image();
bool setImage(QString fileName, QString miscellaneous);
bool setImage(QString fileName);
private:
AOApplication *ao_app;
QString m_file_name;
};