Prevent entering “/”, “\” and “:” in team and scheme names.
The name of teams and schems is saved in the file name itself, so these characters would cause trouble as they are used in path names in Linux and Windows.
#ifndef PREVIEWIMAGEPROVIDER_H
#define PREVIEWIMAGEPROVIDER_H
#include <QPixmap>
#include <QQuickImageProvider>
#include <QSize>
class PreviewImageProvider : public QQuickImageProvider {
public:
PreviewImageProvider();
QPixmap requestPixmap(const QString &id, QSize *size,
const QSize &requestedSize);
void setImage(const QImage &preview);
private:
QPixmap m_px;
};
#endif // PREVIEWIMAGEPROVIDER_H