mirror of
https://github.com/Chatterino/chatterino2.git
synced 2026-08-24 02:24:18 -05:00
fix: add missing ellipsis to menu items that open dialogs (#6858)
Added missing ellipsis (…) to menu items that open a dialog requiring user input, following standard HIG conventions. Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com> Tested-by: voiceofgrog
This commit is contained in:
co-authored by
Rasmus Karlsson
parent
1ab17263a0
commit
f6be3003ed
@@ -36,6 +36,8 @@
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
|
||||
namespace chatterino {
|
||||
namespace {
|
||||
// Translates the given rectangle by an amount in the direction to appear like the tab is selected.
|
||||
@@ -116,7 +118,7 @@ NotebookTab::NotebookTab(Notebook *notebook)
|
||||
|
||||
this->setMouseTracking(true);
|
||||
|
||||
this->menu_.addAction("Rename Tab", [this]() {
|
||||
this->menu_.addAction(u"Rename Tab…"_s, this, [this]() {
|
||||
this->showRenameDialog();
|
||||
});
|
||||
|
||||
|
||||
@@ -45,6 +45,8 @@
|
||||
|
||||
#include <cmath>
|
||||
|
||||
using namespace Qt::StringLiterals;
|
||||
|
||||
namespace {
|
||||
|
||||
using namespace chatterino;
|
||||
@@ -471,12 +473,12 @@ std::unique_ptr<QMenu> SplitHeader::createMainMenu()
|
||||
"Popup overlay",
|
||||
h->getDisplaySequence(HotkeyCategory::Split, "popupOverlay"),
|
||||
this->split_, &Split::showOverlayWindow);
|
||||
menu->addAction("Search",
|
||||
menu->addAction(u"Search…"_s,
|
||||
h->getDisplaySequence(HotkeyCategory::Split, "showSearch"),
|
||||
this->split_, [this] {
|
||||
this->split_->showSearch(true);
|
||||
});
|
||||
menu->addAction("Set filters",
|
||||
menu->addAction(u"Set filters…"_s,
|
||||
h->getDisplaySequence(HotkeyCategory::Split, "pickFilters"),
|
||||
this->split_, &Split::setFiltersDialog);
|
||||
menu->addSeparator();
|
||||
|
||||
Reference in New Issue
Block a user