Image: remove trailing whitespace
This commit is contained in:
@@ -74,7 +74,7 @@ ImageView::ImageView(QWidget* parent)
|
||||
setMouseTracking(true);
|
||||
|
||||
// enable the mouse events
|
||||
_mouseEventsEnabled = true;
|
||||
_mouseEventsEnabled = true;
|
||||
|
||||
// Create the default status bar for displaying messages
|
||||
enableStatusBar(true);
|
||||
@@ -203,7 +203,7 @@ void ImageView::showOriginalColors()
|
||||
// Create a color map
|
||||
// (All red entries come first, then green, then blue, then alpha)
|
||||
// returns 0 for OK, -1 for memory allocation error
|
||||
// numRequestedEntries ... requested number of map entries (used if not greater than system maximum or
|
||||
// numRequestedEntries ... requested number of map entries (used if not greater than system maximum or
|
||||
// if not greater than the maximum number of intensity values in the current image).
|
||||
// Pass zero to use the maximum possible. Always check the actual number of entries
|
||||
// created using getNumColorMapEntries() after a call to this method.
|
||||
@@ -532,8 +532,8 @@ QString ImageView::createStatusBarText()
|
||||
|
||||
// Create text for status bar
|
||||
QString txt;
|
||||
if ((colorFormat == IB_CF_GREY8) ||
|
||||
(colorFormat == IB_CF_GREY16) ||
|
||||
if ((colorFormat == IB_CF_GREY8) ||
|
||||
(colorFormat == IB_CF_GREY16) ||
|
||||
(colorFormat == IB_CF_GREY32))
|
||||
{
|
||||
double grey_value;
|
||||
@@ -546,7 +546,7 @@ QString ImageView::createStatusBarText()
|
||||
txt = QString::fromLatin1("x,y = %1 | %2 = %3")
|
||||
.arg(tr("outside image"), tr("zoom")).arg(zoomFactor,0,'f',1);
|
||||
}
|
||||
else if ((colorFormat == IB_CF_RGB24) ||
|
||||
else if ((colorFormat == IB_CF_RGB24) ||
|
||||
(colorFormat == IB_CF_RGB48))
|
||||
{
|
||||
double red, green, blue;
|
||||
@@ -561,7 +561,7 @@ QString ImageView::createStatusBarText()
|
||||
.arg((int)red).arg((int)green).arg((int)blue)
|
||||
.arg(tr("zoom")).arg(zoomFactor,0,'f',1);
|
||||
}
|
||||
else if ((colorFormat == IB_CF_BGR24) ||
|
||||
else if ((colorFormat == IB_CF_BGR24) ||
|
||||
(colorFormat == IB_CF_BGR48))
|
||||
{
|
||||
double red, green, blue;
|
||||
@@ -576,7 +576,7 @@ QString ImageView::createStatusBarText()
|
||||
.arg((int)red).arg((int)green).arg((int)blue)
|
||||
.arg(tr("zoom")).arg(zoomFactor,0,'f',1);
|
||||
}
|
||||
else if ((colorFormat == IB_CF_RGBA32) ||
|
||||
else if ((colorFormat == IB_CF_RGBA32) ||
|
||||
(colorFormat == IB_CF_RGBA64))
|
||||
{
|
||||
double red, green, blue, alpha;
|
||||
@@ -592,7 +592,7 @@ QString ImageView::createStatusBarText()
|
||||
.arg((int)red).arg((int)green).arg((int)blue).arg((int)alpha)
|
||||
.arg(tr("zoom")).arg(zoomFactor,0,'f',1);
|
||||
}
|
||||
else if ((colorFormat == IB_CF_BGRA32) ||
|
||||
else if ((colorFormat == IB_CF_BGRA32) ||
|
||||
(colorFormat == IB_CF_BGRA64))
|
||||
{
|
||||
double red, green, blue, alpha;
|
||||
@@ -662,7 +662,7 @@ void ImageView::addSelect(int currX, int currY)
|
||||
}
|
||||
|
||||
// Draw any 2D graphics necessary
|
||||
// Use GLImageBox::ICToWC_X and ICToWC_Y methods to transform image coordinates into widget coordinates (which
|
||||
// Use GLImageBox::ICToWC_X and ICToWC_Y methods to transform image coordinates into widget coordinates (which
|
||||
// must be used by the OpenGL vertex commands).
|
||||
void ImageView::drawGraphics()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user