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

mcallegari / qlcplus / 9306117670

30 May 2024 04:38PM UTC coverage: 32.028% (+0.02%) from 32.013%
9306117670

push

github

mcallegari
Enter 4.13.1 release

14020 of 43774 relevant lines covered (32.03%)

23948.9 hits per line

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

66.67
/engine/src/qlcpoint.cpp
1
/*
2
  Q Light Controller
3
  qlcpoint.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 <QPair>
21

22
#include "qlcpoint.h"
23

24
QLCPoint::QLCPoint()
186✔
25
    : QPoint()
26
{
27
}
186✔
28

29
QLCPoint::QLCPoint(int x, int y)
2,364✔
30
    : QPoint(x, y)
31
{
32
}
2,364✔
33

34
bool QLCPoint::operator<(const QLCPoint &pt) const
14,595✔
35
{
36
    if (y() < pt.y())
14,595✔
37
        return true;
38
    if (y() == pt.y() && x() < pt.x())
9,528✔
39
        return true;
2,939✔
40

41
    return false;
42
}
43

44
uint qHash(const QLCPoint& key)
×
45
{
46
    uint hash;
47
    hash = key.x() << 16;
×
48
    hash = hash | (key.y() & 0xFFFF);
×
49
    hash = hash & (~0U);
50
    return hash;
×
51
}
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