[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Thu Jul 14 19:35:04 CEST 2005


On Thursday 14 July 2005 13:25, Rick Chern wrote:
> --- trunk/extragear/graphics/kst/kst/kstimagedialog_i.cpp #434581:434582
> @@ -492,10 +492,13 @@
>      KstMatrixPtr matrix = *matrices.findTag(_matrix->selectedMatrix());
>      if (matrix) {
>        // force update
> +      _autoThreshold->setEnabled(false);
> +      matrix->update(true);
>        matrix->readLock();
>        _lowerZ->setText(QString::number(matrix->minZ()));
>        _upperZ->setText(QString::number(matrix->maxZ()));
>        matrix->readUnlock();
> +      _autoThreshold->setEnabled(true);
>      }
>    }
>  }

  We really need a better solution for this.  Also you have to lock the matrix 
when you do update().  The problem is that update() can take lots of CPU time 
and that means the GUI is frozen.  It also means that the matrix is out of 
sync with the rest of the objects.

  Oh, and update() takes an int parameter, not a bool...

-- 
George Staikos
KDE Developer				http://www.kde.org/
Staikos Computing Services Inc.		http://www.staikos.net/


More information about the Kst mailing list