Make use of Fast concatenation feature in Qt 4.6

This commit is contained in:
Christophe Dumez 2010-03-06 21:11:47 +00:00
parent 6d7fba1a6c
commit a468404ab5
12 changed files with 56 additions and 50 deletions

View file

@ -293,7 +293,7 @@ void PropertiesWidget::saveSettings() {
sizes = slideSizes;
qDebug("Sizes: %d", sizes.size());
if(sizes.size() == 2) {
settings.setValue(QString::fromUtf8("TorrentProperties/SplitterSizes"), QString::number(sizes.first())+','+QString::number(sizes.last()));
settings.setValue(QString::fromUtf8("TorrentProperties/SplitterSizes"), QVariant(QString::number(sizes.first())+','+QString::number(sizes.last())));
}
}
@ -480,7 +480,7 @@ void PropertiesWidget::openDoubleClickedFile(QModelIndex index) {
h.flush_cache();
#endif
if(QFile::exists(file_path))
QDesktopServices::openUrl("file://"+file_path);
QDesktopServices::openUrl(QUrl("file://"+file_path));
else
QMessageBox::warning(this, tr("I/O Error"), tr("This file does not exist yet."));
} else {
@ -501,7 +501,7 @@ void PropertiesWidget::openDoubleClickedFile(QModelIndex index) {
h.flush_cache();
#endif
if(QFile::exists(file_path))
QDesktopServices::openUrl("file://"+file_path);
QDesktopServices::openUrl(QUrl("file://"+file_path));
else
QMessageBox::warning(this, tr("I/O Error"), tr("This folder does not exist yet."));
}