Simplify code in Konsole
AbandonedPublic

Authored by tcanabrava on May 17 2018, 9:20 AM.

Details

Reviewers
None
Group Reviewers
Konsole
Summary

This review is a collection of small improvements on Konsole's code

  • Removed some calls that the only thing it did was to forward with the same arguments the call to another object
  • Do not store temporary just to do a call in the next line
  • Remove duplicated code
  • Remove this-> used unecessarely
  • Use the newSession from the ViewManager
  • Remove StackedView, use TabbedBar with Hidden Tab
Test Plan

manually running konsole and testing

Diff Detail

Repository
R319 Konsole
Branch
simplifyCode
Lint
No Linters Available
Unit
No Unit Test Coverage
tcanabrava created this revision.May 17 2018, 9:20 AM
Restricted Application added a project: Konsole. · View Herald TranscriptMay 17 2018, 9:20 AM
Restricted Application added a subscriber: konsole-devel. · View Herald Transcript
tcanabrava requested review of this revision.May 17 2018, 9:20 AM
tcanabrava retitled this revision from Remove unecessary forward-calls to Simplify code in Konsole.May 17 2018, 9:24 AM
tcanabrava edited the summary of this revision. (Show Details)
tcanabrava added a reviewer: Konsole.

Thanks for working on this. I've wanted to remove the stackedview for some time. Can you separate that part into its own ticket?

mglb added a subscriber: mglb.May 17 2018, 11:29 PM

There is one visible tab in KonsolePart now, it shouldn't be there.

Test (without make install):

export LD_LIBRARY_PATH=$(realpath ./src)
export QT_PLUGIN_PATH=$(realpath ./src)
./src/tests/demo_konsolepart/src/demo_konsolepart
In D12942#264411, @mglb wrote:

There is one visible tab in KonsolePart now, it shouldn't be there.

Test (without make install):

export LD_LIBRARY_PATH=$(realpath ./src)
export QT_PLUGIN_PATH=$(realpath ./src)
./src/tests/demo_konsolepart/src/demo_konsolepart

good to know, I'll find what's going on and remove the extra tab.

Thanks for working on this. I've wanted to remove the stackedview for some time. Can you separate that part into its own ticket?

Sure, I'll do that. I'll close this and reopen just the removal of the StackedView in other ticket.

tcanabrava abandoned this revision.May 18 2018, 2:54 PM

Split in multiple tickets.