summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Schweer <ws.seh.de>2006-12-01 13:44:37 +0000
committerWerner Schweer <ws.seh.de>2006-12-01 13:44:37 +0000
commit0f66a765a6024e2ddabb6eb9a4f68b1a1638a92e (patch)
tree108bc52d0ea7476e44d4821d1b8f65c67363d014
parent56b3f44c6fa0d5fdaa05369b563d3692106a5208 (diff)
updates
-rw-r--r--muse/muse/widgets/utils.cpp18
-rw-r--r--muse/muse/widgets/utils.h1
2 files changed, 19 insertions, 0 deletions
diff --git a/muse/muse/widgets/utils.cpp b/muse/muse/widgets/utils.cpp
index bdcc2e36..16e45605 100644
--- a/muse/muse/widgets/utils.cpp
+++ b/muse/muse/widgets/utils.cpp
@@ -431,3 +431,21 @@ void paintHLine(QPainter& p, int x1, int x2, int y)
}
}
+//---------------------------------------------------------
+// paintVLine
+//---------------------------------------------------------
+
+void paintVLine(QPainter& p, int y1, int y2, int x)
+ {
+ static QColor color[splitWidth] = {
+ QColor(0x55, 0x55, 0x52),
+ QColor(0xff, 0xff, 0xff),
+ };
+ x -= 2;
+ for (int i = 0; i < 2; ++i) {
+ p.setPen(color[i]);
+ p.drawLine(x, y1, x, y2);
+ ++x;
+ }
+ }
+
diff --git a/muse/muse/widgets/utils.h b/muse/muse/widgets/utils.h
index c520c6d5..360dd28e 100644
--- a/muse/muse/widgets/utils.h
+++ b/muse/muse/widgets/utils.h
@@ -52,6 +52,7 @@ extern void fatalError(const char*);
extern QColor lineColor[splitWidth];
extern void paintHLine(QPainter& p, int x1, int x2, int y);
+extern void paintVLine(QPainter& p, int y1, int y2, int x);
#endif