Make QCalendarDateSectionValidator::highlightString() static

Change-Id: Ib52b41ef8e905d9946032448da9d3b312de7071d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
This commit is contained in:
Marc Mutz 2014-09-13 13:39:08 +02:00
parent 7ee74f870b
commit a5e987bca9

View File

@ -86,11 +86,11 @@ public:
QLocale m_locale;
protected:
QString highlightString(const QString &str, int pos) const;
static QString highlightString(const QString &str, int pos);
private:
};
QString QCalendarDateSectionValidator::highlightString(const QString &str, int pos) const
QString QCalendarDateSectionValidator::highlightString(const QString &str, int pos)
{
if (pos == 0)
return QLatin1String("<b>") + str + QLatin1String("</b>");