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

mcallegari / qlcplus / 14809507932

03 May 2025 09:13AM UTC coverage: 31.879% (+0.03%) from 31.845%
14809507932

push

github

web-flow
Merge pull request #1745 from mcallegari/qmluiqt6

Port QML UI to Qt6

2 of 9 new or added lines in 3 files covered. (22.22%)

3720 existing lines in 174 files now uncovered.

16422 of 51513 relevant lines covered (31.88%)

19079.9 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

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

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

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

49
void CreateFixtureGroup::setSize(const QSize& size)
×
50
{
UNCOV
51
    Q_ASSERT(m_widthSpin != NULL);
×
UNCOV
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
{
UNCOV
59
    Q_ASSERT(m_widthSpin != NULL);
×
UNCOV
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