-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Show/hide statusbar option #4029
Conversation
@@ -1107,6 +1108,12 @@ void MainWindow::loadPreferences(bool configure_session) | |||
toolBar->setVisible(false); | |||
} | |||
|
|||
if (pref->isStatusbarDisplayed()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
statusBar()->setVisible(pref->isStatusbarDisplayed());
@takiz Your changes are incomplete! |
<bool>true</bool> | ||
</property> | ||
<property name="text"> | ||
<string>Status bar</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bar -> Bar
And your screenshot doesn't show the correct capitalized menu items.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
& missing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Status bar" -> "Status Bar"
& missing?
You can give one if you want.
And screenshot the latest git version, not an outdated old version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case resource economy is low. It makes no sense. |
@takiz You shouldn't create separate commits to fix the other commits from the current PR. This will pollute the qBittorrent history. Maintainer will not merge this. |
@takiz I presume you don't know much about git so I am giving you a few hints here on how to squash commits into one.
|
Also update your code to follow our style guide: https://github.com/qbittorrent/qBittorrent/blob/master/CODING_GUIDELINES.md |
@sledgehammer999 done. |
@@ -1352,6 +1355,13 @@ void MainWindow::on_actionTop_tool_bar_triggered() | |||
Preferences::instance()->setToolbarDisplayed(is_visible); | |||
} | |||
|
|||
void MainWindow::on_actionShow_Status_bar_triggered() | |||
{ | |||
bool is_visible = static_cast<QAction*>(sender())->isChecked(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use camelCased names.
tested and looks good in linux with qt5. |
void MainWindow::on_actionShowStatusbar_triggered() | ||
{ | ||
bool isVisible = static_cast<QAction*>(sender())->isChecked(); | ||
QMainWindow::statusBar()->setVisible(isVisible); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use the status_bar
member variable
I think you should reimplement the showEvent() and hideEvent() in our |
@sledgehammer999, what timer do you mean? |
The |
@takiz any progress on this? could you rebase? Thanks. |
@takiz ping. |
Hi, i just wanted to ask when/if this option is going to be introduced in the stable releases? I just installed v. 3.3.4 and there is no option to hide the statusbar yet! |
Who decides whether this feature will be integrated or not? I mean: Whats the harm? Giving people more option can hardly be a bad thing? |
Ok Thanks...and WHEN will he decide on this? |
Ok thats sad...alot of users will jump ship in that case.. |
There is always the option for anyone to take the PR, fix it and make a new PR. |
@takiz ?? |
I will finish it, if you do not mind. |
Closing now. I'll open new PR with updated code. |
Add show/hide statusbar option (Supersede #4029)
It's usefull for small displays.