Declare logging category exported in tst_QDockWidget
The logging category lcQpaDockWidgets was explicitly declared in tst_QDockWidget. That failed to complile on static builds. This patch replaces the explicit declaration with Q_DECLARE_EXPORTED_LOGGING_CATEGORY(lcQpaDockWidgets, Q_WIDGETS_EXPORT) Pick-to: 6.4 6.3 6.2 Change-Id: I1cad0e672313be84297eeddf992f6cafe9a35977 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
5f5c4598fe
commit
8e9fdfec0a
@ -43,7 +43,7 @@ QT_REQUIRE_CONFIG(mainwindow);
|
|||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
|
|
||||||
Q_DECLARE_LOGGING_CATEGORY(lcQpaDockWidgets);
|
Q_DECLARE_EXPORTED_LOGGING_CATEGORY(lcQpaDockWidgets, Q_WIDGETS_EXPORT);
|
||||||
|
|
||||||
class QToolBar;
|
class QToolBar;
|
||||||
class QRubberBand;
|
class QRubberBand;
|
||||||
|
@ -16,12 +16,6 @@
|
|||||||
#include <QtGui/QPainter>
|
#include <QtGui/QPainter>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
|
|
||||||
#ifdef QT_BUILD_INTERNAL
|
|
||||||
QT_BEGIN_NAMESPACE
|
|
||||||
Q_LOGGING_CATEGORY(lcQpaDockWidgets, "qt.widgets.dockwidgets");
|
|
||||||
QT_END_NAMESPACE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
bool hasFeature(QDockWidget *dockwidget, QDockWidget::DockWidgetFeature feature)
|
bool hasFeature(QDockWidget *dockwidget, QDockWidget::DockWidgetFeature feature)
|
||||||
{ return (dockwidget->features() & feature) == feature; }
|
{ return (dockwidget->features() & feature) == feature; }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user