MainWindow: Add indicator for read-only files

Authored by apuzio.

Description

MainWindow: Add indicator for read-only files

Summary:
This fixes the Bug 134854
If current file is read-only (checked with ReadWritePart::isReadWrite()) the window title changes - "(read only)" is added.
To check if the read-only status changed KTextEditor::Document::readWriteChanged signal is used.
Note: chmod-ing a file won't make in read only for ReadWritePart::isReadWrite().

Test Plan: Seams to work fine.

BUG: 134854

Reviewers: kfunk

Reviewed By: kfunk

Subscribers: kdevelop-devel

Differential Revision: https://phabricator.kde.org/D794

Details

Committed
kfunkJan 20 2016, 8:32 AM
Reviewer
kfunk
Differential Revision
D794: [Bug 134854] Add indicator for read-only files
Parents
R33:13e5191115d5: Prefer static version of QFileInfo::exists
Branches
Unknown
Tags
Unknown