Show editor display names in "Open With" dialog instead of their Id's.

Change-Id: I5cf7b5b53ce05b422aec87f7cf347670133a81a9
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
Konstantin Tokarev
2012-05-06 12:26:39 +04:00
committed by Eike Ziller
parent eba7b13c00
commit 8bad963dee
3 changed files with 9 additions and 7 deletions

View File

@@ -70,11 +70,9 @@ void OpenWithDialog::setEditors(const QStringList &editors)
editorListWidget->addItem(e);
}
QString OpenWithDialog::editor() const
int OpenWithDialog::editor() const
{
if (const QListWidgetItem *item = editorListWidget->currentItem())
return item->text();
return QString();
return editorListWidget->currentRow();
}
void OpenWithDialog::setCurrentEditor(int index)