more Id type fixes

Change-Id: I3720946ba5485696822976567d83b4d6cb1fb283

x

Change-Id: Iab58bc34bc56371405d132315573b484a533b77c
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-11-10 11:36:51 +01:00
committed by hjk
parent cfc9b71ecb
commit 82f5573626
102 changed files with 322 additions and 320 deletions

View File

@@ -1059,7 +1059,7 @@ void FileManager::syncWithEditor(Core::IContext *context)
\a editorId defaults to the empty id, which means to let the system figure out
the best editor itself.
*/
void FileManager::addToRecentFiles(const QString &fileName, const QString &editorId)
void FileManager::addToRecentFiles(const QString &fileName, const Id &editorId)
{
if (fileName.isEmpty())
return;
@@ -1103,7 +1103,7 @@ void FileManager::saveSettings()
QStringList recentEditorIds;
foreach (const RecentFile &file, d->m_recentFiles) {
recentFiles.append(file.first);
recentEditorIds.append(file.second);
recentEditorIds.append(file.second.toString());
}
QSettings *s = Core::ICore::instance()->settings();
@@ -1133,7 +1133,7 @@ void FileManager::readSettings()
editorId = ids.next();
if (QFileInfo(fileName).isFile())
d->m_recentFiles.append(RecentFile(QDir::fromNativeSeparators(fileName), // from native to guard against old settings
editorId));
Id(editorId)));
}
s->beginGroup(QLatin1String(directoryGroupC));