Commit a791f28 1 parent 62a0b29 commit a791f28 Copy full SHA for a791f28
File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 13
13
#include < QTimer>
14
14
#include < QIcon>
15
15
#include < QPixmap>
16
+ #include < QImageReader>
16
17
#include " mainwindow.h"
17
18
#include " processqueue.h"
18
19
#include < iostream>
@@ -72,7 +73,7 @@ int main(int argc, char *argv[]) {
72
73
QApplication app (argc, argv);
73
74
#if QT_VERSION >= 0x060000
74
75
// large images wont load because of this limit!
75
- QImage ::setAllocationLimit (32768 * 32768 * 4 );
76
+ QImageReader ::setAllocationLimit (uint62_t ( 1 )<< 32 );
76
77
#endif
77
78
QCoreApplication::setOrganizationName (" VCG" );
78
79
QCoreApplication::setOrganizationDomain (" vcg.isti.cnr.it" );
Original file line number Diff line number Diff line change 3
3
#include < QVBoxLayout>
4
4
#include < QPushButton>
5
5
#include < QLabel>
6
+ #include < QImageReader>
6
7
7
8
#include " relightapp.h"
8
9
#include " mainwindow.h"
@@ -23,7 +24,7 @@ int main(int argc, char *argv[]) {
23
24
24
25
#if QT_VERSION >= 0x060000
25
26
// large images wont load because of this limit!
26
- QImage ::setAllocationLimit (32768 * 32768 * 4 );
27
+ QImageReader ::setAllocationLimit (uint62_t ( 1 )<< 32 );
27
28
#endif
28
29
29
30
You can’t perform that action at this time.
0 commit comments