diff options
-rw-r--r-- | muse/muse/widgets/utils.cpp | 18 | ||||
-rw-r--r-- | muse/muse/widgets/utils.h | 1 |
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 |