diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-20 01:29:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-20 01:29:50 +0000 |
commit | 8362bf63dea22bbf6736609b0f49c152f975eb63 (patch) | |
tree | 0eea3928e39e50fae91d4e68b21b1e6cbae25604 /kpresenter/KPrTextPreview.h | |
download | koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.tar.gz koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.zip |
Added old abandoned KDE3 version of koffice
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1077364 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpresenter/KPrTextPreview.h')
-rw-r--r-- | kpresenter/KPrTextPreview.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/kpresenter/KPrTextPreview.h b/kpresenter/KPrTextPreview.h new file mode 100644 index 00000000..e9d91616 --- /dev/null +++ b/kpresenter/KPrTextPreview.h @@ -0,0 +1,30 @@ +#ifndef __textpreview_h__ +#define __textpreview_h__ + +#include <qframe.h> +#include "global.h" + +class KPrTextPreview : public QFrame +{ + Q_OBJECT + +public: + KPrTextPreview( QWidget* parent, const char* name = 0 ); + ~KPrTextPreview() {} + + void setShadowDirection( ShadowDirection sd ) { shadowDirection = sd; repaint( true ); } + void setShadowDistance( int sd ) { shadowDistance = sd; repaint( true ); } + void setShadowColor( const QColor &sc ) { shadowColor = sc; repaint( true ); } + void setAngle( double a ) { angle = a; repaint( true ); } + +protected: + void drawContents( QPainter* ); + + ShadowDirection shadowDirection; + int shadowDistance; + QColor shadowColor; + double angle; +}; + +#endif + |