| 1 |
/* |
| 2 |
* SPDX-FileCopyrightText: 2015 Boudewijn Rempt <[email protected]> |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: GPL-2.0-or-later |
| 5 |
*/ |
| 6 |
#ifndef WIDGETS_DEBUG_H_ |
| 7 |
#define WIDGETS_DEBUG_H_ |
| 8 |
|
| 9 |
#include <QDebug> |
| 10 |
#include <QLoggingCategory> |
| 11 |
#include <kowidgets_export.h> |
| 12 |
|
| 13 |
extern const KOWIDGETS_EXPORT QLoggingCategory &WIDGETS_LOG(); |
| 14 |
|
| 15 |
#define debugWidgets qCDebug(WIDGETS_LOG)<<Q_FUNC_INFO |
| 16 |
#define warnWidgets qCWarning(WIDGETS_LOG) |
| 17 |
#define errorWidgets qCCritical(WIDGETS_LOG) |
| 18 |
|
| 19 |
#endif |