Add copyright headers to tst_viewguard
This commit is contained in:
@@ -1,8 +1,19 @@
|
||||
#include <cstdio>
|
||||
/*
|
||||
This file is part of KDDockWidgets.
|
||||
|
||||
SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
|
||||
Author: Waqar Ahmed <waqar.ahmed@kdab.com>
|
||||
|
||||
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
|
||||
|
||||
Contact KDAB at <info@kdab.com> for commercial licensing options.
|
||||
*/
|
||||
|
||||
#include <ViewGuard.h>
|
||||
#include <qtwidgets/views/ViewWrapper_qtwidgets.h>
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
using namespace KDDockWidgets;
|
||||
|
||||
void test(bool cond, const char *stmt, int line)
|
||||
@@ -20,7 +31,7 @@ int main()
|
||||
TEST(g.isNull());
|
||||
|
||||
{
|
||||
Views::ViewWrapper_qtwidgets wv(static_cast<QWidget*>(nullptr));
|
||||
Views::ViewWrapper_qtwidgets wv(static_cast<QWidget *>(nullptr));
|
||||
g = &wv;
|
||||
TEST(!g.isNull());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user