@@ -42,6 +42,10 GraphicsButton::~GraphicsButton() | |||||
42 | void GraphicsButton::mousePressEvent(QMouseEvent *event) |
|
42 | void GraphicsButton::mousePressEvent(QMouseEvent *event) | |
43 | { |
|
43 | { | |
44 | QString program = m_appFolder.absolutePath() + QDir::separator() + m_app; |
|
44 | QString program = m_appFolder.absolutePath() + QDir::separator() + m_app; | |
|
45 | if (m_demoApp) { | |||
|
46 | m_demoApp->close(); | |||
|
47 | delete m_demoApp; | |||
|
48 | } | |||
45 | m_demoApp = new QProcess(this); |
|
49 | m_demoApp = new QProcess(this); | |
46 | m_demoApp->start(program); |
|
50 | m_demoApp->start(program); | |
47 | event->accept(); |
|
51 | event->accept(); |
General Comments 0
You need to be logged in to leave comments.
Login now