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.
47 lines
749 B
C
47 lines
749 B
C
/*!
|
|
\file common.h
|
|
|
|
*/
|
|
|
|
#ifndef COMMON_H
|
|
#define COMMON_H
|
|
|
|
|
|
#include <QImage>
|
|
#include <QByteArray>
|
|
|
|
#include <QDebug>
|
|
|
|
|
|
#define THUMBNAIL_WIDTH 160
|
|
#define THUMBNAIL_HEIGHT 120
|
|
|
|
|
|
#ifdef __GNUC__
|
|
#define myDebug qDebug() << __FILE__ << "(" << __LINE__ << ") - " << __PRETTY_FUNCTION__ << ":"
|
|
#elif __MINGW32__
|
|
#define myDebug qDebug() << __FILE__ << "(" << __LINE__ << ") - " << __PRETTY_FUNCTION__ << ":"
|
|
#else
|
|
#define myDebug qDebug() << __FILE__ << "(" << __LINE__ << ") - " << __FUNCTION__ << ":"
|
|
#endif
|
|
|
|
/*!
|
|
\brief
|
|
|
|
\fn blob2Image
|
|
\param ba
|
|
\return QPixmap
|
|
*/
|
|
QImage blob2Image(const QByteArray& ba);
|
|
/*!
|
|
\brief
|
|
|
|
\fn image2Blob
|
|
\param image
|
|
\return QByteArray
|
|
*/
|
|
QByteArray image2Blob(const QImage& image);
|
|
|
|
|
|
#endif // COMMON_H
|