Deprecate the old insertImage member of QXlsx::Document
We don't support offset / scale of image any more
This commit is contained in:
@@ -388,6 +388,14 @@ QVariant Document::read(int row, int col) const
|
|||||||
return currentWorksheet()->read(row, col);
|
return currentWorksheet()->read(row, col);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief Insert an \a image to current active worksheet at the position \a row, \a column
|
||||||
|
*/
|
||||||
|
bool Document::insertImage(int row, int column, const QImage &image)
|
||||||
|
{
|
||||||
|
return currentWorksheet()->insertImage(row, column, image);
|
||||||
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Insert an \a image to current active worksheet to the position \a row, \a column with the given
|
* \brief Insert an \a image to current active worksheet to the position \a row, \a column with the given
|
||||||
* \a xOffset, \a yOffset, \a xScale and \a yScale.
|
* \a xOffset, \a yOffset, \a xScale and \a yScale.
|
||||||
|
|||||||
@@ -58,7 +58,8 @@ public:
|
|||||||
int write(int row, int col, const QVariant &value, const Format &format=Format());
|
int write(int row, int col, const QVariant &value, const Format &format=Format());
|
||||||
QVariant read(const QString &cell) const;
|
QVariant read(const QString &cell) const;
|
||||||
QVariant read(int row, int col) const;
|
QVariant read(int row, int col) const;
|
||||||
int insertImage(int row, int column, const QImage &image, double xOffset=0, double yOffset=0, double xScale=1, double yScale=1);
|
bool insertImage(int row, int col, const QImage &image);
|
||||||
|
Q_DECL_DEPRECATED int insertImage(int row, int column, const QImage &image, double xOffset, double yOffset, double xScale=1, double yScale=1);
|
||||||
int mergeCells(const CellRange &range, const Format &format=Format());
|
int mergeCells(const CellRange &range, const Format &format=Format());
|
||||||
int mergeCells(const QString &range, const Format &format=Format());
|
int mergeCells(const QString &range, const Format &format=Format());
|
||||||
int unmergeCells(const CellRange &range);
|
int unmergeCells(const CellRange &range);
|
||||||
|
|||||||
Reference in New Issue
Block a user