make title column interactive too and auto-stretch last column - fixes #1319

This commit is contained in:
Martin Rotter 2024-03-14 09:40:10 +01:00
parent 8dd2fca3bc
commit 310c3068bd
3 changed files with 276 additions and 225 deletions

File diff suppressed because it is too large Load Diff

View File

@ -9,6 +9,7 @@ Added:
* Added way to use old legacy article formatting in "lite" version. (#1286)
* New way of fetching articles - new "Source" -> "Built-in web browser with JavaScript support" which allows user to use built-in Chromium-based network stack to fetch feeds and other data. It allows even fetching of majority of JavaScript-powered websites. (#1313)
* More date/time strings for parsing some dates and times in articles.
* "Title" column in article list is not directly resizable too. Last visible column auto-stretches to fit remaining space. (#1319)
Fixed:
* Fix freezing when feed uses crazy crazy loooong URL.

View File

@ -352,7 +352,7 @@ void MessagesView::setupAppearance() {
header()->setMinimumSectionSize(MESSAGES_VIEW_MINIMUM_COL);
header()->setFirstSectionMovable(true);
header()->setCascadingSectionResizes(false);
header()->setStretchLastSection(false);
header()->setStretchLastSection(true);
adjustColumns();
}
@ -915,7 +915,7 @@ void MessagesView::adjustColumns() {
header()->setSectionResizeMode(i, QHeaderView::ResizeMode::Interactive);
}
header()->setSectionResizeMode(MSG_DB_TITLE_INDEX, QHeaderView::ResizeMode::Stretch);
// header()->setSectionResizeMode(MSG_DB_TITLE_INDEX, QHeaderView::ResizeMode::Stretch);
// Hide columns.
hideColumn(MSG_DB_ID_INDEX);