[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Mon Mar 21 03:12:46 CET 2005
CVS commit by staikos:
oooops. fix reference counting
M +3 -0 kstdatamanager_i.cpp 1.97
M +1 -1 kstdataobject.cpp 1.41
--- kdeextragear-2/kst/kst/kstdatamanager_i.cpp #1.96:1.97
@@ -102,4 +102,5 @@ void KstObjectItem::update(bool recursiv
// getUsage: subtract 1 for KstRVectorPtr x
setPixmap(2, (x->getUsage() - 1 - localUseCount) > 0 ? QPixmap(locate("data", "kst/pics/yes.png")) : QPixmap());
+ //setText(2, QString::number(x->getUsage() - 1 - localUseCount));
setText(3, QString::number(x->length()));
setText(4, i18n("%3: %4 [%1..%2]").arg(x->reqStartFrame())
@@ -121,4 +122,5 @@ void KstObjectItem::update(bool recursiv
// subtract 1 for KstVectorPtr x
setPixmap(2, (x->getUsage() - 1 - localUseCount) > 0 ? QPixmap(locate("data", "kst/pics/yes.png")) : QPixmap());
+ //setText(2, QString::number(x->getUsage() - 1 - localUseCount));
setText(3, QString::number(x->length()));
setText(4, i18n("[%1..%2]").arg(x->min()).arg(x->max()));
@@ -137,4 +139,5 @@ void KstObjectItem::update(bool recursiv
// subtract 1 for KstDataObjectPtr x
setPixmap(2, (x->getUsage() - 1 - localUseCount) > 0 ? QPixmap(locate("data", "kst/pics/yes.png")) : QPixmap());
+ //setText(2, QString::number(x->getUsage() - 1 - localUseCount));
setText(3, QString::number(x->sampleCount()));
setText(4, x->propertyString());
--- kdeextragear-2/kst/kst/kstdataobject.cpp #1.40:1.41
@@ -150,5 +150,5 @@ int KstDataObject::getUsage() const {
}
- for (KstScalarMap::ConstIterator i = _outputScalars.begin(); i != _outputScalars.end(); ++i) {
+ for (KstStringMap::ConstIterator i = _outputStrings.begin(); i != _outputStrings.end(); ++i) {
if (i.data().data()) {
rc += i.data()->getUsage() - 1;
More information about the Kst
mailing list