Squish: Improve changePermission()

Change-Id: I3ce1691afc2fad3949d216dee37b06a33e40f6f1
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
Squish: Move simpleFileName() into shared script

Change-Id: I359af17fcbc67149fab4e291142523b436a43832
Reviewed-by: Robert Loehning <robert.loehning@digia.com>
Fix warnings about uninitialized variables in readonlyfilesdialog.cpp.

readonlyfilesdialog.cpp:316:29: warning: 'type' may be used
uninitialized in this function.
readonlyfilesdialog.cpp:283:60: warning: 'result' may be used
uninitialized in this function.

Change-Id: Ib2456e64d981c5afcd3ba70cc7ef0427e98b9b4e
Reviewed-by: David Schulz <david.schulz@digia.com>