Defaulted location of LED pictures

This commit is contained in:
Ralf Ramsauer 2015-10-07 17:44:45 +02:00
parent 6634d1fd71
commit bb703cb5b5
2 changed files with 6 additions and 2 deletions

View File

@ -57,7 +57,7 @@ void MainWindow::setClientmessage(const Clientmessage &msg)
void MainWindow::_LED(const bool on)
{
if (on)
ui->LED->setPixmap(QPixmap(IMAGE_LOCATION "led-green.png"));
ui->LED->setPixmap(QPixmap(IMAGE_LED_GREEN));
else
ui->LED->setPixmap(QPixmap(IMAGE_LOCATION "led-red.png"));
ui->LED->setPixmap(QPixmap(IMAGE_LED_RED));
}

View File

@ -27,7 +27,11 @@
#define DEFAULT_SERIAL_BAUDRATE 9600UL
#define SHARED_LOCATION "@CMAKE_INSTALL_PREFIX@/share/doorlockd/"
#define IMAGE_LOCATION SHARED_LOCATION "images/"
#define IMAGE_LED_GREEN IMAGE_LOCATION "led-green.png"
#define IMAGE_LED_RED IMAGE_LOCATION "led-red.png"
#define SOUNDS_LOCATION SHARED_LOCATION "sounds/"
#define SOUND_LOCK SOUNDS_LOCATION "lock.wav"