mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Also wrap QImage::fromHBITMAP()
This commit is contained in:
parent
60fa1b8b84
commit
8874ff73aa
@ -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*);
|
||||
|
Loading…
x
Reference in New Issue
Block a user