src/gui/painting/qcups.cpp
changeset 18 2f34d5167611
parent 0 1918ee327afb
child 30 5dc02b23752f
equal deleted inserted replaced
3:41300fa6a67c 18:2f34d5167611
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     7 ** This file is part of the QtGui module of the Qt Toolkit.
     8 **
     8 **
   340 
   340 
   341 bool QCUPSSupport::printerHasPPD(const char *printerName)
   341 bool QCUPSSupport::printerHasPPD(const char *printerName)
   342 {
   342 {
   343     if (!isAvailable())
   343     if (!isAvailable())
   344         return false;
   344         return false;
   345     return _cupsGetPPD(printerName) != 0;
   345     const char *ppdFile = _cupsGetPPD(printerName);
       
   346     unlink(ppdFile);
       
   347     return (ppdFile != 0);
   346 }
   348 }
   347 
   349 
   348 QString QCUPSSupport::unicodeString(const char *s)
   350 QString QCUPSSupport::unicodeString(const char *s)
   349 {
   351 {
   350 #ifndef QT_NO_TEXTCODEC
   352 #ifndef QT_NO_TEXTCODEC