Skip to content

Commit

Permalink
Improve tooltips texts (#2377)
Browse files Browse the repository at this point in the history
* Adds links to sponsors in README

* Adds AnonAddy to the sponsor list

* minor modification on the tooltip text of some config options

* adds tooltip text for magnifier config options

* clang-format
  • Loading branch information
mmahmoudian authored Feb 6, 2022
1 parent 597d552 commit 3c2a2f9
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions src/config/generalconf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ void GeneralConf::initShowHelp()
{
m_helpMessage = new QCheckBox(tr("Show help message"), this);
m_helpMessage->setToolTip(tr("Show the help message at the beginning "
"in the capture mode."));
"in the capture mode"));
m_scrollAreaLayout->addWidget(m_helpMessage);

connect(
Expand All @@ -239,7 +239,7 @@ void GeneralConf::initShowSidePanelButton()
{
m_sidePanelButton = new QCheckBox(tr("Show the side panel button"), this);
m_sidePanelButton->setToolTip(
tr("Show the side panel toggle button in the capture mode."));
tr("Show the side panel toggle button in the capture mode"));
m_scrollAreaLayout->addWidget(m_sidePanelButton);

connect(m_sidePanelButton,
Expand All @@ -251,7 +251,7 @@ void GeneralConf::initShowSidePanelButton()
void GeneralConf::initShowDesktopNotification()
{
m_sysNotifications = new QCheckBox(tr("Show desktop notifications"), this);
m_sysNotifications->setToolTip(tr("Show desktop notifications"));
m_sysNotifications->setToolTip(tr("Enable desktop notifications"));
m_scrollAreaLayout->addWidget(m_sysNotifications);

connect(m_sysNotifications,
Expand All @@ -264,7 +264,7 @@ void GeneralConf::initShowTrayIcon()
{
#if defined(Q_OS_LINUX) || defined(Q_OS_UNIX)
m_showTray = new QCheckBox(tr("Show tray icon"), this);
m_showTray->setToolTip(tr("Show the systemtray icon"));
m_showTray->setToolTip(tr("Show icon in the system tray"));
m_scrollAreaLayout->addWidget(m_showTray);

connect(m_showTray, &QCheckBox::clicked, this, [](bool checked) {
Expand All @@ -279,7 +279,7 @@ void GeneralConf::initHistoryConfirmationToDelete()
tr("Confirmation required to delete screenshot from the latest uploads"),
this);
m_historyConfirmationToDelete->setToolTip(
tr("Confirmation required to delete screenshot from the latest uploads"));
tr("Ask for confirmation to delete screenshot from the latest uploads"));
m_scrollAreaLayout->addWidget(m_historyConfirmationToDelete);

connect(m_historyConfirmationToDelete,
Expand Down Expand Up @@ -321,7 +321,7 @@ void GeneralConf::initConfigButtons()
void GeneralConf::initCheckForUpdates()
{
m_checkForUpdates = new QCheckBox(tr("Automatic check for updates"), this);
m_checkForUpdates->setToolTip(tr("Automatic check for updates"));
m_checkForUpdates->setToolTip(tr("Check for updates automatically"));
m_scrollAreaLayout->addWidget(m_checkForUpdates);

connect(m_checkForUpdates,
Expand All @@ -335,7 +335,7 @@ void GeneralConf::initAllowMultipleGuiInstances()
m_allowMultipleGuiInstances = new QCheckBox(
tr("Allow multiple flameshot GUI instances simultaneously"), this);
m_allowMultipleGuiInstances->setToolTip(tr(
"This allows you to take screenshots of flameshot itself for example."));
"This allows you to take screenshots of Flameshot itself for example"));
m_scrollAreaLayout->addWidget(m_allowMultipleGuiInstances);
connect(m_allowMultipleGuiInstances,
&QCheckBox::clicked,
Expand All @@ -359,7 +359,8 @@ void GeneralConf::initAutoCloseIdleDaemon()
void GeneralConf::initAutostart()
{
m_autostart = new QCheckBox(tr("Launch at startup"), this);
m_autostart->setToolTip(tr("Launch Flameshot"));
m_autostart->setToolTip(
tr("Launch Flameshot daemon when computer is booted"));
m_scrollAreaLayout->addWidget(m_autostart);

connect(
Expand All @@ -372,7 +373,8 @@ void GeneralConf::initShowStartupLaunchMessage()
new QCheckBox(tr("Show welcome message on launch"), this);
ConfigHandler config;
m_showStartupLaunchMessage->setToolTip(
tr("Show welcome message on launch"));
tr("Show the welcome message box in the middle of the screen while "
"taking a screenshot"));
m_scrollAreaLayout->addWidget(m_showStartupLaunchMessage);

connect(m_showStartupLaunchMessage, &QCheckBox::clicked, [](bool checked) {
Expand All @@ -385,7 +387,7 @@ void GeneralConf::initPredefinedColorPaletteLarge()
m_predefinedColorPaletteLarge =
new QCheckBox(tr("Use large predefined color palette"), this);
m_predefinedColorPaletteLarge->setToolTip(
tr("Use large predefined color palette"));
tr("Use a large predefined color palette"));
m_scrollAreaLayout->addWidget(m_predefinedColorPaletteLarge);

connect(
Expand All @@ -399,7 +401,7 @@ void GeneralConf::initCopyAndCloseAfterUpload()
m_copyAndCloseAfterUpload =
new QCheckBox(tr("Copy URL after upload"), this);
m_copyAndCloseAfterUpload->setToolTip(
tr("Copy URL and close window after upload"));
tr("Copy URL and close window after uploading was successful"));
m_scrollAreaLayout->addWidget(m_copyAndCloseAfterUpload);

connect(m_copyAndCloseAfterUpload, &QCheckBox::clicked, [](bool checked) {
Expand All @@ -410,7 +412,8 @@ void GeneralConf::initCopyAndCloseAfterUpload()
void GeneralConf::initSaveAfterCopy()
{
m_saveAfterCopy = new QCheckBox(tr("Save image after copy"), this);
m_saveAfterCopy->setToolTip(tr("Save image file after copying it"));
m_saveAfterCopy->setToolTip(
tr("After copying the screenshot, save it to a file as well"));
m_scrollAreaLayout->addWidget(m_saveAfterCopy);
connect(m_saveAfterCopy,
&QCheckBox::clicked,
Expand Down Expand Up @@ -569,7 +572,8 @@ void GeneralConf::changeSavePath()
void GeneralConf::initCopyPathAfterSave()
{
m_copyPathAfterSave = new QCheckBox(tr("Copy file path after save"), this);
m_copyPathAfterSave->setToolTip(tr("Copy file path after save"));
m_copyPathAfterSave->setToolTip(tr("Copy the file path to clipboard after "
"the file is saved"));
m_scrollAreaLayout->addWidget(m_copyPathAfterSave);
connect(m_copyPathAfterSave, &QCheckBox::clicked, [](bool checked) {
ConfigHandler().setCopyPathAfterSave(checked);
Expand Down Expand Up @@ -629,6 +633,9 @@ const QString GeneralConf::chooseFolder(const QString pathDefault)
void GeneralConf::initShowMagnifier()
{
m_showMagnifier = new QCheckBox(tr("Show magnifier"), this);
m_showMagnifier->setToolTip(tr("Enable a magnifier while selecting the "
"screenshot area"));

m_scrollAreaLayout->addWidget(m_showMagnifier);
connect(m_showMagnifier, &QCheckBox::clicked, [](bool checked) {
ConfigHandler().setShowMagnifier(checked);
Expand All @@ -638,6 +645,7 @@ void GeneralConf::initShowMagnifier()
void GeneralConf::initSquareMagnifier()
{
m_squareMagnifier = new QCheckBox(tr("Square shaped magnifier"), this);
m_squareMagnifier->setToolTip(tr("Make the magnifier to be square-shaped"));
m_scrollAreaLayout->addWidget(m_squareMagnifier);
connect(m_squareMagnifier, &QCheckBox::clicked, [](bool checked) {
ConfigHandler().setSquareMagnifier(checked);
Expand Down

0 comments on commit 3c2a2f9

Please sign in to comment.