Refactoring.
Code style.
This commit is contained in:
parent
7d515b08c4
commit
4ea992cb87
|
@ -28,8 +28,8 @@
|
||||||
#ifndef VPATTERNIMAGE_H
|
#ifndef VPATTERNIMAGE_H
|
||||||
#define VPATTERNIMAGE_H
|
#define VPATTERNIMAGE_H
|
||||||
|
|
||||||
#include <QString>
|
|
||||||
#include <QCoreApplication>
|
#include <QCoreApplication>
|
||||||
|
#include <QString>
|
||||||
|
|
||||||
class QPixmap;
|
class QPixmap;
|
||||||
class QMimeType;
|
class QMimeType;
|
||||||
|
@ -37,6 +37,7 @@ class QMimeType;
|
||||||
class VPatternImage
|
class VPatternImage
|
||||||
{
|
{
|
||||||
Q_DECLARE_TR_FUNCTIONS(VPatternImage) // NOLINT
|
Q_DECLARE_TR_FUNCTIONS(VPatternImage) // NOLINT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
VPatternImage() = default;
|
VPatternImage() = default;
|
||||||
|
|
||||||
|
@ -45,7 +46,7 @@ public:
|
||||||
auto ContentType() const -> const QString &;
|
auto ContentType() const -> const QString &;
|
||||||
|
|
||||||
auto ContentData() const -> const QByteArray &;
|
auto ContentData() const -> const QByteArray &;
|
||||||
void SetContentData(const QByteArray &newContentData, const QString & newContentType);
|
void SetContentData(const QByteArray &newContentData, const QString &newContentType);
|
||||||
|
|
||||||
auto IsNull() const -> bool;
|
auto IsNull() const -> bool;
|
||||||
auto IsValid() const -> bool;
|
auto IsValid() const -> bool;
|
||||||
|
@ -60,8 +61,8 @@ public:
|
||||||
auto Size() const -> QSize;
|
auto Size() const -> QSize;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QString m_contentType{};
|
QString m_contentType{};
|
||||||
QByteArray m_contentData{};
|
QByteArray m_contentData{};
|
||||||
mutable QString m_errorString{};
|
mutable QString m_errorString{};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user