X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fuisettings.cpp;h=9da5987af9ecb12e06c58f8689a01fba1062c755;hp=80d8fede394150ee70fa838035a675cf0eb454fa;hb=ac7a58dd970833da2336f6ce035ec55515bac0f1;hpb=b65b9f7615165e8700a44d59b7275a55558dd45b diff --git a/src/uisupport/uisettings.cpp b/src/uisupport/uisettings.cpp index 80d8fede..9da5987a 100644 --- a/src/uisupport/uisettings.cpp +++ b/src/uisupport/uisettings.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2016 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -39,19 +39,19 @@ UiStyleSettings::UiStyleSettings(const QString &subGroup) : UiSettings(QString(" void UiStyleSettings::setCustomFormat(UiStyle::FormatType ftype, QTextCharFormat format) { - setLocalValue(QString("Format/%1").arg(ftype), format); + setLocalValue(QString("Format/%1").arg(static_cast(ftype)), format); } QTextCharFormat UiStyleSettings::customFormat(UiStyle::FormatType ftype) { - return localValue(QString("Format/%1").arg(ftype), QTextFormat()).value().toCharFormat(); + return localValue(QString("Format/%1").arg(static_cast(ftype)), QTextFormat()).value().toCharFormat(); } void UiStyleSettings::removeCustomFormat(UiStyle::FormatType ftype) { - removeLocalKey(QString("Format/%1").arg(ftype)); + removeLocalKey(QString("Format/%1").arg(static_cast(ftype))); }