Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qt6 fixes #36

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Qt6 fixes #36

wants to merge 9 commits into from

Commits on Aug 8, 2020

  1. Use QElapsedTimer to measure time differences.

    QTime::elapsed() is deprecated in recent Qt5, and removed in Qt6. Use
    QElapsedTimer instead, which is the suggested replacement.
    bluebrother committed Aug 8, 2020
    Configuration menu
    Copy the full SHA
    c2987bd View commit details
    Browse the repository at this point in the history
  2. Use QString::vasprintf() in newer Qt versions.

    vsprintf() is deprecated in recent Qt5, and removed in Qt6. Its
    replacement vasprintf() is available since Qt 5.5.
    bluebrother committed Aug 8, 2020
    Configuration menu
    Copy the full SHA
    3c395f7 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2020

  1. Replace QDateTime::fromTime_t for newer Qt.

    fromTime_t has been deprecated and removed from Qt6. Use the replacement
    fromSecsSinceEpoch() on Qt 5.8+.
    bluebrother committed Aug 16, 2020
    Configuration menu
    Copy the full SHA
    c2bbd90 View commit details
    Browse the repository at this point in the history
  2. Replace QRegExp with QRegularExpression.

    QRegExp is deprecated in recent Qt, and has been removed in Qt6. Use the
    replacement QRegularExpression.
    bluebrother committed Aug 16, 2020
    Configuration menu
    Copy the full SHA
    68b90a9 View commit details
    Browse the repository at this point in the history
  3. Use range iterator for creating QSet on newer Qt.

    fromList() is deprecated and has been removed in Qt6. Since Qt 5.14
    range constructors are available, use those instead.
    bluebrother committed Aug 16, 2020
    Configuration menu
    Copy the full SHA
    294f286 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2021

  1. FileAppender: don't force flush data to file system (behavior change!)

    FileAppender will no longer call QFile::flush on every message write
    due to it dramatically slowing apps when writing a lot of log records
    to slow file system. The downside is some log data may be lost if
    application crashes before QFile manages to write all of the buffered
    data to file system.
    
    It is still possible to revert to an old behavior calling
    setFlushOnWrite(true) on FileAppender.
    cyberbobs authored and bluebrother committed Dec 18, 2021
    Configuration menu
    Copy the full SHA
    56c5446 View commit details
    Browse the repository at this point in the history
  2. Updated to newer version of CMake

    CMake started showing deprecation warning about CMake 2.8 files
    support.
    cyberbobs authored and bluebrother committed Dec 18, 2021
    Configuration menu
    Copy the full SHA
    d4a11a3 View commit details
    Browse the repository at this point in the history
  3. Remove unused include.

    Qt6 moves QTextCodec to the Qt5Compat module. Since it's unused anyway
    remove it so we don't get the dependency on Qt5Compat.
    bluebrother committed Dec 18, 2021
    Configuration menu
    Copy the full SHA
    61d2d1e View commit details
    Browse the repository at this point in the history

Commits on Dec 25, 2021

  1. Fix destructor segfault with newer Qt versions.

    Getting the values from a QMultiMap() returns a list, but not the same
    on consecutive calls. Thus calling it twice to get the iterators will
    yield different lists, causing the iterator to fail.
    
    Fixes segfault when destructing the logger.
    bluebrother committed Dec 25, 2021
    Configuration menu
    Copy the full SHA
    b85d886 View commit details
    Browse the repository at this point in the history