[Differential] [Commented On] D4657: Show all KTextEditor view bars in a central location

Christoph Cullmann noreply at phabricator.kde.org
Sun Feb 19 12:54:06 UTC 2017


cullmann added a comment.


  In https://phabricator.kde.org/D4657#87433, @mwolff wrote:
  
  > Christoph, Dominik,: When comparing this implementation to the one in Kate:
  >
  > - why exactly is the `BarState` wrapper needed?
  > - i.e. is `slotUpdateBottomViewBar` really needed, isn't that handled in KTextEditor? If it's needed, shouldn't this be in KTextEditor to call `{show,hide}ViewBar`?
  > - Kate guards against `nullptr` view bars, is this really needed? Put differently - when would this ever occur? Shouldn't this be handled by KTextEditor to not call `addWidgetToViewBar`?
  
  
  Hmm, for the null check, I guess that is not needed, more caution ;)
  For the other two things: Isn't the problem that KTextEditor can't keep track of view switches and has no concept of active view and the slotUpdateBottomViewBar() is used to restore the right view bar if the view is changed?
  But that code is old, I could be mistaken ;=) And the state var in the BarState is awful, it means "visible" or?

REPOSITORY
  R33 KDevPlatform

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

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

To: mwolff, #kdevelop, dhaumann, cullmann
Cc: kdevelop-devel, #kdevelop, Pilzschaf, akshaydeo, surgenight, arrowdodger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20170219/3f005941/attachment.html>


More information about the KDevelop-devel mailing list