• 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

92.21
/ui/src/aboutbox.cpp
1
/*
2
  Q Light Controller
3
  aboutbox.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 <QUrl>
21
#include <QDebug>
22
#include <QLabel>
23
#include <QTimer>
24
#include <QAction>
25
#include <QMessageBox>
26
#include <QDesktopServices>
27

28
#include "qlcconfig.h"
29
#include "aboutbox.h"
30

31
AboutBox::AboutBox(QWidget* parent) : QDialog (parent)
3✔
32
{
33
    setupUi(this);
3✔
34

35
    QAction* action = new QAction(this);
3✔
36
    action->setShortcut(QKeySequence(QKeySequence::Close));
3✔
37
    connect(action, SIGNAL(triggered(bool)), this, SLOT(reject()));
3✔
38
    addAction(action);
3✔
39

40
    m_titleLabel->setText(APPNAME);
3✔
41
    m_versionLabel->setText(APPVERSION);
3✔
42
    m_copyrightLabel->setText(QString("Copyright &copy; <B>Heikki Junnila, Massimo Callegari</B> %1")
6✔
43
                              .arg(tr("and contributors:")));
6✔
44
    m_websiteLabel->setText(tr("Website: %1").arg("<A HREF=\"http://www.qlcplus.org/\">http://www.qlcplus.org/</A>"));
3✔
45
    connect(m_websiteLabel, SIGNAL(linkActivated(QString)),
3✔
46
            this, SLOT(slotWebsiteClicked()));
47
    connect(m_qtButton, SIGNAL(clicked()),
3✔
48
            this, SLOT(slotAboutQt()));
49

50
    connect(m_contributors, SIGNAL(itemClicked(QListWidgetItem*)),
3✔
51
            this, SLOT(slotItemClicked()));
52
    m_contributors->clear();
3✔
53
    m_contributors->addItem("Contributors:");
3✔
54
    m_contributors->addItem("Jano Svitok");
3✔
55
    m_contributors->addItem("David Garyga");
3✔
56
    m_contributors->addItem(QString::fromUtf8("Lukas Jähn"));
3✔
57
    m_contributors->addItem("Robert Box");
3✔
58
    m_contributors->addItem("Thomas Achtner");
3✔
59
    m_contributors->addItem("Joep Admiraal");
3✔
60
    m_contributors->addItem("Oliver Ruempelein");
3✔
61
    m_contributors->addItem("Jannis Achstetter");
3✔
62
    m_contributors->addItem("Stefan Riemens");
3✔
63
    m_contributors->addItem("Florian Euchner");
3✔
64
    m_contributors->addItem("Bartosz Grabias");
3✔
65
    m_contributors->addItem("NiKoyes");
3✔
66
    m_contributors->addItem("Heiko Fanieng");
3✔
67
    m_contributors->addItem("Raymond Van Laake");
3✔
68
    m_contributors->addItem(QString::fromUtf8("Luis García Tornel"));
3✔
69
    m_contributors->addItem("Jan Lachman");
3✔
70
    m_contributors->addItem("Nuno Almeida");
3✔
71
    m_contributors->addItem("Santiago Benejam Torres");
3✔
72
    m_contributors->addItem(QString::fromUtf8("Jérôme Lebleu"));
3✔
73
    m_contributors->addItem("Koichiro Saito");
3✔
74
    m_contributors->addItem("Karri Kaksonen");
3✔
75
    m_contributors->addItem("Stefan Krupop");
3✔
76
    m_contributors->addItem("Nathan Durnan");
3✔
77
    m_contributors->addItem("Giorgio Rebecchi");
3✔
78
    m_contributors->addItem("Klaus Weidenbach");
3✔
79
    m_contributors->addItem("Stefan Krumm");
3✔
80
    m_contributors->addItem(QString::fromUtf8("Christian Sühs"));
3✔
81
    m_contributors->addItem("Simon Newton");
3✔
82
    m_contributors->addItem("Christopher Staite");
3✔
83
    m_contributors->addItem("Lutz Hillebrand");
3✔
84
    m_contributors->addItem("Matthew Jaggard");
3✔
85
    m_contributors->addItem("Ptit Vachon");
3✔
86
    m_contributors->addItem("Tolmino");
3✔
87

88
    m_timer = new QTimer(this);
3✔
89
    connect(m_timer, SIGNAL(timeout()), this, SLOT(slotTimeout()));
3✔
90
    m_row = -1;
3✔
91
    m_increment = 1;
3✔
92
    m_timer->start(500);
3✔
93
}
3✔
94

95
AboutBox::~AboutBox()
3✔
96
{
97
}
3✔
98

99
void AboutBox::slotTimeout()
68✔
100
{
101
    if (m_row <= 0)
68✔
102
        m_increment = 1;
2✔
103
    else if (m_row >= m_contributors->count())
66✔
104
        m_increment = -1;
1✔
105

106
    m_row += m_increment;
68✔
107
    m_contributors->scrollToItem(m_contributors->item(m_row));
68✔
108
}
68✔
109

110
void AboutBox::slotItemClicked()
2✔
111
{
112
    if (m_timer != NULL)
2✔
113
    {
114
        m_timer->stop();
1✔
115
        delete m_timer;
1✔
116
        m_timer = NULL;
1✔
117
    }
118
}
2✔
119

120
void AboutBox::slotWebsiteClicked()
×
121
{
122
    QDesktopServices::openUrl(QUrl("http://www.qlcplus.org/"));
×
123
}
×
124

NEW
125
void AboutBox::slotAboutQt()
×
126
{
NEW
127
    QMessageBox::aboutQt(this, QString(APPNAME));
×
NEW
128
}
×
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