From 310c3068bda2702f6d485835f2d28df4cb4550e4 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Thu, 14 Mar 2024 09:40:10 +0100 Subject: [PATCH] make title column interactive too and auto-stretch last column - fixes #1319 --- localization/rssguard_en.ts | 496 +++++++++++++++------------ resources/text/CHANGELOG | 1 + src/librssguard/gui/messagesview.cpp | 4 +- 3 files changed, 276 insertions(+), 225 deletions(-) diff --git a/localization/rssguard_en.ts b/localization/rssguard_en.ts index dabd926cc..46a8ecdc6 100644 --- a/localization/rssguard_en.ts +++ b/localization/rssguard_en.ts @@ -168,67 +168,67 @@ Error: %1 Application - + Application is already running. Application is already running - + Output directory is not writable. Output directory is not writable - + Settings file not copied to output directory successfully. Settings file not copied to output directory successfully. - + Database restoration was not initiated. Make sure that output directory is writable. Database restoration was not initiated. Make sure that output directory is writable. - + Settings restoration was not initiated. Make sure that output directory is writable. Settings restoration was not initiated. Make sure that output directory is writable. - + Cannot add feed Cannot add feed - + Feed cannot be added because there is no active account which can add feeds. - + Packages %1 were updated. - + Unread articles fetched - + Go to changelog - + AdBlock needs to be configured - + Welcome - + Welcome to %1. Please, check NEW stuff included in this @@ -236,17 +236,17 @@ version by clicking this popup notification. - + AdBlock is not configured properly. Go to "Settings" -> "Node.js" and check if your Node.js is properly configured. - + Already running - + Packages %1 were NOT updated because of error: %2. @@ -571,12 +571,12 @@ Number of categories: %2 DiscoveredFeedsModel - + Title Title - + Type @@ -1980,35 +1980,40 @@ QtWebEngine cache folder -> "%7" - + Switch to &advanced mode - + Close this dialog and display dialog for adding individual feeds with advanced options. - + Cannot discover feeds - + Error: %1 Error: %1 - + URL is valid. - + URL is NOT valid. + + + No title + No title + FormEditFeedlyAccount @@ -2191,27 +2196,27 @@ QtWebEngine cache folder -> "%7" FormMain - + No possible actions No possible actions - + No recycle bin No recycle bin - + Main menu Main menu - + Open main menu - + Open &main menu @@ -2642,7 +2647,7 @@ QtWebEngine cache folder -> "%7" - + Add new category Add new category @@ -2828,47 +2833,47 @@ QtWebEngine cache folder -> "%7" - + Add new feed Add new feed - + No actions possible No actions possible - + Cannot cleanup database Cannot cleanup database - + Cannot cleanup database, because another critical action is running. Cannot cleanup database, because another critical action is running. - + Play in media player - + (not supported) - + Close opened modal dialogs first. Close opened modal dialogs first. - + Fetching common data - + Close dialogs @@ -3183,41 +3188,41 @@ QtWebEngine cache folder -> "%7" FormSettings - + Critical settings were changed Critical settings were changed - - + + Changed categories of settings: %1. - + Some settings are changed and will be lost - + Some settings were changed and by cancelling this dialog, you would lose these changes. - + Do you really want to close this dialog without saving any settings? - + Some critical settings were changed and will be applied after the application gets restarted. You have to restart manually. - + Do you want to restart now? @@ -4923,92 +4928,92 @@ Login tokens expiration: %2 MessagesModel - + Id Id - + Read Read - + Deleted Deleted - + Important Important - + Feed Feed - + Title Title - + Author Author - + Contents Contents - + Permanently deleted Permanently deleted - + Attachments Attachments - + List of attachments. List of attachments. - + Account ID Account ID - + Custom ID Custom ID - + Custom hash Custom hash - + Feed ID - + Has enclosures - + Score - + Date @@ -5033,127 +5038,127 @@ Login tokens expiration: %2 - + URL URL - + RTL - + Assigned labels - + Assigned label IDs - + ID of the article. - + Is article read? - + Is article important? - + Is article deleted? - + Is article permanently deleted from recycle bin? - + ID of feed which this article belongs to. - + Title of the article. - + Url of the article. - + Author of the article. - + Creation date of the article. - + Contents of the article. - + Score of the article. - + Account ID of the article. - + Custom ID of the article. - + Custom hash of the article. - + Name of feed of the article. - + Indication of enclosures presence within the article. - + Layout direction of the article - + Labels assigned to the article. - + Label IDs assigned to the article. - + %n months ago @@ -5161,7 +5166,7 @@ Login tokens expiration: %2 - + %n weeks ago @@ -5169,7 +5174,7 @@ Login tokens expiration: %2 - + %n days ago @@ -5177,12 +5182,12 @@ Login tokens expiration: %2 - + yesterday - + %n hours ago @@ -5190,7 +5195,7 @@ Login tokens expiration: %2 - + %n minutes ago @@ -5198,7 +5203,7 @@ Login tokens expiration: %2 - + just now @@ -5775,7 +5780,7 @@ Login tokens expiration: %2 - + Load initial set of feeds Load initial set of feeds @@ -5972,17 +5977,17 @@ List of supported readers: - + escape sequence not completed - + closing " is missing - + closing ' is missing @@ -6055,6 +6060,16 @@ List of supported readers: (not supported) + + + iCalendar error '%1' + + + + + not an iCalendar + + QtMultimediaBackend @@ -6153,7 +6168,12 @@ List of supported readers: - You can now use reader mode! + Reload your webpage and then you can use reader mode! + + + + + Packages for reader mode are installed. You can now use reader mode! @@ -6166,6 +6186,11 @@ List of supported readers: There is error: %1 + + + Packages for reader mode are NOT installed. There is error: %1 + + @@ -6179,6 +6204,7 @@ List of supported readers: + Node.js is not configured properly. Go to "Settings" -> "Node.js" and check if your Node.js is properly configured. @@ -6950,7 +6976,7 @@ Authors of this application are NOT responsible for lost data. SettingsFeedsMessages - + Select new font @@ -6983,12 +7009,12 @@ Authors of this application are NOT responsible for lost data. - + PC restart needed - + Your PC needs to be restarted to make some of enabled features fully working. @@ -7039,7 +7065,7 @@ Authors of this application are NOT responsible for lost data. - + Row height @@ -7051,14 +7077,14 @@ Authors of this application are NOT responsible for lost data. - + Font preview - + &Change font @@ -7118,10 +7144,15 @@ Authors of this application are NOT responsible for lost data. - + Unread article icon type + + + Use custom date/time format for dates-only + + Bring application window to front once article is opened in external web browser @@ -7153,37 +7184,37 @@ Authors of this application are NOT responsible for lost data. - + Keep article selection in the middle of the article list viewport - + Enable multiline items - + Top/bottom row padding - + Use custom date/time format - + Custom date/time format for today's articles - + Article list font - + Show relative time for articles not older than @@ -7907,50 +7938,69 @@ Also, relaunch "Settings" dialog after you install Node.js. StandardFeed - - -Encoding: %1 + + Script + + + + + Local file + + + + + Built-in web browser with JavaScript support + + + + + Unknown + + + + + Cannot save data for feed: %1 + + + + + this source type cannot be used on 'lite' %1 build + + + + + Cannot move feed, detailed information was logged via debug log. + + + + + Cannot save feed data + + + + + Auto-update status: %1 +Active message filters: %2 +Status: %3 +Source: %4 +Item ID: %5 + + + + + + Encoding: %1 Type: %2 Post-processing script: %3 - - Script - - - - - Local file - - - - - Unknown - - - - - Cannot save data for feed: %1 - - - - - Cannot move feed, detailed information was logged via debug log. - - - - - Cannot save feed data - - - - + feed format not recognized - + Cannot move feed @@ -7978,148 +8028,148 @@ Post-processing script: %3 - + Icon selection Icon selection - + Load icon from file... Load icon from file... - + Use default icon from icon theme - + Fetch icon from feed - - + + No metadata fetched so far. - + Icon fetched successfully. - + Icon metadata fetched. - - - + + + No icon fetched. - + All metadata fetched successfully. - + Feed and icon metadata fetched. - - - + + + No metadata fetched. - + Feed name is ok. Feed name is ok. - + Feed name is too short. Feed name is too short. - + Description is empty. Description is empty. - + The description is ok. The description is ok. - + The URL is ok. The URL is ok. - + The URL does not meet standard pattern. Does your URL start with "http://" or "https://" prefix. - + The URL is empty. The URL is empty. - + Source is ok. - + File exists. - + File does not exist. - + Select icon file for the feed - + Images (%1) - + Select icon Select icon - + Cancel Cancel - + Look in: Label for field with icon file name textbox for selection dialog. Look in: - + Icon name: Icon name: - + Icon type: Icon type: @@ -8144,42 +8194,42 @@ Post-processing script: %3 - + The source is ok. - + Command is ok. - - + + Script failed: %1 - - + + Network error: %1 - - - - + + + + Error: %1 Error: %1 - + What is post-processing script? - + You can use URL as a source of your feed or you can produce your feed with custom script. Also, you can post-process generated feed data with yet another script if you wish. These are advanced features and make sure to read the documentation before your use them. @@ -8259,67 +8309,72 @@ Also, you can post-process generated feed data with yet another script if you wi StandardServiceRoot - + Do you want to load initial set of feeds? Do you want to load initial set of feeds? - + Error when loading initial feeds Error when loading initial feeds - + Fetch metadata Fetch metadata - + Export feeds Export feeds - + Import feeds Import feeds - + This new account does not include any feeds. You can now add default set of feeds. This new account does not include any feeds. You can now add default set of feeds. - + This is the obligatory service account for standard RSS/RDF/ATOM feeds. - + Cannot add item Cannot add item - + Cannot add feed because another critical operation is ongoing. Cannot add feed because another critical operation is ongoing. - + + this source type cannot be used on 'lite' %1 build + + + + Cannot add category Cannot add category - + Cannot add category because another critical operation is ongoing. Cannot add category because another critical operation is ongoing. - + Import was completely successful. - + Some feeds/categories were not imported due to error, check debug log for more details. @@ -8891,38 +8946,33 @@ Last login on: %4 - + + Play in media player + + + + No title Webbrowser tab title when no title is available. No title - - Reader mode failed for this website - - - - - Reader mode cannot be applied to current page. - - - - + Back Back - + Forward Forward - + Reload Reload - + Stop Stop diff --git a/resources/text/CHANGELOG b/resources/text/CHANGELOG index f06a42436..a22f80ab8 100644 --- a/resources/text/CHANGELOG +++ b/resources/text/CHANGELOG @@ -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. diff --git a/src/librssguard/gui/messagesview.cpp b/src/librssguard/gui/messagesview.cpp index 83ea42aa9..9d0620943 100644 --- a/src/librssguard/gui/messagesview.cpp +++ b/src/librssguard/gui/messagesview.cpp @@ -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);