mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
remove now unused QPixmapData::resize() method
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
9ab504a739
commit
f7f8bdcdf8
2 changed files with 0 additions and 17 deletions
|
@ -284,22 +284,6 @@ void QPixmapData::scroll(int dx, int dy, const QRect &rect)
|
|||
qt_scrollRectInImage(&image, rect, QPoint(dx, dy));
|
||||
}
|
||||
|
||||
void QPixmapData::resize(int width, int height)
|
||||
{
|
||||
QImage::Format format = QImage::Format_ARGB32_Premultiplied;
|
||||
if (pixelType() == BitmapType) {
|
||||
format = QImage::Format_MonoLSB;
|
||||
}
|
||||
|
||||
image = QImage(width, height, format);
|
||||
|
||||
if (pixelType() == BitmapType && !image.isNull()) {
|
||||
image.setColorTable(monoColorTable());
|
||||
}
|
||||
|
||||
setSerialNumber(image.cacheKey() >> 32);
|
||||
}
|
||||
|
||||
bool QPixmapData::fromData(const uchar *buffer, uint len, const char *format,
|
||||
Qt::ImageConversionFlags flags)
|
||||
{
|
||||
|
|
|
@ -56,7 +56,6 @@ public:
|
|||
|
||||
QPixmapData *createCompatiblePixmapData() const;
|
||||
|
||||
void resize(int width, int height);
|
||||
void fromImage(const QImage &image,
|
||||
Qt::ImageConversionFlags flags);
|
||||
void fromImageReader(QImageReader *imageReader,
|
||||
|
|
Loading…
Add table
Reference in a new issue