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

Resize window that spills from desktop area by performing searches!!!! #9826

Open
xzj8b3 opened this Issue Nov 7, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@xzj8b3

xzj8b3 commented Nov 7, 2018

Reported several times, we want to resize window using the search field exits the desktop area???
schermata da 2018-11-07 11-54-11

Nome : qbittorrent
Epoca : 1
Versione : 4.1.2
Rilascio : 1.fc29
Arch : x86_64
Dim. : 8.5 M
Sorgente : qbittorrent-4.1.2-1.fc29.src.rpm
Repo : @System
Dal repo : fedora
Sommario : A Bittorrent Client
URL : http://www.qbittorrent.org
Licenza : GPLv2+

@thalieht

This comment has been minimized.

Contributor

thalieht commented Nov 7, 2018

You probably have a small (laptop) screen and that's why it doesn't fit. It doesn't fit because there are many filters for the search results and i suppose this problem appeared in the qBt version that added the Filter search results field. One hacky solution would be to change that field's minimum width but i have no way of knowing what number would be enough. I also don't know what would be the proper way to fix it.

--- a/src/gui/search/searchjobwidget.cpp
+++ b/src/gui/search/searchjobwidget.cpp
@@ -129,7 +129,7 @@ SearchJobWidget::SearchJobWidget(SearchHandler *searchHandler, QWidget *parent)
     updateFilter();
 
     m_lineEditSearchResultsFilter = new LineEdit(this);
-    m_lineEditSearchResultsFilter->setFixedWidth(Utils::Gui::scaledSize(this, 170));
+    m_lineEditSearchResultsFilter->setMinimumWidth(Utils::Gui::scaledSize(this, 90));
     m_lineEditSearchResultsFilter->setPlaceholderText(tr("Filter search results..."));
     m_lineEditSearchResultsFilter->setContextMenuPolicy(Qt::CustomContextMenu);
     connect(m_lineEditSearchResultsFilter, &QWidget::customContextMenuRequested, this, &SearchJobWidget::showFilterContextMenu);
@xzj8b3

This comment has been minimized.

xzj8b3 commented Nov 8, 2018

Probabilmente hai uno schermo piccolo (portatile) ed è per questo che non si adatta. Non si adatta perché ci sono molti filtri per i risultati della ricerca e suppongo che questo problema sia apparso nella versione qBt che ha aggiunto il campo dei risultati della ricerca del filtro. Una soluzione hacky sarebbe quella di modificare la larghezza minima di quel campo, ma non ho modo di sapere quale numero sarebbe sufficiente. Inoltre, non so quale sarebbe il modo corretto per risolverlo.

--- a/src/gui/search/searchjobwidget.cpp
+++ b/src/gui/search/searchjobwidget.cpp
@@ -129,7 +129,7 @@ SearchJobWidget::SearchJobWidget(SearchHandler *searchHandler, QWidget *parent)
     updateFilter();
 
     m_lineEditSearchResultsFilter = new LineEdit(this);
-    m_lineEditSearchResultsFilter->setFixedWidth(Utils::Gui::scaledSize(this, 170));
+    m_lineEditSearchResultsFilter->setMinimumWidth(Utils::Gui::scaledSize(this, 90));
     m_lineEditSearchResultsFilter->setPlaceholderText(tr("Filter search results..."));
     m_lineEditSearchResultsFilter->setContextMenuPolicy(Qt::CustomContextMenu);
     connect(m_lineEditSearchResultsFilter, &QWidget::customContextMenuRequested, this, &SearchJobWidget::showFilterContextMenu);

My monitor is 1366x768 (16.9) sure is the version with search filters ...the 4.1.2 in the repositories of Fedora.
Previously it did not have this problem it was born with the versions inserted by Fedora 28 onwards ..... too bad make qbittorrent really uncomfortable to use ..... but I know many people use notebooks the same size ..... I will have to opt for other software when I have always used qbittorrent??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment