painter->setFont(font);
QString subText = index.data(DurationRole).toString();
int usage = index.data(UsageRole).toInt();
- if (usage != 0) subText.append(QString(" (%1)").arg(usage));
+ if (usage != 0) subText.append(QString::fromLatin1(" (%1)").arg(usage));
QRectF bounding;
painter->drawText(r2, Qt::AlignLeft | Qt::AlignVCenter , subText, &bounding);
int jobProgress = index.data(Qt::UserRole + 5).toInt();
} else if (jobProgress == JOBCRASHED) {
QString jobText = index.data(Qt::UserRole + 7).toString();
if (!jobText.isEmpty()) {
- QRectF txtBounding = painter->boundingRect(r2, Qt::AlignRight | Qt::AlignVCenter, " " + jobText + " ");
+ QRectF txtBounding = painter->boundingRect(r2, Qt::AlignRight | Qt::AlignVCenter, QLatin1Char(' ') + jobText + QLatin1Char(' ') );
painter->setPen(Qt::NoPen);
painter->setBrush(option.palette.highlight());
painter->drawRoundedRect(txtBounding, 2, 2);
void updatePalette();
public slots:
- void updateAllClips(bool displayRatioChanged, bool fpsChanged, QStringList brokenClips);
+ void updateAllClips(bool displayRatioChanged, bool fpsChanged, const QStringList &brokenClips);
void slotReplyGetImage(const QString &clipId, const QImage &img);
void slotReplyGetImage(const QString &clipId, const QString &name, int width, int height);
void slotReplyGetFileProperties(const QString &clipId, Mlt::Producer *producer, const stringMap &properties, const stringMap &metadata, bool replace);
/** @brief Adds, edits or deletes a folder item.
*
* This is triggered by AddFolderCommand and EditFolderCommand. */
- void slotAddFolder(const QString foldername, const QString &clipId, bool remove, bool edit = false);
+ void slotAddFolder(const QString &foldername, const QString &clipId, bool remove, bool edit = false);
void slotResetProjectList();
void slotOpenClip();
void slotEditClip();