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

Allow to hide individual Status filter items #18273

Closed
wants to merge 3 commits into from

Conversation

barisunsalhn
Copy link

Closes #18082
Qwidget-> UpdateGeometry does not work on hidden widgets, so sizeHint method of QWidget is overrided in StatusFilterWidget. In sizeHint method, constant 20 is used because QWidgetListItem->sizeHint().height returns -1.

Screnshot

Screenshot from 2022-12-22 21-32-25

Closes qbittorrent#18082
Qwidget-> UpdateGeometry does not work on hidden widgets, so sizeHint method of QWidget is overrided in StatusFilterWidget.
In sizeHint method, constant 20 is used because QWidgetListItem->sizeHint().height returns -1.
@barisunsalhn
Copy link
Author

barisunsalhn commented Dec 22, 2022

@thalieht I just added qt6 support, but could not understand this error. I cant fathom it. Could you explain or guide?
Edit: I am using qt5 versions of :
libqt5svg5-dev is already the newest version (5.15.3-1).
qttools5-dev is already the newest version (5.15.3-1).
qtbase5-dev is already the newest version (5.15.3+dfsg-2ubuntu0.2).

I also have a question, it fails in 11, but in annotations I can only see 4 of them? For ex this one is not being showed?

4 out of 11

Screenshot from 2022-12-22 23-47-39

@thalieht
Copy link
Contributor

I don't think you should be looking at the Mac CI now, it's broken in other PR's too. I'm sorry i'm not a programmer so i have no idea what's happening in application.cpp.

- Added qt6 support
- Removed unnecessary trailing whitespaces
@xavier2k6
Copy link
Member

xavier2k6 commented Dec 23, 2022

@lapaz17 I just tried the windows CI build (Qt 6) & Appveyor build (Qt5) - there's no selectable filters in the context menu...

I'm not seeing anything like the screenshot from #18082 (comment) - just resume torrents/pause torrents/remove torrents.

stat filters

stat filters2

@thalieht
Copy link
Contributor

there's no selectable filters in the context menu...
just resume torrents/pause torrents/remove torrents.

You have to right click on the "STATUS" label itself.

@xavier2k6
Copy link
Member

You have to right click on the "STATUS" label itself.

Thank you!

status filter context menustatus filter context menu 2status filter context menu 3

@glassez glassez changed the title Added Context Menu to Hide Individual Status Filters Allow to hide individual Status filter items Dec 25, 2022
@thalieht thalieht added the GUI GUI-related issues/changes label Jan 2, 2023
@xavier2k6
Copy link
Member

I haven't come across any issues.......awaiting others opinions/review.

@glassez
Copy link
Member

glassez commented Jan 14, 2023

I start my review from a user perspective. First of all I believe that All is a pseudo state and it should be always visible.
The second one is a question of how it is supposed to behave when you hide currently selected item?

@xavier2k6
Copy link
Member

First of all I believe that All is a pseudo state and it should be always visible.

I was thinking the same thing as per #18082 (comment)

The second one is a question of how it is supposed to behave when you hide currently selected item?

Do you think it would behave any different to how we hide the Filters Sidebar completely now?

@glassez
Copy link
Member

glassez commented Jan 16, 2023

The second one is a question of how it is supposed to behave when you hide currently selected item?

Do you think it would behave any different to how we hide the Filters Sidebar completely now?

I just want to say that it should switch to All in case when selected item gets hidden. But this cannot be satisfied in all the cases since currently All can be hidden as well.

@github-actions
Copy link

This PR is stale because it has been 60 days with no activity. This PR will be automatically closed within 7 days if there is no further activity.

@github-actions github-actions bot added the Stale label Mar 18, 2023
@stalkerok
Copy link
Contributor

@lapaz17, at what stage is this PR, will you continue to do it?
I would like to see it in 4.6.0

@barisunsalhn
Copy link
Author

@lapaz17, at what stage is this PR, will you continue to do it? I would like to see it in 4.6.0

Im sorry, no..

@stalkerok
Copy link
Contributor

@glassez, @thalieht, maybe it makes sense to approve it, if there are no serious comments?
Perhaps later the author or someone else will finalize minor issues.

@xavier2k6
Copy link
Member

I just want to say that it should switch to All in case when selected item gets hidden.

I totally agree but that doesn't happen even before this PR with STATUS it does on CATEGORIES/TAGS etc.

What I mean is, If you create a category/tag & select it, then hide/de-select status filter & re-enable it -> It reverts to All
If you were to select say Stalled Uploading then hide/de-select status filter & re-enable it -> Stalled Uploading is still selected.

But this cannot be satisfied in all the cases since currently All can be hidden as well.

Agree, again.

@xavier2k6
Copy link
Member

For this PR or another iteration of it to be approved, these 2 conditions need to be met.

  1. All is a pseudo state and it should be always visible.
  2. It should switch to All in case when selected item gets hidden or when status filter is disabled/re-enabled.

@stalkerok
Copy link
Contributor

@lapaz17, maybe you can still finalize it?

@glassez
Copy link
Member

glassez commented Mar 25, 2023

What I mean is, If you create a category/tag & select it, then hide/de-select status filter & re-enable it -> It reverts to All

For me hide then show Status filter restore previously selected item (at least without restart the app in between).
But "disable entire filter" and "hide item" are different kinds of things. When hiding an item I would strongly expect it to lose selected state permanently (until user show it and select it again).

  1. All is a pseudo state and it should be always visible.

This is strictly required by me.

@barisunsalhn
Copy link
Author

@lapaz17, maybe you can still finalize it?

Unfortunatley I destroyed my dev setup.

@github-actions github-actions bot removed the Stale label Mar 26, 2023
@ratman-codes
Copy link

Can someone please review and fix this? This is the #1 feature I'm waiting for and lapaz did a great job getting it 99% of the way there... qbittorrent sucks so much without this.

@d-s-x
Copy link
Contributor

d-s-x commented May 27, 2023

Screenshot from 2022-12-22 21-32-25

That doesn't seems to be mkv, but if it's the same as #18082 (comment) then I'd like to object. No other header on the left sidebar (CATEGORIES, TAGS, TRACKERS) have their own context menus. So the STATUS must have no context menu as well.

I think approach suggested in #18082 (comment) is better (that is to add new submenu under View menu similar to View/Log).

I, myself, am annoyed by number of statuses we have there. Ideally, I'd like to have something similar to uTorrent 2.x where we have 4 main statuses + optional error status if some torrents have errors. I understand that statuses are added because someone wants them, but I'm happy to find out I'm not the only one who does not :)

If everyone agrees with such solution I might try to implement it but it's unlikely to be ready for 4.6 release in this case.

@github-actions
Copy link

This PR is stale because it has been 60 days with no activity. This PR will be automatically closed within 7 days if there is no further activity.

@github-actions github-actions bot added Stale and removed Stale labels Jul 27, 2023
@github-actions
Copy link

This PR is stale because it has been 60 days with no activity. This PR will be automatically closed within 7 days if there is no further activity.

@github-actions github-actions bot added the Stale label Sep 27, 2023
@ratman-codes
Copy link

I'm bumping since this says its inactive Looks like it needs a review.

@github-actions github-actions bot removed the Stale label Sep 28, 2023
@xavier2k6
Copy link
Member

I'm bumping since this says its inactive Looks like it needs a review.

It has conflicting files that need to be resolved & @lapaz17 can't work on this any further it seems -> #18273 (comment)

Copy link

github-actions bot commented Dec 8, 2023

This PR is stale because it has been 60 days with no activity. This PR will be automatically closed within 7 days if there is no further activity.

@github-actions github-actions bot added the Stale label Dec 8, 2023
@ratman-codes
Copy link

Bump for activity as this will not be archived until solved. Major issue.

@stalkerok
Copy link
Contributor

It doesn't make any sense, the author refused to complete the work.

@github-actions github-actions bot removed the Stale label Dec 9, 2023
@xavier2k6
Copy link
Member

@aboose-aboose-aboose This PR has been abandoned, There was a new PR created that can auto-hide zero status filters which has been included in 4.6.x

@xavier2k6 xavier2k6 closed this Dec 11, 2023
@Bhaalspawn
Copy link

Bhaalspawn commented Apr 17, 2024

@aboose-aboose-aboose This PR has been abandoned, There was a new PR created that can auto-hide zero status filters which has been included in 4.6.x

but it's not the same thing!!i may want to see some 0 status like "active torrents" even when there is no active torrent and hide those who are almost the same like "completed" and "seed" (since i never stop torrents after competion.

and this was never working for me, even in 4.5

can you tell me how i do it?. i'm right clicking on Status and nothing appears (4.5.5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI GUI-related issues/changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"Option to Hide Individual Status Filters"
8 participants