Skip to content

Commit

Permalink
Add menu option for long info message
Browse files Browse the repository at this point in the history
  • Loading branch information
kraxarn committed Aug 10, 2024
1 parent d0151f1 commit a767c27
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/menu/developermenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,17 @@ auto DeveloperMenu::statusMenu() -> QMenu *
});
});

addMenuItem(menu, QStringLiteral("Information with long message"), []()
{
const auto text = QStringLiteral(
"This is a very long informational message just to make sure that "
"messages can be very long without breaking the layout of the "
"application or causing other elements to resize"
);

StatusMessage::show(MessageType::Information, text);
});

addMenuItem(menu, "Warning", []()
{
StatusMessage::show(MessageType::Warning, "Warning");
Expand Down

0 comments on commit a767c27

Please sign in to comment.