Learn Environment
Loading...
Searching...
No Matches
execute_frame.hpp
Go to the documentation of this file.
1#ifndef EXECUTE_FRAME_HPP
2#define EXECUTE_FRAME_HPP
3
4#include <QFrame>
5#include <QLabel>
6#include <QMovie>
7#include <QHBoxLayout>
8
13class ExecuteFrame : public QFrame
14{
15 Q_OBJECT
16
17public:
22 explicit ExecuteFrame(QWidget *parent = nullptr);
23
28
33 void setImage(const QString &path);
34
39 void setText(const QString &text);
40
45 QString getText();
46
47private:
48 QLabel *imageLabel;
49 QLabel *textLabel;
50 QMovie *currentMovie;
51 QHBoxLayout *hLayout;
52
56 void initializeUI();
57};
58
59#endif // EXECUTE_FRAME_HPP
A custom QFrame that displays an image and text. For logging and task execution.
Definition execute_frame.hpp:14
~ExecuteFrame()
Destructor for ExecuteFrame.
Definition execute_frame.cpp:15
QString getText()
Gets the current text being displayed.
Definition execute_frame.cpp:93
void setText(const QString &text)
Sets the text to be displayed.
Definition execute_frame.cpp:84
void setImage(const QString &path)
Sets the image to be displayed.
Definition execute_frame.cpp:52
ExecuteFrame(QWidget *parent=nullptr)
Constructor for ExecuteFrame.
Definition execute_frame.cpp:5