#ifndef _UISTYLE_H_
#define _UISTYLE_H_
-#ifndef SPUTDEV
-# include "old-uistyle.h"
-#else
-
#include <QDataStream>
#include <QTextCharFormat>
#include <QTextLayout>
UiStyle(const QString &settingsKey);
virtual ~UiStyle();
- typedef QList<QPair<int, quint32> > FormatList;
+ typedef QList<QPair<quint16, quint32> > FormatList;
//! This enumerates the possible formats a text element may have. */
/** These formats are ordered on increasing importance, in cases where a given property is specified
};
struct StyledString {
- QString text;
- FormatList formats; // starting pos, ftypes
+ QString plainText;
+ FormatList formatList; // starting pos, ftypes
};
struct StyledMessage {
StyledString timestamp;
StyledString sender;
- StyledString text;
+ StyledString contents;
};
StyledString styleString(const QString &);
Q_DECLARE_METATYPE(UiStyle::FormatList);
-#endif // SPUTDEV
#endif