From b442d9fb84d7a42f67d762fc1b7cb86c8e0469c0 Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Thu, 24 Feb 2022 08:31:45 +0100 Subject: [PATCH] display unread counts in title too --- localization/rssguard_cs.ts | 384 ++++++++++-------- .../desktop/com.github.rssguard.appdata.xml | 2 +- .../gui/dialogs/formaddaccount.cpp | 2 - src/librssguard/gui/guiutilities.cpp | 14 - src/librssguard/gui/guiutilities.h | 1 - .../gui/reusable/networkproxydetails.cpp | 14 +- .../gui/reusable/networkproxydetails.ui | 18 +- .../gui/settings/settingsbrowsermail.cpp | 3 +- src/librssguard/gui/settings/settingsgui.cpp | 3 +- src/librssguard/gui/settings/settingsgui.ui | 12 +- src/librssguard/gui/systemtrayicon.cpp | 4 +- src/librssguard/gui/systemtrayicon.h | 2 +- src/librssguard/miscellaneous/application.cpp | 8 +- src/librssguard/miscellaneous/application.h | 2 +- 14 files changed, 240 insertions(+), 229 deletions(-) diff --git a/localization/rssguard_cs.ts b/localization/rssguard_cs.ts index 82e1ea902..4c7c05b84 100644 --- a/localization/rssguard_cs.ts +++ b/localization/rssguard_cs.ts @@ -2290,7 +2290,7 @@ or this functionality is not implemented yet. Close dialogs - + Zavřít dialogy @@ -2351,28 +2351,29 @@ or this functionality is not implemented yet. Cannot save new filter, error: '%1'. - + Nový filtr nelze uložit, chyba: '%1'. Context menu - + Kontextové menu Filter articles like this - + Filtrovat zprávy jako tuto New article filter - + Nový filtr zpráv EXISTING articles filtering error: '%1'. - + Chyba filtru EXISTUJÍCÍCH zpráv: '%1'. + @@ -2391,13 +2392,21 @@ or this functionality is not implemented yet. Created on = '%6' Contents = '%7' RAW contents = '%8' - + Výstupní (upravená) zpráva je: + Nadpis = '%1' + URL = '%2' + Autor = '%3' + Je přečtená/důležitá = '%4/%5' + Vytvořena = '%6' + Tělo = '%7' + Surové tělo = '%8' SAMPLE article filtering error: '%1'. - + Chyba filtru TESTOVACÍ zprávy: '%1'. + @@ -2407,12 +2416,12 @@ or this functionality is not implemented yet. Do you really want to remove selected filter? - + Opravdu chcete vybraný filtr smazat? Article filters - + Filtry zpráv @@ -2432,12 +2441,12 @@ or this functionality is not implemented yet. &New filter - + &Nový filtr Article filter details - + Detaily filtru @@ -2448,7 +2457,7 @@ or this functionality is not implemented yet. Title of article filter - + Název filtru @@ -2458,22 +2467,22 @@ or this functionality is not implemented yet. Your JavaScript-based article filtering logic - + Sem umístěte JavaScript kód vašeho filtru &Test - + &Otestovat Process checked feeds - + Zpracovat zatržené kanály &Beautify - + &Zkrášlit @@ -2483,12 +2492,12 @@ or this functionality is not implemented yet. Existing articles - + Existující zprávy Sample article - + Testovací zpráva @@ -2654,7 +2663,7 @@ Musíte restartovat manuálně. Network - + Síť @@ -2811,17 +2820,17 @@ Musíte restartovat manuálně. &Check all feeds - + &Označit vše &Uncheck all feeds - + O&dznačit vše Operation result - + Výsledek operace @@ -2839,17 +2848,17 @@ Musíte restartovat manuálně. Network - + Síť Feed was added, obtaining new tree of feeds now. - + Kanál byl přidán, spouštím obnovení seznamu kanálu. API returned error code %1 - + API vrátilo chybový kód %1 @@ -2857,27 +2866,27 @@ Musíte restartovat manuálně. Share note to "Published" feed - + Sdílet poznámku do "PUBLIKOVANÉHO" kanálu Cannot share note - + Poznámku nelze sdílet There was an error, when trying to send your custom note. - + Při sdílení poznámky došlo k chybě. Enter non-empty title. - + Zadejte nadpis. Enter valid URL. - + Zadejte URL. @@ -2897,7 +2906,7 @@ Musíte restartovat manuálně. Content - + Poznámka @@ -3109,22 +3118,22 @@ Nyní ho můžete nainstalovat. There are some preconfigured OAuth tokens so you do not have to fill in your client ID/secret, but it is strongly recommended to obtain your own as it preconfigured tokens have limited global usage quota. If you wish to use preconfigured tokens, simply leave those fields empty and make sure to leave default value of redirect URL. - + V programu je předkonfigurovaná sada OAuth tokenů, ale doporučuje se velmi důrazně zajistit si tokeny vlastní, protože sdílené tokeny mají nastavení limity používání. Pokud chcete předinstalované tokeny přesto použít, ponechte relevantní pole prázdná. You have to fill in your client ID/secret and also fill in correct redirect URL. - + Je třeba zadat vaše přihlašovací tokeny a správnou přesměrovací URL. There is error: %1 - + Máme chybu: %1 Preconfigured client ID/secret will be used. - + Budou použity předkonfigurované tokeny. @@ -3139,12 +3148,12 @@ Nyní ho můžete nainstalovat. Client ID - + Klientské ID Client secret - + Klientský klíč @@ -3277,7 +3286,7 @@ Tokeny vyprší: %2 Password for your account - + Heslo k účtu @@ -3287,7 +3296,7 @@ Tokeny vyprší: %2 URL of your server, without any service-specific path - + URL vašeho serveru, bez jakýchkoliv dodatečných cest @@ -3312,12 +3321,12 @@ Tokeny vyprší: %2 You are good to go! - + Je to v cajku! Yeah. - + Jop. @@ -3352,22 +3361,22 @@ Tokeny vyprší: %2 Some feeds might contain tens of thousands of articles and downloading all of them could take great amount of time, so sometimes it is good to download only certain amount of newest messages. - + Některé kanály mohou obsahovat desítky tisíc zpráv a stahování tolika zpráv může trvat opravdu dlouho. Někdy je proto lepší počet příchozích zpráv limitovat. If you select intelligent synchronization, then only not-yet-fetched or updated articles are downloaded. Network usage is greatly reduced and overall synchronization speed is greatly improved, but first feed fetching could be slow anyway if your feed contains huge number of articles. - + Pokud povolíte inteligentní synchronizaci, budou se stahovat pouze zprávy, které doposud staženy nebyly. Bude tak sníženo zatížení sítě a celková rychlost synchronizace se značně zvýší, ovšem úplně první synchronizace nikoliv, až ty následné. There are some preconfigured OAuth tokens so you do not have to fill in your client ID/secret, but it is strongly recommended to obtain your own as preconfigured tokens have limited global usage quota. If you wish to use preconfigured tokens, simply leave all above fields to their default values even if they are empty. - + V programu je předkonfigurovaná sada OAuth tokenů, ale doporučuje se velmi důrazně zajistit si tokeny vlastní, protože sdílené tokeny mají nastavení limity používání. Pokud chcete předinstalované tokeny přesto použít, ponechte relevantní pole prázdná. You have to fill in your client ID/secret and also fill in correct redirect URL. - + Je třeba zadat vaše přihlašovací tokeny a správnou přesměrovací URL. @@ -3398,7 +3407,7 @@ Tokeny vyprší: %2 Preconfigured client ID/secret will be used. - + Budou použity předkonfigurované tokeny. @@ -3413,7 +3422,7 @@ Tokeny vyprší: %2 Service - + Služba @@ -3428,12 +3437,12 @@ Tokeny vyprší: %2 Intelligent synchronization algorithm - + Inteligentní synchronizace Fetch articles newer than - + Stahovat zprávy novější než @@ -3463,7 +3472,7 @@ Tokeny vyprší: %2 App ID - + Aplikační ID @@ -3478,7 +3487,7 @@ Tokeny vyprší: %2 Get my own App ID - + Získat vlastní aplikační ID @@ -3491,7 +3500,7 @@ Tokeny vyprší: %2 login failed - + přihlášení selhalo @@ -3525,7 +3534,7 @@ Tokeny vyprší: %2 Other services - + Jiná služba @@ -3533,7 +3542,7 @@ Tokeny vyprší: %2 View more information on this - + Toto mě zajímá @@ -3554,12 +3563,12 @@ Tokeny vyprší: %2 Important articles - + Důležité zprávy You can find all important articles here. - + Zde najdete všechny zprávy označené jako důležité. @@ -3572,7 +3581,7 @@ Tokeny vyprší: %2 No labels found - + Žádné štítky nenalezeny @@ -3710,12 +3719,12 @@ Tokeny vyprší: %2 article - + zpráva articles - + zprávy @@ -4312,7 +4321,7 @@ Tokeny vyprší: %2 Password for your account - + Heslo k účtu @@ -4322,7 +4331,7 @@ Tokeny vyprší: %2 URL of your server, without any service-specific path - + URL vašeho serveru, bez jakýchkoliv dodatečných cest @@ -4337,17 +4346,17 @@ Tokeny vyprší: %2 Some feeds might contain tens of thousands of articles and downloading all of them could take great amount of time, so sometimes it is good to download only certain amount of newest messages. - + Některé kanály mohou obsahovat desítky tisíc zpráv a stahování tolika zpráv může trvat opravdu dlouho. Někdy je proto lepší počet příchozích zpráv limitovat. You are good to go! - + Je to v cajku! Yeah. - + Jop. @@ -4572,7 +4581,7 @@ Tokeny vyprší: %2 articles - + zprávy @@ -4705,124 +4714,128 @@ Je vyžadování verze API minimálně %1. Keep up with the topics and trends you care about, without the overwhelm. Feedly is a secure space where you can privately organize and research the topics and trends that matter to you. - + Následujte trendy a témata, která vás zajímají. + +Feedly je bezpečný prostor, kde můžete soukromě organizovat a prohledávat témata a trendy, které jsou pro vás důležité. Cannot insert article filter, because current database cannot return last inserted row ID. - + Nelze vložit filtr zpráv, protože databáze neumí vrátit ID. Fetching articles right now - + Právě stahuji zprávy Login data refreshed - + Data sezení obnovena New %1 version is available - + %1 má novou verzi Miscellaneous events - + Ostatní události Node.js - package(s) updated - + Node.js - balíčky aktualizovány Node.js - package(s) failed to updated - + Node.js - aktualizace balíčků selhala Unknown event - + Neznámá událost New (unread) articles fetched - + Stažený nové (nepřečtené) zprávy XML problem: %1 - + Problém v XML: %1 JSON problem: %1 - + Problém v JSON: %1 Google Reader API is used by many online RSS readers. List of supported readers: - + Google Reader API nyní používá mnoho online čteček kanálů. + +Podporované čtečky: Login failed - + Přihlášení selhalo This service offers integration with standard online RSS/RDF/ATOM/JSON feeds and podcasts. - + Integrace se standardními RSS/RDF/ATOM/JSON kanály. Simplistic Reddit client. - + Jednoduchý klient pro Reddit. interesting stuff - + zajímavá věc interesting stuff (highlighted) - + zajímavá věc (zvýrazněno) errored items - + chybové položky errored items (highlighted) - + chybové položky (zvýrazněno) OK-ish color - + vše v pořádku User-published articles - + Publikováno uživatele Published articles - + Publikováno Personal news reader bringing people together to talk about the world. - + Osobní čtečka zpráv, která spojuje lidi z celého světa. @@ -4830,38 +4843,38 @@ List of supported readers: Packages for reader mode are installed - + Balíčky pro čtecí režím jsou nainstalované You can now use reader mode! - + Nyní lze použít čtecí režim! Packages for reader mode are NOT installed - + Balíčky pro čtecí režím NEJSOU nainstalované There is error: %1 - + Máme chybu: %1 Node.js libraries not installed - + Node.js balíčky nejsou nainstalované %1 will now install some needed libraries, this will take only a few seconds. You will be notified when installation is complete. - + %1 nyní nainstaluje některé důležité balíčky. Po dokončení instalace budete upozornění. Node.js is not configured properly. Go to "Settings" -> "Node.js" and check if your Node.js is properly configured. - + Node.js není nakonfigurováno správně. Jděte do "Nastavení -> "Node.js" a zkontrolujte nastavení a případně Node.js nainstalujte. @@ -4884,12 +4897,12 @@ List of supported readers: Recycle bin contains all deleted articles from all feeds. - + Koš obsahuje všechny smazané zprávy ze všech kanálů. %n deleted article(s). - + %n smazaná zpráva.%n smazané zprávy.%n smazaných zpráv.%n smazaných zpráv. @@ -4897,7 +4910,7 @@ List of supported readers: You have to fill in your client ID/secret and also fill in correct redirect URL. - + Je třeba zadat vaše přihlašovací tokeny a správnou přesměrovací URL. @@ -4934,7 +4947,7 @@ List of supported readers: There is error: %1 - + Máme chybu: %1 @@ -4949,7 +4962,7 @@ List of supported readers: Preconfigured client ID/secret will be used. - + Budou použity předkonfigurované tokeny. @@ -4974,12 +4987,12 @@ List of supported readers: Client ID - + Klientské ID Client secret - + Klientská tajnost @@ -5012,7 +5025,7 @@ List of supported readers: Subscriptions - + Odběry @@ -5075,7 +5088,7 @@ Tokeny vyprší: %2 %n unread article(s). Tooltip for "unread" column of feed list. - + %n nepřečtená zpráva.%n nepřečtené zprávy.%n nepřečtených zpráv.%n nepřečtených zpráv. @@ -5083,22 +5096,22 @@ Tokeny vyprší: %2 script line is not well-formed - + volání skriptu nemá správný tvar script threw an error - + skript vrátil chybu script's interpreter was not found - + interpret skripu nebyl nalezen script execution took too long - + skript trval moc dlouho @@ -5129,12 +5142,12 @@ Tokeny vyprší: %2 Synchronize folders && other items - + Synchronizovat strom & další položky Synchronize article cache - + Synchronizovat stavy zpráv @@ -5189,7 +5202,7 @@ File filter for external e-mail selection dialog. Always open hyperlinks in external web browser - + Odkazy vždy otevírat v externím webovém prohlížeči @@ -5289,22 +5302,22 @@ File filter for external e-mail selection dialog. &Add tool - + &Přidat nástroj &Edit selected tool - + Upravit &vybraný nástroj &Delete selected tool - + &Smazat vybraný nástroj On this page, you can setup a list of external tools which can open URLs. - + Na této stránce si můžete nakonfigurovat seznam externích nástrojů pro otevírání URL adres. @@ -5407,7 +5420,7 @@ File filter for external e-mail selection dialog. Note that switching to another data storage type will NOT copy existing your data from currently active data storage to newly selected one. - + Mějte na paměti, že přepnutí z jednoho databázového backendu na jiný neprovede zkopírování dat mezi těmito backendy. @@ -5422,7 +5435,17 @@ Disadvantages: • application startup and shutdown can take little longer (max. 2 seconds). Authors of this application are NOT responsible for lost data. - + Použití paměťové databáze má hned několik výhod a nevýhod. Před povolením této funkce se ujistětě, že se s nimi seznámíte. + +Výhody: + • vyšší rychlost při manipulaci se zprávami a kanály (obzvláště, pokud je zpráv hodně), + • celá databáze je uložená v RAM, tedy pevný disk může více odpočívat. + +Nevýhody: + • pokud aplikace zhavaruje, tak Vaše změny z posledního sezení budou ztraceny, + • start a vypnutí aplikace může trvat o něco déle (max. 2 vteřiny). + +Autoři této aplikace nenesou žádnou odpovědnost za ztrátu Vašich dat. @@ -5523,42 +5546,42 @@ Authors of this application are NOT responsible for lost data. Enter format for count of articles displayed next to each feed/category in feed list. Use "%all" and "%unread" strings which are placeholders for the actual count of all (or unread) articles. - + Zadejte formát pro čítače zpráv, které jsou zobrazeny u každého kanálu/kategorie. Použijte zástupné symboly "%all" a "%unread", které představují aktuální hodnoty čítačů. Note that enabling this might have drastic consequences on performance of article list with big number of articles. - + Aktivace této volby může mít zásadní negativní dopad na výkon seznamu zpráv, hlavně při velkém množství zpráv. days (turned off) - + dnů (vypnuto) day(s) - + dendnydnůdnů Feed fetching - + Stahování kanálů Fetch all articles on startup with initial delay of - + Při startu aplikace aktualizovat všechny kanály s úvodní prodlevou Auto-fetch articles for all feeds every - + Stáhnout všechny kanály každých Only auto-fetch articles if application is unfocused - + Automaticky stahovat kanály, jen pokud aplikace není na popředí @@ -5578,13 +5601,13 @@ Authors of this application are NOT responsible for lost data. Feeds list - + Seznam kanálů Row height - + Výška položky seznamu @@ -5608,22 +5631,22 @@ Authors of this application are NOT responsible for lost data. Article count format - + Formát počtu zpráv Hide article counts if there are no unread articles - + Skrýt počet zpráv, pokud je nulový Allow only basic keyboard shortcuts for feed/article list - + Povolit pouze základní klávesové zkratky Display tooltips for feeds and articles - + Zobrazovat tooltipy @@ -5633,12 +5656,12 @@ Authors of this application are NOT responsible for lost data. Remove all read articles from all feeds on application exit - + Vymazat všechny přečtené zprávy, když se aplikace vypíná Ignore changes in article body when new articles are being fetched - + Při aktualizaci zpráv ignorovat změny v těle zpráv @@ -5648,67 +5671,67 @@ Authors of this application are NOT responsible for lost data. Display attached pictures directly in article - + Obrazové přílohy zobrazovat přímo v náhledu zprávy Bring application window to front once article is opened in external web browser - + Při otevření zprávy v ext. webovém prohlížeči následně přepnout focus zpět na aplikaci Image attachments height - + Výška obrazových příloh Article browser font - + Písmo prohlížeče zpráv Articles list - + Seznam zpráv Display real icons of feeds instead of read/unread icons - + Zobrazovat skutečné ikony kanálů místo ikon (ne)přečteno Keep article selection in the middle of the article list viewport - + Udržovat výběr uprostřed seznamu kanálů Enable multiline items - + Povolit víceřádkové zobrazení Top/bottom row padding - + Horní/dolní padding textu v položkách Use custom date/time format - + Vlastní formát datumu Custom date/time format for today's articles - + Vlastní formát datumu pro dnešní zprávy Article list font - + Písmo seznamu zpráv Show relative time for articles not older than - + Zobrazit relativní čas pro zprávy ne starší než @@ -5726,7 +5749,7 @@ Authors of this application are NOT responsible for lost data. Check for %1 updates on application startup - + Kontrolovat aktualizace programu %1 po startu @@ -5750,7 +5773,8 @@ Authors of this application are NOT responsible for lost data. You cannot change style because it was explicitly selected in your OS settings. Perhaps it is set with 'QT_STYLE_OVERRIDE' environment variable? - + Style nelze změnit, protože byl explicitně nastaven v nastavení vašeho OS. +Možná že styl je nastaven přes proměnnou prostředí 'QT_STYLE_OVERRIDE'? @@ -5791,22 +5815,22 @@ Perhaps it is set with 'QT_STYLE_OVERRIDE' environment variable? (Your OS does not support tray icons at the moment.) - + (Váš OS nepodporuje tray ikonu.) You can override some colors defined by your skin here. Some colors are used dynamically throughout the application. - + Některé barvy skinu lze zde přenastavit. Fetch color from activated skin - + Načíst barvu z aktivního skinu. = default icon size - + = výchozí velikost ikony @@ -5831,22 +5855,22 @@ Perhaps it is set with 'QT_STYLE_OVERRIDE' environment variable? Force dark look (Fusion only) - + Vnutit tmavý vzhled (pouze Fusion) Custom skin colors - + Vlastní barvy Force custom skin colors - + Vynutit vlastní barvy Tray area - + Oznamovací oblast @@ -5861,7 +5885,7 @@ Perhaps it is set with 'QT_STYLE_OVERRIDE' environment variable? Display count of unread messages - + Zobrazit počet nepřečtených zpráv @@ -5916,7 +5940,7 @@ Perhaps it is set with 'QT_STYLE_OVERRIDE' environment variable? Toolbar for articles list - + Lišta seznamu zpráv @@ -5926,17 +5950,17 @@ Perhaps it is set with 'QT_STYLE_OVERRIDE' environment variable? Button style - + Styl tlačítek Toolbar editor - + Editor nástrojové lišty Icon size - + Velikost ikon @@ -6018,29 +6042,29 @@ Also, relaunch "Settings" dialog after you install Node.js. Node.js executable - + Spouštěč Node.js &Browse... - + &Procházet NPM executable - + Spouštěč NPM Package folder - + Složka s balíčky &Download Node.js - + &Stáhnout Node.js @@ -6050,12 +6074,14 @@ Also, relaunch "Settings" dialog after you install Node.js. You must have "tray icon" activated to have balloon notifications working. Also, there are some built-in sounds. Just start typing ":" and they will show up. - + Pro funkční notifikace je třeba mít povolenou tray ikonu. + +Jsou obsaženy zabudované zvuky, napište ":" a seznam se zobrazí. Enable notifications - + Povolit notifikace @@ -6081,7 +6107,7 @@ Also, there are some built-in sounds. Just start typing ":" and they w Select sound file - + Vybrat zvukový soubor @@ -6091,17 +6117,17 @@ Also, there are some built-in sounds. Just start typing ":" and they w Balloon notification - + Balónové notifikace Sound - + Zvuk Full path to your WAV sound file - + Plná cesta k souboru WAV @@ -6111,12 +6137,12 @@ Also, there are some built-in sounds. Just start typing ":" and they w &Play - + &Přehrát Volume - + Hlasitost @@ -6151,12 +6177,12 @@ Also, there are some built-in sounds. Just start typing ":" and they w Cannot save data for category, detailed information was logged via debug log. - + Data pro kategorii nelze uložit, více informaci najdete v ladícím logu. Cannot save category data - + Nelze uložit data kategorie @@ -6799,7 +6825,7 @@ Nepřečtené zprávy: %2 Close dialogs - + Zavřít dialogy diff --git a/resources/desktop/com.github.rssguard.appdata.xml b/resources/desktop/com.github.rssguard.appdata.xml index 85711a815..a8c4c69e6 100644 --- a/resources/desktop/com.github.rssguard.appdata.xml +++ b/resources/desktop/com.github.rssguard.appdata.xml @@ -26,7 +26,7 @@ https://github.com/sponsors/martinrotter - + none diff --git a/src/librssguard/gui/dialogs/formaddaccount.cpp b/src/librssguard/gui/dialogs/formaddaccount.cpp index 202aabf1a..b74b22515 100644 --- a/src/librssguard/gui/dialogs/formaddaccount.cpp +++ b/src/librssguard/gui/dialogs/formaddaccount.cpp @@ -16,8 +16,6 @@ FormAddAccount::FormAddAccount(const QList& entry_points, Fe : QDialog(parent), m_ui(new Ui::FormAddAccount), m_model(model), m_entryPoints(entry_points) { m_ui->setupUi(this); - GuiUtilities::applyResponsiveDialogResize(*this); - // Set flags and attributes. GuiUtilities::applyDialogProperties(*this, qApp->icons()->fromTheme(QSL("list-add"))); diff --git a/src/librssguard/gui/guiutilities.cpp b/src/librssguard/gui/guiutilities.cpp index 36d97e793..4faea8474 100644 --- a/src/librssguard/gui/guiutilities.cpp +++ b/src/librssguard/gui/guiutilities.cpp @@ -44,20 +44,6 @@ void GuiUtilities::applyDialogProperties(QWidget& widget, const QIcon& icon, con } } -void GuiUtilities::applyResponsiveDialogResize(QWidget& widget, double factor) { -#if defined(Q_OS_ANDROID) - auto desktop_geom = QApplication::desktop()->screenGeometry(); - auto ratio = double(widget.size().height()) / widget.size().width(); - int widt = desktop_geom.width() * factor; - int heig = widt * ratio; - - widget.resize(widt, heig); -#else - Q_UNUSED(factor) - Q_UNUSED(widget) -#endif -} - void GuiUtilities::restoreState(QWidget* wdg, QByteArray state) { QHash> props; QDataStream str(&state, QIODevice::OpenModeFlag::ReadOnly); diff --git a/src/librssguard/gui/guiutilities.h b/src/librssguard/gui/guiutilities.h index ec5bace6f..7f8061814 100644 --- a/src/librssguard/gui/guiutilities.h +++ b/src/librssguard/gui/guiutilities.h @@ -11,7 +11,6 @@ class GuiUtilities { public: static void setLabelAsNotice(QLabel& label, bool is_warning, bool set_margins = true); static void applyDialogProperties(QWidget& widget, const QIcon& icon = QIcon(), const QString& title = QString()); - static void applyResponsiveDialogResize(QWidget& widget, double factor = 0.6); static void restoreState(QWidget* wdg, QByteArray state); static QByteArray saveState(QWidget* wdg); diff --git a/src/librssguard/gui/reusable/networkproxydetails.cpp b/src/librssguard/gui/reusable/networkproxydetails.cpp index 6c93ac45f..ffab9aa92 100644 --- a/src/librssguard/gui/reusable/networkproxydetails.cpp +++ b/src/librssguard/gui/reusable/networkproxydetails.cpp @@ -8,25 +8,25 @@ NetworkProxyDetails::NetworkProxyDetails(QWidget* parent) : QWidget(parent) { m_ui.setupUi(this); - GuiUtilities::setLabelAsNotice(*m_ui.m_lblProxyInfo, false); + m_ui.m_lblProxyInfo->setHelpText(tr("Note that these settings are applied only on newly established connections."), false); m_ui.m_txtProxyPassword->setPasswordMode(true); - connect(m_ui.m_cmbProxyType, static_cast(&QComboBox::currentIndexChanged), this, - &NetworkProxyDetails::onProxyTypeChanged); + connect(m_ui.m_cmbProxyType, static_cast(&QComboBox::currentIndexChanged), + this, &NetworkProxyDetails::onProxyTypeChanged); m_ui.m_cmbProxyType->addItem(tr("No proxy"), QNetworkProxy::ProxyType::NoProxy); m_ui.m_cmbProxyType->addItem(tr("System proxy"), QNetworkProxy::ProxyType::DefaultProxy); m_ui.m_cmbProxyType->addItem(tr("Socks5"), QNetworkProxy::ProxyType::Socks5Proxy); m_ui.m_cmbProxyType->addItem(tr("Http"), QNetworkProxy::ProxyType::HttpProxy); - connect(m_ui.m_cmbProxyType, static_cast(&QComboBox::currentIndexChanged), this, - &NetworkProxyDetails::changed); + connect(m_ui.m_cmbProxyType, static_cast(&QComboBox::currentIndexChanged), + this, &NetworkProxyDetails::changed); connect(m_ui.m_txtProxyHost, &QLineEdit::textChanged, this, &NetworkProxyDetails::changed); connect(m_ui.m_txtProxyPassword, &QLineEdit::textChanged, this, &NetworkProxyDetails::changed); connect(m_ui.m_txtProxyUsername, &QLineEdit::textChanged, this, &NetworkProxyDetails::changed); - connect(m_ui.m_spinProxyPort, static_cast(&QSpinBox::valueChanged), this, - &NetworkProxyDetails::changed); + connect(m_ui.m_spinProxyPort, static_cast(&QSpinBox::valueChanged), + this, &NetworkProxyDetails::changed); } QNetworkProxy NetworkProxyDetails::proxy() const { diff --git a/src/librssguard/gui/reusable/networkproxydetails.ui b/src/librssguard/gui/reusable/networkproxydetails.ui index 4d883730d..207fc0572 100644 --- a/src/librssguard/gui/reusable/networkproxydetails.ui +++ b/src/librssguard/gui/reusable/networkproxydetails.ui @@ -120,17 +120,7 @@ - - - Note that these settings are applied only on newly established connections. - - - Qt::AlignCenter - - - true - - + @@ -189,6 +179,12 @@ QLineEdit
baselineedit.h
+ + HelpSpoiler + QWidget +
helpspoiler.h
+ 1 +
diff --git a/src/librssguard/gui/settings/settingsbrowsermail.cpp b/src/librssguard/gui/settings/settingsbrowsermail.cpp index f3ccd9d65..b39920e3a 100644 --- a/src/librssguard/gui/settings/settingsbrowsermail.cpp +++ b/src/librssguard/gui/settings/settingsbrowsermail.cpp @@ -241,7 +241,7 @@ ExternalTool SettingsBrowserMail::tweakExternalTool(const ExternalTool& tool) co bool ok; QString parameters = QInputDialog::getText(window(), tr("Enter parameters"), - tr("Enter (optional) parameters separated by \"%1\":").arg(QSL(EXECUTION_LINE_SEPARATOR)), + tr("Enter (optional) parameters:"), QLineEdit::EchoMode::Normal, tool.parameters(), &ok); @@ -265,6 +265,7 @@ void SettingsBrowserMail::editSelectedExternalTool() { try { ext_tool = tweakExternalTool(ext_tool); + m_ui->m_listTools->currentItem()->setText(0, ext_tool.executable()); m_ui->m_listTools->currentItem()->setText(1, ext_tool.parameters()); m_ui->m_listTools->currentItem()->setData(0, Qt::ItemDataRole::UserRole, QVariant::fromValue(ext_tool)); diff --git a/src/librssguard/gui/settings/settingsgui.cpp b/src/librssguard/gui/settings/settingsgui.cpp index bb04d3d86..4d9494593 100644 --- a/src/librssguard/gui/settings/settingsgui.cpp +++ b/src/librssguard/gui/settings/settingsgui.cpp @@ -50,7 +50,8 @@ SettingsGui::SettingsGui(Settings* settings, QWidget* parent) : SettingsPanel(se m_ui->m_checkForceDarkFusion->setVisible(qApp->skins()->isStyleGoodForDarkVariant(txt)); }); - connect(m_ui->m_cmbIconTheme, static_cast(&QComboBox::currentIndexChanged), this, &SettingsGui::requireRestart); + connect(m_ui->m_cmbIconTheme, static_cast(&QComboBox::currentIndexChanged), + this, &SettingsGui::requireRestart); connect(m_ui->m_cmbIconTheme, static_cast(&QComboBox::currentIndexChanged), this, &SettingsGui::dirtifySettings); connect(m_ui->m_treeSkins, &QTreeWidget::currentItemChanged, this, &SettingsGui::dirtifySettings); diff --git a/src/librssguard/gui/settings/settingsgui.ui b/src/librssguard/gui/settings/settingsgui.ui index e63b0b53e..044da1d98 100644 --- a/src/librssguard/gui/settings/settingsgui.ui +++ b/src/librssguard/gui/settings/settingsgui.ui @@ -429,18 +429,18 @@ - - ToolBarEditor - QWidget -
toolbareditor.h
- 1 -
HelpSpoiler QWidget
helpspoiler.h
1
+ + ToolBarEditor + QWidget +
toolbareditor.h
+ 1 +
m_tabUi diff --git a/src/librssguard/gui/systemtrayicon.cpp b/src/librssguard/gui/systemtrayicon.cpp index 26eb59d63..fdd28b63e 100644 --- a/src/librssguard/gui/systemtrayicon.cpp +++ b/src/librssguard/gui/systemtrayicon.cpp @@ -92,8 +92,8 @@ void SystemTrayIcon::show() { showPrivate(); } -void SystemTrayIcon::setNumber(int number, bool any_new_message) { - Q_UNUSED(any_new_message) +void SystemTrayIcon::setNumber(int number, bool any_feed_has_new_unread_messages) { + Q_UNUSED(any_feed_has_new_unread_messages) if (number <= 0 || !qApp->settings()->value(GROUP(GUI), SETTING(GUI::UnreadNumbersInTrayIcon)).toBool()) { // Either no unread messages or numbers in tray icon are disabled. diff --git a/src/librssguard/gui/systemtrayicon.h b/src/librssguard/gui/systemtrayicon.h index aa7e86473..6c195c07a 100644 --- a/src/librssguard/gui/systemtrayicon.h +++ b/src/librssguard/gui/systemtrayicon.h @@ -41,7 +41,7 @@ class SystemTrayIcon : public QSystemTrayIcon { virtual ~SystemTrayIcon(); // Sets the number to be visible in the tray icon, number <= 0 removes it. - void setNumber(int number = -1, bool any_new_message = false); + void setNumber(int number = -1, bool any_feed_has_new_unread_messages = false); void showMessage(const QString& title, const QString& message, MessageIcon icon = Information, int milliseconds_timeout_hint = TRAY_ICON_BUBBLE_TIMEOUT, const std::function& functor = nullptr); diff --git a/src/librssguard/miscellaneous/application.cpp b/src/librssguard/miscellaneous/application.cpp index a15317625..ef66a45a9 100644 --- a/src/librssguard/miscellaneous/application.cpp +++ b/src/librssguard/miscellaneous/application.cpp @@ -629,9 +629,9 @@ void Application::onAboutToQuit() { } } -void Application::showMessagesNumber(int unread_messages, bool any_feed_has_unread_messages) { +void Application::showMessagesNumber(int unread_messages, bool any_feed_has_new_unread_messages) { if (m_trayIcon != nullptr) { - m_trayIcon->setNumber(unread_messages, any_feed_has_unread_messages); + m_trayIcon->setNumber(unread_messages, any_feed_has_new_unread_messages); } #if defined(Q_OS_UNIX) && !defined(Q_OS_MACOS) @@ -652,6 +652,10 @@ void Application::showMessagesNumber(int unread_messages, bool any_feed_has_unre QDBusConnection::sessionBus().send(signal); #endif + + mainForm()->setWindowTitle(unread_messages > 0 + ? QSL("%1 (%2)").arg(QSL(APP_NAME), QString::number(unread_messages)) + : QSL(APP_NAME)); } void Application::restart() { diff --git a/src/librssguard/miscellaneous/application.h b/src/librssguard/miscellaneous/application.h index 78ebb02d0..9c23c13b2 100644 --- a/src/librssguard/miscellaneous/application.h +++ b/src/librssguard/miscellaneous/application.h @@ -177,7 +177,7 @@ class RSSGUARD_DLLSPEC Application : public SingleApplication { void onCommitData(QSessionManager& manager); void onSaveState(QSessionManager& manager); void onAboutToQuit(); - void showMessagesNumber(int unread_messages, bool any_feed_has_unread_messages); + void showMessagesNumber(int unread_messages, bool any_feed_has_new_unread_messages); #if defined(USE_WEBENGINE) #if QT_VERSION_MAJOR == 6