[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: extragear/graphics/digikam/utilities/fuzzysearch
From: Andi Clemens <andi.clemens () gmx ! net>
Date: 2009-10-07 23:59:48
Message-ID: 1254959988.821858.28753.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1032506 by aclemens:
I think we should label this as "Similarity", this is more meaningful for the
end user.
M +16 -16 findduplicatesview.cpp
--- trunk/extragear/graphics/digikam/utilities/fuzzysearch/findduplicatesview.cpp #1032505:1032506
@@ -75,8 +75,8 @@
progressBar = 0;
thumbLoadThread = 0;
includeAlbumsLabel = 0;
- thresholdLabel = 0;
- threshold = 0;
+ similarityLabel = 0;
+ similarity = 0;
albumSelectCB = 0;
tagSelectCB = 0;
albumModel = 0;
@@ -87,9 +87,9 @@
bool cancelFindDuplicates;
QLabel* includeAlbumsLabel;
- QLabel* thresholdLabel;
+ QLabel* similarityLabel;
- QSpinBox* threshold;
+ QSpinBox* similarity;
QPushButton* scanDuplicatesBtn;
QPushButton* updateFingerPrtBtn;
@@ -162,14 +162,14 @@
// ---------------------------------------------------------------
- d->threshold = new QSpinBox();
- d->threshold->setRange(0, 100);
- d->threshold->setValue(90);
- d->threshold->setSingleStep(1);
- d->threshold->setSuffix(QChar('%'));
+ d->similarity = new QSpinBox();
+ d->similarity->setRange(0, 100);
+ d->similarity->setValue(90);
+ d->similarity->setSingleStep(1);
+ d->similarity->setSuffix(QChar('%'));
- d->thresholdLabel = new QLabel(i18n("Threshold:"));
- d->thresholdLabel->setBuddy(d->threshold);
+ d->similarityLabel = new QLabel(i18n("Similarity:"));
+ d->similarityLabel->setBuddy(d->similarity);
// ---------------------------------------------------------------
@@ -178,8 +178,8 @@
mainLayout->addWidget(d->includeAlbumsLabel, 1, 0, 1, 1);
mainLayout->addWidget(d->albumSelectCB, 1, 1, 1,-1);
mainLayout->addWidget(d->tagSelectCB, 2, 1, 1,-1);
- mainLayout->addWidget(d->thresholdLabel, 3, 0, 1, 1);
- mainLayout->addWidget(d->threshold, 3, 2, 1, 1);
+ mainLayout->addWidget(d->similarityLabel, 3, 0, 1, 1);
+ mainLayout->addWidget(d->similarity, 3, 2, 1, 1);
mainLayout->addWidget(d->updateFingerPrtBtn, 4, 0, 1,-1);
mainLayout->addWidget(d->scanDuplicatesBtn, 5, 0, 1,-1);
mainLayout->addWidget(d->progressBar, 6, 0, 1,-1);
@@ -373,8 +373,8 @@
d->includeAlbumsLabel->setEnabled(val);
d->albumSelectCB->setEnabled(val);
d->tagSelectCB->setEnabled(val);
- d->thresholdLabel->setEnabled(val);
- d->threshold->setEnabled(val);
+ d->similarityLabel->setEnabled(val);
+ d->similarity->setEnabled(val);
d->progressBar->progressBarMode(val ? StatusProgressBar::TextMode
: StatusProgressBar::CancelProgressBarMode);
@@ -400,7 +400,7 @@
// --------------------------------------------------------
- double thresh = d->threshold->value() / 100.0;
+ double thresh = d->similarity->value() / 100.0;
KIO::Job *job = ImageLister::startListJob(DatabaseUrl::searchUrl(-1));
job->addMetaData("duplicates", "normal");
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic