mirror of
https://github.com/arabine/open-story-teller.git
synced 2025-12-06 17:09:06 +01:00
18 lines
420 B
C++
18 lines
420 B
C++
#include "osthmi_dock.h"
|
|
|
|
#include <QPixmap>
|
|
|
|
OstHmiDock::OstHmiDock()
|
|
: DockWidgetBase(tr("StoryTeller HMI"))
|
|
{
|
|
setObjectName("OstHmiDock"); // used to save the state
|
|
m_uiOstDisplay.setupUi(this);
|
|
|
|
connect(m_uiOstDisplay.okButton, &QPushButton::clicked, this, &OstHmiDock::sigOkButton);
|
|
}
|
|
|
|
void OstHmiDock::SetImage(const QString &fileName)
|
|
{
|
|
m_uiOstDisplay.display->setPixmap(QPixmap(fileName));
|
|
}
|