Update translations and help

This commit is contained in:
2023-11-16 19:11:36 +01:00
parent a42abb05ea
commit 61e0c542f5
10 changed files with 73 additions and 94 deletions
+4 -3
View File
@@ -64,8 +64,9 @@ StretchToolbar::StretchToolbar(QWidget *parent) : QToolBar(tr("Stretch toolbar")
emit paramChanged(m_mtfParam);
});
QAction *rgbStretch = addAction(QIcon(":/link.png"), tr("Linked stretch"));
QAction *rgbStretch = addAction(QIcon(":/link.png"), tr("Linked channels"));
rgbStretch->setCheckable(true);
rgbStretch->setChecked(true);
connect(rgbStretch, &QAction::toggled, this, &StretchToolbar::unlinkStretch);
QAction *autoStretchButton = addAction(QIcon(":/nuke.png"), tr("Auto Stretch F12"));
@@ -80,7 +81,7 @@ StretchToolbar::StretchToolbar(QWidget *parent) : QToolBar(tr("Stretch toolbar")
invertButton->setCheckable(true);
connect(invertButton, &QAction::toggled, this, &StretchToolbar::invert);
QAction *falseColorButton = addAction(QIcon(":/falsecolor.png"), tr("False color"));
QAction *falseColorButton = addAction(QIcon(":/falsecolor.png"), tr("False colors"));
falseColorButton->setCheckable(true);
connect(falseColorButton, &QAction::toggled, this, &StretchToolbar::falseColor);
@@ -178,7 +179,7 @@ void StretchToolbar::imageLoaded(Image *img)
void StretchToolbar::unlinkStretch(bool enable)
{
if(enable)
if(!enable)
{
m_stack->setCurrentIndex(1);
m_mtfParam.blackPoint[0] = m_stfSliderR->blackPoint(); m_mtfParam.midPoint[0] = m_stfSliderR->midPoint(); m_mtfParam.whitePoint[0] = m_stfSliderR->whitePoint();