/***************************************************************************
- * Copyright (C) 2005/06 by The Quassel Team *
+ * Copyright (C) 2005-07 by The Quassel Team *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
public:
static void init();
- struct StringFormats {
+ struct UrlInfo {
+ int start, end;
+ QUrl url;
+ };
+
+ struct FormattedString {
QString text;
QList<QTextLayout::FormatRange> formats;
+ QList<UrlInfo> urls;
};
static QString mircToInternal(QString);
//static QString internalToMirc(QString);
- static StringFormats internalToFormatted(QString);
+ static FormattedString internalToFormatted(QString);
static int sepTsSender() { return 10; }
static int sepSenderText() { return 10; }