Changeset 12009 in osm
- Timestamp:
- 2008-11-20T18:41:43+01:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wmsplugin/webkit-image.cpp
r11990 r12009 1 1 /* compile with 2 2 moc webkit-image.cpp >webkit-image.h 3 g++ webkit-image.cpp -o webkit-image -lQtCore -lQtWebKit -lQtGui 3 g++ webkit-image.cpp -o webkit-image -lQtCore -lQtWebKit -lQtGui -s -O2 4 or under Windows: 5 g++ webkit-image.cpp -o webkit-image -lQtCore4 -lQtWebKit4 -lQtGui4 -s O2 6 adding the correct directories with -L or -I: 7 -I C:\Progra~1\Qt\include -L C:\Progra~1\Qt\lib 4 8 */ 5 6 9 #include <QtGui/QApplication> 7 10 #include <QtCore/QFile> … … 69 72 BINARYSTDOUT 70 73 if(f.open(stdout, QIODevice::WriteOnly|QIODevice::Unbuffered)) 71 p.save(&f, "JPG"); 74 { 75 if(!p.save(&f, "JPEG")) 76 { 77 p.save(&f, "PNG"); 78 } 79 } 72 80 } 73 81 emit finish();
Note:
See TracChangeset
for help on using the changeset viewer.