You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
765 B
C++
62 lines
765 B
C++
/*!
|
|
\file cimage.cpp
|
|
|
|
*/
|
|
|
|
#include "cimage.h"
|
|
|
|
#include "common.h"
|
|
|
|
#include <QSqlQuery>
|
|
#include <QSqlError>
|
|
#include <QBuffer>
|
|
|
|
|
|
cImage::cImage(qint32 iID, QObject *parent) :
|
|
QObject(parent),
|
|
m_iID(iID),
|
|
m_szName(""),
|
|
m_lpDescription(new cTextDocument(parent))
|
|
{
|
|
}
|
|
|
|
void cImage::setID(const qint32& iID)
|
|
{
|
|
m_iID = iID;
|
|
}
|
|
|
|
qint32 cImage::id()
|
|
{
|
|
return(m_iID);
|
|
}
|
|
|
|
void cImage::setName(const QString& szName)
|
|
{
|
|
m_szName = szName;
|
|
}
|
|
|
|
QString cImage::name()
|
|
{
|
|
return(m_szName);
|
|
}
|
|
|
|
void cImage::setDescription(cTextDocument* lpDescription)
|
|
{
|
|
m_lpDescription = lpDescription;
|
|
}
|
|
|
|
cTextDocument* cImage::description()
|
|
{
|
|
return(m_lpDescription);
|
|
}
|
|
|
|
void cImage::setImage(const QPixmap& image)
|
|
{
|
|
m_image = image;
|
|
}
|
|
|
|
QPixmap cImage::image()
|
|
{
|
|
return(m_image);
|
|
}
|