Commit 0ccb2686 authored by saubatn's avatar saubatn
Browse files

UPDATED Pen width for LUT set to 3, avoiding to have big green lines on LUT.

git-svn-id: svn+ssh://scm.forge.imag.fr/var/lib/gforge/chroot/scmrepos/svn/camitk/trunk/camitk@2007 ec899d31-69d1-42ba-9299-647d76f65fb3
parent d16b544c
......@@ -332,7 +332,7 @@ void ImageLutWidget::draw () {
pen.setStyle(Qt::DashLine);
// pen width depends on numbers of bars in the histogram
int penWidth = (int)(sceneRectangle.width() / 100.0);
int penWidth = 3.0; // (int)(sceneRectangle.width() / 100.0);
pen.setWidth(penWidth);
ui.histogramGraphicsView->scene()->addLine(level, sceneRectangle.y(), level, sceneRectangle.height(), pen);
......@@ -489,7 +489,15 @@ void ImageLutWidget::invertButtonClicked() {
void ImageLutWidget::updateGradient() {
QColor maxColor = ui.maxColor->palette().button().color();
QColor minColor = ui.minColor->palette().button().color();
QString style = "background-color: qlineargradient(x1:0 y1:0, x2:1 y2:0, stop:0 rgba("+ QString::number(minColor.red()) + ", " + QString::number(minColor.green()) + ", " + QString::number(minColor.blue()) + ", " + QString::number(minColor.alpha()) + " ), stop:1 rgba( " + QString::number(maxColor.red()) + ", " + QString::number(maxColor.green()) + ", " + QString::number(maxColor.blue()) + ", " + QString::number(maxColor.alpha()) + " ) )";
QString style = "background-color: qlineargradient(x1:0 y1:0, x2:1 y2:0, stop:0 rgba("+
QString::number(minColor.red()) + ", " +
QString::number(minColor.green()) + ", " +
QString::number(minColor.blue()) + ", " +
QString::number(minColor.alpha()) + " ), stop:1 rgba( " +
QString::number(maxColor.red()) + ", " +
QString::number(maxColor.green()) + ", " +
QString::number(maxColor.blue()) + ", " +
QString::number(maxColor.alpha()) + " ) )";
ui.colorScale->setStyleSheet(style);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment