Ignore:
Timestamp:
2008-11-20T18:41:43+01:00 (16 years ago)
Author:
stoecker
Message:

fixed Windows problems?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wmsplugin/webkit-image.cpp

    r11990 r12009  
    11/* compile with
    22moc webkit-image.cpp >webkit-image.h
    3 g++ webkit-image.cpp -o webkit-image -lQtCore -lQtWebKit -lQtGui
     3g++ webkit-image.cpp -o webkit-image -lQtCore -lQtWebKit -lQtGui -s -O2
     4or under Windows:
     5g++ webkit-image.cpp -o webkit-image -lQtCore4 -lQtWebKit4 -lQtGui4 -s O2
     6adding the correct directories with -L or -I:
     7-I C:\Progra~1\Qt\include -L C:\Progra~1\Qt\lib
    48*/
    5 
    69#include <QtGui/QApplication>
    710#include <QtCore/QFile>
     
    6972      BINARYSTDOUT
    7073      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      }
    7280    }
    7381    emit finish();
Note: See TracChangeset for help on using the changeset viewer.