summaryrefslogtreecommitdiffstats
path: root/examples/showimg/imagefip.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/showimg/imagefip.h')
-rw-r--r--examples/showimg/imagefip.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/examples/showimg/imagefip.h b/examples/showimg/imagefip.h
new file mode 100644
index 0000000..d4710da
--- /dev/null
+++ b/examples/showimg/imagefip.h
@@ -0,0 +1,31 @@
+/****************************************************************************
+**
+** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved.
+**
+** This file is part of an example program for Qt. This example
+** program may be used, distributed and modified without limitation.
+**
+*****************************************************************************/
+
+#ifndef IMAGEFIP_H
+#define IMAGEFIP_H
+
+#include <qfiledialog.h>
+#include <qstrlist.h>
+#include <qpixmap.h>
+
+class ImageIconProvider : public QFileIconProvider
+{
+ Q_OBJECT
+ QStrList fmts;
+ QPixmap imagepm;
+
+public:
+ ImageIconProvider( QWidget *parent=0, const char *name=0 );
+ ~ImageIconProvider();
+
+ const QPixmap * pixmap( const QFileInfo &fi );
+};
+
+
+#endif // IMAGEFIP_H