Merge remote-tracking branch 'origin/KDE/4.10'

This commit is contained in:
Frank Reininghaus 2013-01-11 17:24:05 +01:00
commit 1e2481c974
5 changed files with 15 additions and 5 deletions

View file

@ -840,7 +840,7 @@ void KStandardItemListWidget::updatePixmapCache()
if (isSelected()) {
const QColor color = palette().brush(QPalette::Normal, QPalette::Highlight).color();
QImage image = m_pixmap.toImage();
KIconEffect::colorize(image, color, 1.0f);
KIconEffect::colorize(image, color, 0.8f);
m_pixmap = QPixmap::fromImage(image);
}
}

View file

@ -26,8 +26,17 @@ void KFileItemModelSortAlgorithm::sort(KFileItemModel* model,
QList<KFileItemModel::ItemData*>::iterator begin,
QList<KFileItemModel::ItemData*>::iterator end)
{
if (model->sortRole() == model->roleForType(KFileItemModel::NameRole)) {
// Sorting by name can be expensive, in particular if natural sorting is
// enabled. Use all CPU cores to speed up the sorting process.
static const int numberOfThreads = QThread::idealThreadCount();
parallelSort(model, begin, end, numberOfThreads);
} else {
// Sorting by other roles is quite fast. Use only one thread to prevent
// problems caused by non-reentrant comparison functions, see
// https://bugs.kde.org/show_bug.cgi?id=312679
sequentialSort(model, begin, end);
}
}
void KFileItemModelSortAlgorithm::sequentialSort(KFileItemModel* model,

View file

@ -183,7 +183,7 @@ QString KNepomukRolesProvider::orientationFromValue(int value) const
QString KNepomukRolesProvider::durationFromValue(int value) const
{
QTime duration;
duration = duration.addMSecs(value);
duration = duration.addSecs(value);
return duration.toString("hh:mm:ss");
}

View file

@ -73,7 +73,7 @@ private:
/**
* @return Duration in the format HH::MM::SS for the value given
* in milliseconds.
* in seconds.
*/
QString durationFromValue(int value) const;

View file

@ -72,6 +72,7 @@ RenameDialog::RenameDialog(QWidget *parent, const KFileItemList& items) :
m_newName = items.first().name();
editLabel = new QLabel(i18nc("@label:textbox", "Rename the item <filename>%1</filename> to:", m_newName),
page);
editLabel->setTextFormat(Qt::PlainText);
} else {
m_newName = i18nc("@info:status", "New name #");
editLabel = new QLabel(i18ncp("@label:textbox",