diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-21 02:35:53 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-08-21 02:35:53 +0000 |
commit | 32073e28f0e425c066e65f3fc6a3101feab22598 (patch) | |
tree | 7e78a6f72b314bd555a49597c38ecabfc24a8714 /qtinterface/tqiconset.h | |
parent | 90cbdd552d7ab58c8534b0f3d0980d5059adc422 (diff) | |
download | tqtinterface-32073e28f0e425c066e65f3fc6a3101feab22598.tar.gz tqtinterface-32073e28f0e425c066e65f3fc6a3101feab22598.zip |
More TQt functionality in place for Qt4...
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/tqtinterface@1166130 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'qtinterface/tqiconset.h')
-rw-r--r-- | qtinterface/tqiconset.h | 25 |
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 |