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

mcallegari / qlcplus / 18357067171

08 Oct 2025 08:16PM UTC coverage: 34.26% (+2.2%) from 32.066%
18357067171

push

github

mcallegari
Merge branch 'master' into filedialog

1282 of 4424 new or added lines in 152 files covered. (28.98%)

1342 existing lines in 152 files now uncovered.

17704 of 51675 relevant lines covered (34.26%)

19430.31 hits per line

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

0.0
/ui/src/createfixturegroup.cpp
1
/*
2
  Q Light Controller
3
  createfixturegroup.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 <QSettings>
21

22
#include "createfixturegroup.h"
23

24
#define SETTINGS_GEOMETRY "createfixturegroup/geometry"
25

26
CreateFixtureGroup::CreateFixtureGroup(QWidget* parent)
×
27
    : QDialog(parent)
×
28
{
29
    setupUi(this);
×
30

NEW
31
    QSettings settings;
×
NEW
32
    QVariant geometrySettings = settings.value(SETTINGS_GEOMETRY);
×
NEW
33
    if (geometrySettings.isValid() == true)
×
NEW
34
        restoreGeometry(geometrySettings.toByteArray());
×
UNCOV
35
}
×
36

37
CreateFixtureGroup::~CreateFixtureGroup()
×
38
{
NEW
39
    QSettings settings;
×
NEW
40
    settings.setValue(SETTINGS_GEOMETRY, saveGeometry());
×
UNCOV
41
}
×
42

43
QString CreateFixtureGroup::name() const
×
44
{
45
    Q_ASSERT(m_nameEdit != NULL);
×
46
    return m_nameEdit->text();
×
47
}
48

49
void CreateFixtureGroup::setSize(const QSize& size)
×
50
{
51
    Q_ASSERT(m_widthSpin != NULL);
×
52
    Q_ASSERT(m_heightSpin != NULL);
×
53
    m_widthSpin->setValue(size.width());
×
54
    m_heightSpin->setValue(size.height());
×
55
}
×
56

57
QSize CreateFixtureGroup::size() const
×
58
{
59
    Q_ASSERT(m_widthSpin != NULL);
×
60
    Q_ASSERT(m_heightSpin != NULL);
×
61
    return QSize(m_widthSpin->value(), m_heightSpin->value());
×
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