mirror of
https://github.com/binary-kitchen/doorlockd
synced 2024-10-31 22:47:05 +01:00
Defaulted location of LED pictures
This commit is contained in:
parent
6634d1fd71
commit
bb703cb5b5
@ -57,7 +57,7 @@ void MainWindow::setClientmessage(const Clientmessage &msg)
|
|||||||
void MainWindow::_LED(const bool on)
|
void MainWindow::_LED(const bool on)
|
||||||
{
|
{
|
||||||
if (on)
|
if (on)
|
||||||
ui->LED->setPixmap(QPixmap(IMAGE_LOCATION "led-green.png"));
|
ui->LED->setPixmap(QPixmap(IMAGE_LED_GREEN));
|
||||||
else
|
else
|
||||||
ui->LED->setPixmap(QPixmap(IMAGE_LOCATION "led-red.png"));
|
ui->LED->setPixmap(QPixmap(IMAGE_LED_RED));
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,11 @@
|
|||||||
#define DEFAULT_SERIAL_BAUDRATE 9600UL
|
#define DEFAULT_SERIAL_BAUDRATE 9600UL
|
||||||
|
|
||||||
#define SHARED_LOCATION "@CMAKE_INSTALL_PREFIX@/share/doorlockd/"
|
#define SHARED_LOCATION "@CMAKE_INSTALL_PREFIX@/share/doorlockd/"
|
||||||
|
|
||||||
#define IMAGE_LOCATION SHARED_LOCATION "images/"
|
#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 SOUNDS_LOCATION SHARED_LOCATION "sounds/"
|
||||||
#define SOUND_LOCK SOUNDS_LOCATION "lock.wav"
|
#define SOUND_LOCK SOUNDS_LOCATION "lock.wav"
|
||||||
|
Loading…
Reference in New Issue
Block a user