summaryrefslogtreecommitdiff
path: root/src/plugins/designer/formwindowfile.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2011-04-15 11:53:46 +0200
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2011-04-18 14:14:20 +0200
commit9e7a4c7d4ff5d1fb05cd47b0c00a102edb19f313 (patch)
tree57badcb15bc487ec9c6375c42ac46d99917edb19 /src/plugins/designer/formwindowfile.cpp
parent801e5a2fddcf5f11bf68f32fbd3e0fcac79b2dc9 (diff)
downloadqt-creator-9e7a4c7d4ff5d1fb05cd47b0c00a102edb19f313.tar.gz
provide default implementation of IFile::reloadBehavior()
there only two classes of files anyway: regularly editable ones which may ask for interaction, and "background" files which always operate silently. the regular case is the more complex one, so put that into the base class.
Diffstat (limited to 'src/plugins/designer/formwindowfile.cpp')
-rw-r--r--src/plugins/designer/formwindowfile.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/plugins/designer/formwindowfile.cpp b/src/plugins/designer/formwindowfile.cpp
index 714d479efe..dfa395af66 100644
--- a/src/plugins/designer/formwindowfile.cpp
+++ b/src/plugins/designer/formwindowfile.cpp
@@ -129,18 +129,6 @@ bool FormWindowFile::isSaveAsAllowed() const
return true;
}
-Core::IFile::ReloadBehavior FormWindowFile::reloadBehavior(ChangeTrigger state, ChangeType type) const
-{
- if (type == TypePermissions)
- return BehaviorSilent;
- if (type == TypeContents) {
- if (state == TriggerInternal && !isModified())
- return BehaviorSilent;
- return BehaviorAsk;
- }
- return BehaviorAsk;
-}
-
bool FormWindowFile::reload(QString *errorString, ReloadFlag flag, ChangeType type)
{
if (flag == FlagIgnore)