2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2008, Christian Schoenebeck |
Copyright (C) 2008, Christian Schoenebeck |
5 |
Copyright (C) 2010, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2010-2013, rncbc aka Rui Nuno Capela. All rights reserved. |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
8 |
modify it under the terms of the GNU General Public License |
modify it under the terms of the GNU General Public License |
14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 |
GNU General Public License for more details. |
GNU General Public License for more details. |
16 |
|
|
17 |
You should have received a copy of the GNU General Public License |
You should have received a copy of the GNU General Public License along |
18 |
along with this program; if not, write to the Free Software |
with this program; if not, write to the Free Software Foundation, Inc., |
19 |
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
20 |
|
|
21 |
*****************************************************************************/ |
*****************************************************************************/ |
22 |
|
|
27 |
|
|
28 |
#include <QGridLayout> |
#include <QGridLayout> |
29 |
|
|
30 |
|
#if QT_VERSION < QT_VERSION_CHECK(4, 5, 0) |
31 |
|
namespace Qt { |
32 |
|
const WindowFlags WindowCloseButtonHint = WindowFlags(0x08000000); |
33 |
|
} |
34 |
|
#endif |
35 |
|
|
36 |
|
|
37 |
namespace QSampler { |
namespace QSampler { |
38 |
|
|
50 |
: QLabel(sText, pParent) |
: QLabel(sText, pParent) |
51 |
{ |
{ |
52 |
if (++g_iMidiActivityRefCount == 1) { |
if (++g_iMidiActivityRefCount == 1) { |
53 |
g_pMidiActivityLedOn = new QPixmap(":/icons/ledon1.png"); |
g_pMidiActivityLedOn = new QPixmap(":/images/ledon1.png"); |
54 |
g_pMidiActivityLedOff = new QPixmap(":/icons/ledoff1.png"); |
g_pMidiActivityLedOff = new QPixmap(":/images/ledoff1.png"); |
55 |
} |
} |
56 |
|
|
57 |
setPixmap(*g_pMidiActivityLedOff); |
setPixmap(*g_pMidiActivityLedOff); |