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

mcallegari / qlcplus / 14499134437

16 Apr 2025 05:47PM UTC coverage: 31.871% (+0.02%) from 31.851%
14499134437

push

github

web-flow
Merge pull request #1721 from Jurrie/feature/Option_to_hide_GM_slider

Add ability to hide Grand Master on virtual console and web

17 of 24 new or added lines in 4 files covered. (70.83%)

4 existing lines in 2 files now uncovered.

14690 of 46092 relevant lines covered (31.87%)

26441.99 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
NEW
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