/***************************************************************************
- * Copyright (C) 2005-2018 by the Quassel Project *
+ * Copyright (C) 2005-2019 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
return LabelFormat{f.first, f.second, itemLabel};
});
// Append dummy element to avoid special-casing handling the last real format
- labelFmtList.push_back(LabelFormat{quint16(data(MessageModel::DisplayRole).toString().length()), {}, itemLabel});
+ labelFmtList.push_back(LabelFormat{quint16(data(MessageModel::DisplayRole).toString().length()), Format(), itemLabel});
// Apply the given label to the given range in the format list, splitting formats as necessary
auto applyLabel = [&labelFmtList](quint16 start, quint16 end, Label label) {