github
17 of 63 new or added lines in 6 files covered. (26.98%)
8 existing lines in 1 file now uncovered.33266 of 104380 relevant lines covered (31.87%)
47580.33 hits per line
1 |
#include "effects/dlgeffect.h" |
|
2 |
|
|
3 |
#include <QWidget> |
|
4 |
|
|
5 |
#include "moc_dlgeffect.cpp" |
|
6 |
|
|
NEW
|
DlgEffect::DlgEffect(QWidget* customUI) |
× |
NEW
|
: m_closesWithoutSignal(false) {
|
× |
NEW
|
setWindowTitle("Effect");
|
× |
NEW
|
setWindowFlags(Qt::Tool | Qt::WindowStaysOnTopHint); |
× |
NEW
|
setCustomUI(customUI); |
× |
NEW
|
} |
× |
13 |
|
|
NEW
|
DlgEffect::~DlgEffect() { |
× |
NEW
|
} |
× |
16 |
|
|
NEW
|
void DlgEffect::setCustomUI(QWidget* customUI) {
|
× |
NEW
|
if (customUI != nullptr) { |
× |
NEW
|
customUI->setParent(this);
|
× |
20 |
} |
|
NEW
|
m_customUI = customUI; |
× |
NEW
|
} |
× |
23 |
|
|
NEW
|
void DlgEffect::setClosesWithoutSignal(bool closesWithoutSignal) { |
× |
NEW
|
m_closesWithoutSignal = closesWithoutSignal; |
× |
NEW
|
} |
× |
27 |
|
|
NEW
|
void DlgEffect::closeEvent(QCloseEvent* e) {
|
× |
29 |
Q_UNUSED(e); |
|
NEW
|
if (!m_closesWithoutSignal) {
|
× |
NEW
|
emit closed(); |
× |
32 |
} |
|
NEW
|
} |
× |