diff --git a/src/GUI/QtLauncher.cxx b/src/GUI/QtLauncher.cxx index 5775a442d..e7feadc3b 100644 --- a/src/GUI/QtLauncher.cxx +++ b/src/GUI/QtLauncher.cxx @@ -381,6 +381,9 @@ public: m_view(view) { view->viewport()->installEventFilter(this); + + m_leftArrowIcon.load(":/left-arrow-icon"); + m_rightArrowIcon.load(":/right-arrow-icon"); } virtual void paint(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) const @@ -427,10 +430,14 @@ public: bool canRight = (currentVariant < variantCount ); QRect leftArrowRect = leftCycleArrowRect(option.rect, index); - painter->fillRect(leftArrowRect, canLeft ? Qt::black : Qt::gray); + if (canLeft) { + painter->drawPixmap(leftArrowRect.topLeft() + QPoint(2, 2), m_leftArrowIcon); + } QRect rightArrowRect = rightCycleArrowRect(option.rect, index); - painter->fillRect(rightArrowRect, canRight ? Qt::black : Qt::gray); + if (canRight) { + painter->drawPixmap(rightArrowRect.topLeft() + QPoint(2, 2), m_rightArrowIcon); + } } painter->drawText(descriptionRect, Qt::TextWordWrap, description, &actualBounds); @@ -553,6 +560,8 @@ private: } QListView* m_view; + QPixmap m_leftArrowIcon, + m_rightArrowIcon; }; class ArgumentsTokenizer diff --git a/src/GUI/arrow-left-icon.png b/src/GUI/arrow-left-icon.png new file mode 100644 index 000000000..352ee9331 Binary files /dev/null and b/src/GUI/arrow-left-icon.png differ diff --git a/src/GUI/arrow-right-icon.png b/src/GUI/arrow-right-icon.png new file mode 100644 index 000000000..2879b920b Binary files /dev/null and b/src/GUI/arrow-right-icon.png differ diff --git a/src/GUI/resources.qrc b/src/GUI/resources.qrc index dc348f85f..9415e5b6c 100644 --- a/src/GUI/resources.qrc +++ b/src/GUI/resources.qrc @@ -2,5 +2,7 @@ history-icon.png large-search-icon.png + arrow-right-icon.png + arrow-left-icon.png \ No newline at end of file