summaryrefslogtreecommitdiff
path: root/src/plugins/resourceeditor/resourceeditorw.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@nokia.com>2012-02-14 12:10:29 +0100
committerEike Ziller <eike.ziller@nokia.com>2012-02-14 12:58:11 +0100
commitf916d38dce14ac69dcb0b2338b94d91155d77892 (patch)
treee575ad1dfe68c976552593d74b0d536b5cc801a0 /src/plugins/resourceeditor/resourceeditorw.cpp
parentd7b0ceac8a3959a6b055961cf915c9b697c31d46 (diff)
downloadqt-creator-f916d38dce14ac69dcb0b2338b94d91155d77892.tar.gz
Make IFile::isReadOnly consistent.
It is supposed to refer to the property of the file on disk (if there is any). Task-number: QTCREATORBUG-4998 Change-Id: Iaed62c17d124b364aecec4d1f910046bade42d40 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com> Reviewed-by: Daniel Teske <daniel.teske@nokia.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/plugins/resourceeditor/resourceeditorw.cpp')
-rw-r--r--src/plugins/resourceeditor/resourceeditorw.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/plugins/resourceeditor/resourceeditorw.cpp b/src/plugins/resourceeditor/resourceeditorw.cpp
index 4dd9ea34c0..97d02941f8 100644
--- a/src/plugins/resourceeditor/resourceeditorw.cpp
+++ b/src/plugins/resourceeditor/resourceeditorw.cpp
@@ -218,15 +218,6 @@ bool ResourceEditorFile::isModified() const
return m_parent->m_resourceEditor->isDirty();
}
-bool ResourceEditorFile::isReadOnly() const
-{
- const QString fileName = m_parent->m_resourceEditor->fileName();
- if (fileName.isEmpty())
- return false;
- const QFileInfo fi(fileName);
- return !fi.isWritable();
-}
-
bool ResourceEditorFile::isSaveAsAllowed() const
{
return true;