home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / examples / showimg / imagefip.h < prev    next >
C/C++ Source or Header  |  2001-10-11  |  810b  |  33 lines

  1. /****************************************************************************
  2. ** $Id:  qt/imagefip.h   3.0.0   edited Jun 22 13:24 $
  3. **
  4. ** Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.
  5. **
  6. ** This file is part of an example program for Qt.  This example
  7. ** program may be used, distributed and modified without limitation.
  8. **
  9. *****************************************************************************/
  10.  
  11. #ifndef IMAGEFIP_H
  12. #define IMAGEFIP_H
  13.  
  14. #include <qfiledialog.h>
  15. #include <qstrlist.h>
  16. #include <qpixmap.h>
  17.  
  18. class ImageIconProvider : public QFileIconProvider
  19. {
  20.     Q_OBJECT
  21.     QStrList fmts;
  22.     QPixmap imagepm;
  23.  
  24. public:
  25.     ImageIconProvider( QWidget *parent=0, const char *name=0 );
  26.     ~ImageIconProvider();
  27.  
  28.     const QPixmap * pixmap( const QFileInfo &fi );
  29. };
  30.  
  31.  
  32. #endif // IMAGEFIP_H
  33.