X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fuistyle.h;fp=src%2Fuisupport%2Fuistyle.h;h=b87e2211eaa939f77d89553812ccdc7fae33a315;hp=a50519c9f8dce4d304d01d96e9492c9f5d9bbdd7;hb=5e4bfcea8cf62cded326d385acd47528c1974b09;hpb=752237a05d424c132f51a0bba76dea84e2d72b81 diff --git a/src/uisupport/uistyle.h b/src/uisupport/uistyle.h index a50519c9..b87e2211 100644 --- a/src/uisupport/uistyle.h +++ b/src/uisupport/uistyle.h @@ -164,14 +164,17 @@ public: }; /// Display of sender prefix modes +#if QT_VERSION >= 0x050000 + enum class SenderPrefixMode { +#else enum SenderPrefixMode { +#endif NoModes = 0, ///< Hide sender modes HighestMode = 1, ///< Show the highest active sender mode AllModes = 2 ///< Show all active sender modes }; // Do not change SenderPrefixMode numbering without also adjusting // ChatViewSettingsPage::initSenderPrefixComboBox() and chatviewsettingspage.ui "defaultValue" - // TODO Qt5: Switch to "enum class" struct Format { FormatType type;