Changeset View
Changeset View
Standalone View
Standalone View
kdevplatform/sublime/urldocument.cpp
Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Line(s) | |||||
85 | QIcon UrlDocument::defaultIcon() const | 85 | QIcon UrlDocument::defaultIcon() const | ||
86 | { | 86 | { | ||
87 | return QIcon::fromTheme(KIO::iconNameForUrl(d->url)); | 87 | return QIcon::fromTheme(KIO::iconNameForUrl(d->url)); | ||
88 | } | 88 | } | ||
89 | 89 | | |||
90 | QString UrlDocument::title(TitleType type) const | 90 | QString UrlDocument::title(TitleType type) const | ||
91 | { | 91 | { | ||
92 | if (type == Extended) | 92 | if (type == Extended) | ||
93 | return Document::title() + " (" + url().toDisplayString(QUrl::PreferLocalFile) + ')'; | 93 | return Document::title() + QLatin1String(" (") + url().toDisplayString(QUrl::PreferLocalFile) + QLatin1Char(')'); | ||
94 | else | 94 | else | ||
95 | return Document::title(); | 95 | return Document::title(); | ||
96 | } | 96 | } | ||
97 | 97 | | |||
98 | } | 98 | } |