summaryrefslogtreecommitdiffstats
path: root/lib/tdeqt4painter.h
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-05-07 00:31:43 -0500
committerTimothy Pearson <[email protected]>2012-05-07 00:31:43 -0500
commitdd5447a3f86dd6c9febbd85524f1f1d714744f1c (patch)
tree5aacbfdae0a6f1aa5053e8f9828b449b8d3149fd /lib/tdeqt4painter.h
parent7ed40f5c4838488dcda2e3529cffd273a414c018 (diff)
downloadqt4-tqt-theme-engine-dd5447a3f86dd6c9febbd85524f1f1d714744f1c.tar.gz
qt4-tqt-theme-engine-dd5447a3f86dd6c9febbd85524f1f1d714744f1c.zip
Split TDE/Qt4 interface library out and install files into correct locations
Diffstat (limited to 'lib/tdeqt4painter.h')
-rw-r--r--lib/tdeqt4painter.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/lib/tdeqt4painter.h b/lib/tdeqt4painter.h
new file mode 100644
index 0000000..ccb5f70
--- /dev/null
+++ b/lib/tdeqt4painter.h
@@ -0,0 +1,49 @@
+/****************************************************************************
+**
+** Definition of TDEQt4PaintDevice class
+**
+** Copyright (C) 2012 Timothy Pearson. All rights reserved.
+**
+** This file is part of the TDE Qt4 style interface
+**
+** This file may be used under the terms of the GNU General
+** Public License versions 2.0 or 3.0 as published by the Free
+** Software Foundation and appearing in the files LICENSE.GPL2
+** and LICENSE.GPL3 included in the packaging of this file.
+**
+** This file is provided "AS IS" with NO WARRANTY OF ANY KIND,
+** INCLUDING THE WARRANTIES OF DESIGN, MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE. Trolltech reserves all rights not granted
+** herein.
+**
+**********************************************************************/
+
+#ifndef TDEQT4PAINTER_H
+#define TDEQT4PAINTER_H
+
+#define TQT_NO_COMPAT_NAMES
+#include "ntqpaintdevice.h"
+#include "ntqbuffer.h"
+#undef Qt
+
+#include <QtGui/QPainter>
+#include <QtGui/QBitmap>
+
+class Q_EXPORT TDEQt4PaintDevice : public TQPaintDevice // picture class
+{
+public:
+ TDEQt4PaintDevice( QPainter * );
+ ~TDEQt4PaintDevice();
+
+protected:
+ bool cmd( int, TQPainter *, TQPDevCmdParam * );
+ int metric( int ) const;
+
+private:
+ QPainter *m_qt4painter;
+
+ QPoint prevPt;
+ QPoint curPt;
+};
+
+#endif // TDEQT4PAINTER_H