return _formatCodes.key(ftype);
}
-UiStyle::StyledText UiStyle::styleString(QString s) {
- // FIXME
- // The following two lines fix garbled fonts for me. I have no effing clue how or why.
- // Without comparing s to something (anything), invalid formats with negative lengths are created...
- // This smells like a gcc/Qt error or something, but maybe it's my fault somehow.
- bool flg = (s == "foo");
- Q_UNUSED(flg);
+UiStyle::StyledText UiStyle::styleString(const QString &_s) {
+ QString s = _s; // we can't use call-by-value since this seems to maybe screw up Qt's implicit sharing somehow
+ // at least invalid formats are created if we do that
StyledText result;
QList<FormatType> fmtList;
QList<UrlInfo> urls;
};
- StyledText styleString(QString);
+ StyledText styleString(const QString &);
void setFormat(FormatType, QTextCharFormat, Settings::Mode mode/* = Settings::Custom*/);
QTextCharFormat format(FormatType, Settings::Mode mode = Settings::Custom) const;
{ using namespace Global;
quasselVersion = "0.2.0-alpha4-pre";
- quasselDate = "2008-03-18";
- quasselBuild = 649;
+ quasselDate = "2008-03-20";
+ quasselBuild = 651;
//! Minimum client build number the core needs
clientBuildNeeded = 642;