Skip to content
Commit c6ff9f8e authored by Jakob Petsovits's avatar Jakob Petsovits
Browse files

Introduce powerdevilenums.h, replacing two synchronized enum types

SuspendSession as well as ProfileGenerator both had an enum
called Mode (or Modes) with the same enum names and values.

This commit takes PowerDevilEnums from Tomaz Canabrava's unmerged
MR !71, with slight tweaks for better naming, and replaces both of
the original enum declarations and uses with the new
PowerDevil::PowerButtonAction.

In addition to a central place for shared enum declarations,
this class allows for later QML integration via Q_ENUM_NS() macro.
parent 0a3da45f
Pipeline #453435 passed with stage
in 1 minute and 46 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment