• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mcallegari / qlcplus / 14547220756

19 Apr 2025 08:04AM UTC coverage: 31.866% (+0.01%) from 31.854%
14547220756

Pull #1720

github

web-flow
Merge e5637eaa5 into 2603830c2
Pull Request #1720: Update Eurolite-LED-KLS-2500.qxf

14684 of 46080 relevant lines covered (31.87%)

26448.78 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

90.0
/ui/src/virtualconsole/vcdockarea.cpp
1
/*
2
  Q Light Controller
3
  vcdockarea.cpp
4

5
  Copyright (c) Heikki Junnila
6

7
  Licensed under the Apache License, Version 2.0 (the "License");
8
  you may not use this file except in compliance with the License.
9
  You may obtain a copy of the License at
10

11
      http://www.apache.org/licenses/LICENSE-2.0.txt
12

13
  Unless required by applicable law or agreed to in writing, software
14
  distributed under the License is distributed on an "AS IS" BASIS,
15
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
  See the License for the specific language governing permissions and
17
  limitations under the License.
18
*/
19

20
#include <QVBoxLayout>
21
#include <QString>
22
#include <QDebug>
23

24
#include "grandmasterslider.h"
25
#include "inputoutputmap.h"
26
#include "vcdockarea.h"
27

28
VCDockArea::VCDockArea(QWidget* parent, InputOutputMap *ioMap)
76✔
29
    : QFrame(parent)
76✔
30
{
31
    Q_ASSERT(ioMap != NULL);
32

33
    new QHBoxLayout(this);
76✔
34
    layout()->setContentsMargins(0, 0, 0, 0);
76✔
35
    layout()->setSpacing(1);
76✔
36

37
    m_gm = new GrandMasterSlider(this, ioMap);
76✔
38
    layout()->addWidget(m_gm);
76✔
39
}
76✔
40

41
VCDockArea::~VCDockArea()
152✔
42
{
43
}
152✔
44

45
void VCDockArea::setGrandMasterVisible(bool visible)
76✔
46
{
47
    Q_ASSERT(m_gm != NULL);
48
    if (visible)
76✔
49
        m_gm->show();
76✔
50
    else
51
        m_gm->hide();
×
52
}
76✔
53

54
void VCDockArea::setGrandMasterInvertedAppearance(GrandMaster::SliderMode mode)
76✔
55
{
56
    Q_ASSERT(m_gm != NULL);
57
    if (mode == GrandMaster::Normal)
76✔
58
        m_gm->setInvertedAppearance(false);
76✔
59
    else
60
        m_gm->setInvertedAppearance(true);
×
61
}
76✔
62

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc