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

mcallegari / qlcplus / 8961243534

05 May 2024 09:23PM UTC coverage: 32.068% (+4.0%) from 28.094%
8961243534

push

github

mcallegari
Merge branch 'master' into qmltoqt6

902 of 2557 new or added lines in 140 files covered. (35.28%)

166 existing lines in 76 files now uncovered.

15395 of 48008 relevant lines covered (32.07%)

22949.67 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

© 2025 Coveralls, Inc