summaryrefslogtreecommitdiffstats
path: root/qtinterface/tqiconset.h
diff options
context:
space:
mode:
Diffstat (limited to 'qtinterface/tqiconset.h')
-rw-r--r--qtinterface/tqiconset.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/qtinterface/tqiconset.h b/qtinterface/tqiconset.h
index c1e4d57..81e9ec0 100644
--- a/qtinterface/tqiconset.h
+++ b/qtinterface/tqiconset.h
@@ -39,6 +39,31 @@ Boston, MA 02110-1301, USA.
// For Qt4, some changes are needed
#include <Qt/qicon.h>
+#include <Qt/q3shared.h>
+
+class TQIconFactory : private Q3Shared
+{
+public:
+ QIconFactory();
+ virtual ~QIconFactory();
+
+ virtual QPixmap *createPixmap( const QIconSet& iconSet, QIconSet::Size size,
+ QIconSet::Mode mode, QIconSet::State state );
+ void setAutoDelete( bool autoDelete ) { autoDel = autoDelete; }
+ bool autoDelete() const { return autoDel; }
+
+ static QIconFactory *defaultFactory();
+ static void installDefaultFactory( QIconFactory *factory );
+
+private:
+#if defined(Q_DISABLE_COPY)
+ QIconFactory( const QIconFactory & );
+ QIconFactory &operator=( const QIconFactory & );
+#endif
+
+ uint autoDel : 1;
+ uint unused : 31;
+};
#endif // USE_QT4