Skip to content

Commit

Permalink
Compatibility with Qt5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
andibacher committed Apr 3, 2024
1 parent 42e6c72 commit a616f13
Show file tree
Hide file tree
Showing 14 changed files with 30 additions and 7 deletions.
2 changes: 2 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ All notable changes to this project will be documented in this file.
----
## [v1.6.0] - ??
### Improvements

- Support for Qt6
- Minimum required Qt version is 5.12
- Add case sensitivity option in Stringmatchfilter
- cmake: replace BUILD_STATIC_LOG4CXX_LIB with standard BUILD_SHARED_LIBS

### Fixed
- Fixes for Qt6.7
- Replace deprecated Qt 5.15 stuff

## [v1.5.1] - 14.02.2020
Expand Down
1 change: 1 addition & 0 deletions src/log4qt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ set(log4qt_HEADERS
hierarchy.h
layout.h
level.h
log4qtdefs.h
log4qt.h
log4qtshared.h
log4qtsharedptr.h
Expand Down
1 change: 1 addition & 0 deletions src/log4qt/appender.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#define LOG4QT_APPENDER_H

#include "layout.h"
#include "log4qtdefs.h"
#include "log4qtsharedptr.h"
#include "spi/filter.h"
#include "helpers/classlogger.h"
Expand Down
1 change: 1 addition & 0 deletions src/log4qt/basicconfigurator.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#ifndef LOG4QT_BASICCONFIGURATOR_H
#define LOG4QT_BASICCONFIGURATOR_H

#include "log4qtdefs.h"
#include "log4qt.h"

namespace Log4Qt
Expand Down
1 change: 1 addition & 0 deletions src/log4qt/helpers/configuratorhelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#ifndef LOG4QT_HELPERS_CONFIGURATORHELPER_H
#define LOG4QT_HELPERS_CONFIGURATORHELPER_H

#include "log4qt/log4qtdefs.h"
#include "log4qt/log4qtshared.h"
#include "log4qt/loggingevent.h"

Expand Down
1 change: 1 addition & 0 deletions src/log4qt/helpers/factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#ifndef LOG4QT_HELPERS_FACTORY_H
#define LOG4QT_HELPERS_FACTORY_H

#include "log4qt/log4qtdefs.h"
#include "log4qt/log4qtshared.h"

#include <QHash>
Expand Down
1 change: 1 addition & 0 deletions src/log4qt/helpers/initialisationhelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#ifndef LOG4QT_HELPERS_INITIALISATIONHELPER_H
#define LOG4QT_HELPERS_INITIALISATIONHELPER_H

#include "log4qt/log4qtdefs.h"
#include "log4qt/log4qtshared.h"

#include <QHash>
Expand Down
1 change: 1 addition & 0 deletions src/log4qt/helpers/optionconverter.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#ifndef LOG4QT_OPTIONCONVERTER_H
#define LOG4QT_OPTIONCONVERTER_H

#include "log4qt/log4qtdefs.h"
#include "log4qt/log4qtshared.h"
#include "log4qt/level.h"

Expand Down
1 change: 1 addition & 0 deletions src/log4qt/helpers/patternformatter.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#ifndef LOG4QT_PATTERNFORMATTER_H
#define LOG4QT_PATTERNFORMATTER_H

#include "log4qt/log4qtdefs.h"
#include "log4qt/log4qtshared.h"

#include <QList>
Expand Down
1 change: 1 addition & 0 deletions src/log4qt/layout.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#ifndef LOG4QT_LAYOUT_H
#define LOG4QT_LAYOUT_H

#include "log4qtdefs.h"
#include "log4qt.h"
#include "log4qtsharedptr.h"

Expand Down
6 changes: 0 additions & 6 deletions src/log4qt/log4qt.h
Original file line number Diff line number Diff line change
Expand Up @@ -475,12 +475,6 @@
# error "Log4Qt requires at least clang version 3.3 or higher for used c++11 features"
#endif

// use Q_DISABLE_COPY for Qt version prior to 5.13.0
#ifndef Q_DISABLE_COPY_MOVE
#define Q_DISABLE_COPY_MOVE(Class) \
Q_DISABLE_COPY(Class)
#endif

/*
LOG4QT_VERSION is (major << 16) + (minor << 8) + patch.
*/
Expand Down
16 changes: 16 additions & 0 deletions src/log4qt/log4qtdefs.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#ifndef LOG4QTDEFS_H
#define LOG4QTDEFS_H

#include <QtGlobal>

#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include <QtClassHelperMacros>
#endif

// use Q_DISABLE_COPY for Qt version prior to 5.13.0
#ifndef Q_DISABLE_COPY_MOVE
#define Q_DISABLE_COPY_MOVE(Class) \
Q_DISABLE_COPY(Class)
#endif

#endif // LOG4QTDEFS_H
1 change: 1 addition & 0 deletions src/log4qt/mdc.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#ifndef LOG4QT_MDC_H
#define LOG4QT_MDC_H

#include "log4qtdefs.h"
#include "log4qt.h"

#include <QString>
Expand Down
3 changes: 2 additions & 1 deletion src/log4qt/ndc.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
#ifndef LOG4QT_NDC_H
#define LOG4QT_NDC_H

#include "log4qt.h"
#include "log4qtdefs.h"
#include "log4qtshared.h"

#include <QString>
#include <QStack>
Expand Down

0 comments on commit a616f13

Please sign in to comment.