Changeset View
Changeset View
Standalone View
Standalone View
src/core/room.cpp
Show First 20 Lines • Show All 437 Lines • ▼ Show 20 Line(s) | 437 | { | |||
---|---|---|---|---|---|
438 | if (mReadOnly != readOnly) { | 438 | if (mReadOnly != readOnly) { | ||
439 | mReadOnly = readOnly; | 439 | mReadOnly = readOnly; | ||
440 | Q_EMIT readOnlyChanged(); | 440 | Q_EMIT readOnlyChanged(); | ||
441 | } | 441 | } | ||
442 | } | 442 | } | ||
443 | 443 | | |||
444 | QString Room::topic() const | 444 | QString Room::topic() const | ||
445 | { | 445 | { | ||
446 | return Utils::convertTextWithUrl(mTopic); | 446 | return Utils::markdownToRichText(mTopic); | ||
447 | } | 447 | } | ||
448 | 448 | | |||
449 | void Room::setTopic(const QString &topic) | 449 | void Room::setTopic(const QString &topic) | ||
450 | { | 450 | { | ||
451 | if (mTopic != topic) { | 451 | if (mTopic != topic) { | ||
452 | mTopic = topic; | 452 | mTopic = topic; | ||
453 | Q_EMIT topicChanged(); | 453 | Q_EMIT topicChanged(); | ||
454 | } | 454 | } | ||
Show All 22 Lines | 476 | { | |||
477 | if (mChannelType != channelType) { | 477 | if (mChannelType != channelType) { | ||
478 | mChannelType = channelType; | 478 | mChannelType = channelType; | ||
479 | Q_EMIT channelTypeChanged(); | 479 | Q_EMIT channelTypeChanged(); | ||
480 | } | 480 | } | ||
481 | } | 481 | } | ||
482 | 482 | | |||
483 | QString Room::markdownAnnouncement() const | 483 | QString Room::markdownAnnouncement() const | ||
484 | { | 484 | { | ||
485 | return Utils::convertTextWithUrl(Utils::markdownToRichText(mAnnouncement)); | 485 | return Utils::markdownToRichText(mAnnouncement); | ||
486 | } | 486 | } | ||
487 | 487 | | |||
488 | QString Room::announcement() const | 488 | QString Room::announcement() const | ||
489 | { | 489 | { | ||
490 | return mAnnouncement; | 490 | return mAnnouncement; | ||
491 | } | 491 | } | ||
492 | 492 | | |||
493 | void Room::setAnnouncement(const QString &announcement) | 493 | void Room::setAnnouncement(const QString &announcement) | ||
▲ Show 20 Lines • Show All 663 Lines • Show Last 20 Lines |