summaryrefslogtreecommitdiffstats
path: root/kdeui/tests/kunbalancedgrdtest.h
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commitce4a32fe52ef09d8f5ff1dd22c001110902b60a2 (patch)
tree5ac38a06f3dde268dc7927dc155896926aaf7012 /kdeui/tests/kunbalancedgrdtest.h
downloadtdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.tar.gz
tdelibs-ce4a32fe52ef09d8f5ff1dd22c001110902b60a2.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeui/tests/kunbalancedgrdtest.h')
-rw-r--r--kdeui/tests/kunbalancedgrdtest.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/kdeui/tests/kunbalancedgrdtest.h b/kdeui/tests/kunbalancedgrdtest.h
new file mode 100644
index 000000000..6af7e4e92
--- /dev/null
+++ b/kdeui/tests/kunbalancedgrdtest.h
@@ -0,0 +1,49 @@
+//
+// Simple little hack to show off new diagonal gradients.
+//
+// (C) KDE Artistic Daniel M. Duley <mosfet@kde.org>
+//
+
+#ifndef __KGRADIENT_TEST_H
+#define __KGRADIENT_TEST_H
+
+#include <qwidget.h>
+#include <kpixmap.h>
+#include <qslider.h>
+#include <qlabel.h>
+#include <qdatetime.h>
+
+class KGradientWidget : public QWidget
+{
+public:
+ KGradientWidget(QWidget *parent=0, const char *name=0);
+
+ void setBalance(int a, int b) { xbalance = a; ybalance = b; }
+protected:
+ void paintEvent(QPaintEvent *ev);
+private:
+ KPixmap pix;
+ int xbalance, ybalance;
+ QTime time;
+
+};
+
+class myTopWidget: public QWidget
+{
+ Q_OBJECT
+public:
+ myTopWidget(QWidget *parent=0, const char *name=0);
+
+private:
+ QLabel *bLabel;
+ QSlider *xSlider, *ySlider;
+ KGradientWidget *grds;
+
+ QTime time;
+
+ int itime, otime;
+
+private slots:
+ void rebalance();
+};
+#endif