mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-26 16:52:46 -04:00
Also wrap QImage::fromHBITMAP()
This commit is contained in:
@@ -143,3 +143,13 @@ image_from_hicon(void* hicon) {
|
||||
return QImage();
|
||||
#endif
|
||||
}
|
||||
|
||||
QImage
|
||||
image_from_hbitmap(void* hbitmap) {
|
||||
#ifdef Q_OS_WIN
|
||||
return QImage::fromHBITMAP((HBITMAP)hbitmap);
|
||||
#else
|
||||
(void)hibitmap;
|
||||
return QImage();
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -163,3 +163,4 @@ QMenu* menu_for_action(const QAction *ac);
|
||||
void set_image_allocation_limit(int megabytes);
|
||||
int get_image_allocation_limit();
|
||||
QImage image_from_hicon(void* hicon);
|
||||
QImage image_from_hbitmap(void* hbitmap);
|
||||
|
||||
@@ -90,3 +90,4 @@ QMenu* menu_for_action(const QAction *ac);
|
||||
void set_image_allocation_limit(int megabytes);
|
||||
int get_image_allocation_limit();
|
||||
QImage image_from_hicon(void*);
|
||||
QImage image_from_hbitmap(void*);
|
||||
|
||||
Reference in New Issue
Block a user