[Differential] [Request, 22 lines] D794: Add indicator for read-only files

apuzio (Artur Puzio) noreply at phabricator.kde.org
Mon Jan 11 22:23:45 UTC 2016


apuzio created this revision.
apuzio added a reviewer: kfunk.
Herald added a subscriber: kdevelop-devel.

REVISION SUMMARY
  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.

REPOSITORY
  rKDEVPLATFORM KDevPlatform

BRANCH
  read-only-indicator

REVISION DETAIL
  https://phabricator.kde.org/D794

AFFECTED FILES
  shell/mainwindow.cpp
  shell/mainwindow.h
  shell/mainwindow_p.h

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: apuzio, kfunk
Cc: kdevelop-devel


More information about the KDevelop-devel mailing list