Skip to content

Commit

Permalink
Added missing Q_OBJECT macro to ActionsModel
Browse files Browse the repository at this point in the history
This probably fixes the translations for the header in the shortcut
settings, since without this macro the 'tr' calls would use the wrong
context.

Found due to a warning from lupdate.
  • Loading branch information
bjorn committed May 27, 2020
1 parent 15459e6 commit b971be6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tiled/shortcutsettingspage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ namespace Tiled {
*/
class ActionsModel : public QAbstractListModel
{
Q_OBJECT

public:
enum UserRoles {
HasCustomShortcut = Qt::UserRole,
Expand Down

0 comments on commit b971be6

Please sign in to comment.