20 Q_INVOKABLE
static QString toPathString (
const QUrl &url);
21 Q_INVOKABLE
static QUrl localFileToQUrl (
const QString &path);
22 Q_INVOKABLE
static QString pathBasename (
const QString &path);
24 Q_INVOKABLE
static float amplitudeToDbfs (
float amplitude);
25 Q_INVOKABLE
static QStringList splitTextLines (
const QString &text);
26 Q_INVOKABLE
static QStringList removeDuplicates (
const QStringList &list);
27 Q_INVOKABLE
static QString readTextFileContent (
const QString &filePath);
29 Q_INVOKABLE
static QColor saturate (
const QColor &color,
float perc);
30 Q_INVOKABLE
static QColor makeBrighter (
const QColor &color,
float perc);
31 Q_INVOKABLE
static QColor
32 adjustOpacity (
const QColor &color,
float newOpacity);
34 Q_INVOKABLE
static QVector<float>
35 getAutomationRegionValues (QObject * automationRegion,
int pixelWidth);
37 Q_INVOKABLE
static bool rectanglesIntersect (QRectF a, QRectF b);
38 Q_INVOKABLE
static bool rectanglesIntersect (QRect a, QRect b);
44 QAbstractItemModel * model,
45 const QList<int> &rows,
52 QAbstractItemModel * model,
static Q_INVOKABLE QItemSelection createRangeSelection(QAbstractItemModel *model, int startRow, int endRow, int startCol=0, int endCol=0)
Helper to create a contiguous block/range selection.
static Q_INVOKABLE QItemSelection createRowSelection(QAbstractItemModel *model, const QList< int > &rows, int column=0)
Helper to create a selection from a list of rows in a single column.