Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggle 'complete track name' display on double click in otioview #690

Merged

Conversation

KarthikRIyer
Copy link
Contributor

@ssteinbach as per your suggestion to have an option to view long track names in otioview, I've added an option to do that on double-clicking on the TrackName widget.

This is how it looks:

Screenshot from 2020-05-01 16-18-36

Screenshot from 2020-05-01 16-18-53

Copy link
Collaborator

@ssteinbach ssteinbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two really small notes. This looks like a nice feature, thanks!

track_name = track_name[:7] + '...'
self.source_name_label.setText(track_name + '\n({})'.format(track.kind))
self.track = track
self.track_name = 'Track' if track.name == '' else track.name
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.track_name = 'Track' if track.name == '' else track.name
self.track_name = 'Track' if not track.name else track.name

Should be the same but also covers the case where track.name is None

self.track = track
self.track_name = 'Track' if track.name == '' else track.name
self.full_track_name = self.track_name
if len(self.track_name) > 7:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets break the 7 out to be a top level constant, maybe SHORT_NAME_LENGTH

@codecov-commenter
Copy link

codecov-commenter commented May 19, 2020

Codecov Report

Merging #690 into master will increase coverage by 0.02%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #690      +/-   ##
==========================================
+ Coverage   81.70%   81.72%   +0.02%     
==========================================
  Files          72       72              
  Lines        2728     2731       +3     
==========================================
+ Hits         2229     2232       +3     
  Misses        499      499              
Flag Coverage Δ
#py27 81.70% <ø> (?)
#py36 81.70% <ø> (ø)
#py37 81.70% <ø> (ø)
Impacted Files Coverage Δ
...elineio/opentimelineio-bindings/otio_anyVector.cpp 100.00% <0.00%> (ø)
...eio/opentimelineio-bindings/otio_anyDictionary.cpp 100.00% <0.00%> (ø)
...ntimelineio/opentimelineio-bindings/otio_utils.cpp 87.20% <0.00%> (+0.15%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 89badc7...0b19217. Read the comment docs.

Copy link
Collaborator

@ssteinbach ssteinbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@ssteinbach ssteinbach merged commit d6851b7 into AcademySoftwareFoundation:master May 19, 2020
@ssteinbach ssteinbach added this to the Public Beta 13 milestone Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants