Changeset View
Changeset View
Standalone View
Standalone View
src/kmime_headers.cpp
Show First 20 Lines • Show All 1674 Lines • ▼ Show 20 Line(s) | 1670 | QByteArray ContentType::subType() const { | |||
---|---|---|---|---|---|
1675 | } else { | 1675 | } else { | ||
1676 | return d->mimeType.mid(pos + 1); | 1676 | return d->mimeType.mid(pos + 1); | ||
1677 | } | 1677 | } | ||
1678 | } | 1678 | } | ||
1679 | 1679 | | |||
1680 | void ContentType::setMimeType(const QByteArray & mimeType) { | 1680 | void ContentType::setMimeType(const QByteArray & mimeType) { | ||
1681 | Q_D(ContentType); | 1681 | Q_D(ContentType); | ||
1682 | d->mimeType = mimeType; | 1682 | d->mimeType = mimeType; | ||
1683 | Parametrized::clear(); | | |||
1684 | 1683 | | |||
1685 | if (isMultipart()) { | 1684 | if (isMultipart()) { | ||
1686 | d->category = CCcontainer; | 1685 | d->category = CCcontainer; | ||
1687 | } else { | 1686 | } else { | ||
1688 | d->category = CCsingle; | 1687 | d->category = CCsingle; | ||
1689 | } | 1688 | } | ||
1690 | } | 1689 | } | ||
1691 | 1690 | | |||
▲ Show 20 Lines • Show All 468 Lines • Show Last 20 Lines |