lmms
Cross-platform music production software
Loading...
Searching...
No Matches
DeprecationHelper.h File Reference
#include <type_traits>
#include <QDomDocument>
#include <QFontMetrics>
#include <QKeySequence>
#include <QVariant>
#include <QWheelEvent>

Go to the source code of this file.

Namespaces

namespace  lmms
namespace  lmms::detail

Functions

QPoint lmms::position (const QDropEvent *de)
 Backwards-compatible adapter for QDropEvent's new position() to the old pos() method.
QPoint lmms::position (const QMouseEvent *me)
 Backwards-compatible adapter for QMouseEvent's new position() to the old pos() method.
QPointF lmms::positionF (const QMouseEvent *me)
 Backwards-compatible adapter for QMouseEvent's new position() to the old localPos() method.
QPoint lmms::globalPosition (const QMouseEvent *me)
 Backwards-compatible adapter for QMouseEvent's new globalPosition() to the old globalPos() method.
template<typename... Args>
requires (detail::IsKeyOrModifier<Args> && ...)
QKeySequence lmms::keySequence (Args... args)
 Combines Qt key and modifier arguments together.
QMetaType::Type lmms::typeId (const QVariant &variant)
 Backwards-compatible adapter for QVariant's new typeId() to the old type() method.
bool lmms::setContent (QDomDocument &doc, const QByteArray &text, QString *errorMsg=nullptr, int *errorLine=nullptr, int *errorColumn=nullptr)
 Backwards-compatible adapter for QDomDocument::setContent() for QByteArray input.
bool lmms::setContent (QDomDocument &doc, QIODevice *dev, bool namespaceProcessing, QString *errorMsg=nullptr, int *errorLine=nullptr, int *errorColumn=nullptr)
 Backwards-compatible adapter for QDomDocument::setContent() for QIODevice* input.

Variables

template<typename T>
constexpr bool lmms::detail::IsKeyOrModifier