Changeset View
Changeset View
Standalone View
Standalone View
src/utils/kateconfig.cpp
Show First 20 Lines • Show All 746 Lines • ▼ Show 20 Line(s) | |||||
747 | { | 747 | { | ||
748 | if (m_showSpacesSet || isGlobal()) { | 748 | if (m_showSpacesSet || isGlobal()) { | ||
749 | return m_showSpaces; | 749 | return m_showSpaces; | ||
750 | } | 750 | } | ||
751 | 751 | | |||
752 | return s_global->showSpaces(); | 752 | return s_global->showSpaces(); | ||
753 | } | 753 | } | ||
754 | 754 | | |||
755 | void KateDocumentConfig::setShowAllSpaces(bool on) | ||||
756 | { | ||||
757 | if (m_showAllSpacesSet && m_showAllSpaces == on) { | ||||
758 | return; | ||||
759 | } | ||||
760 | | ||||
761 | configStart(); | ||||
762 | | ||||
763 | m_showAllSpacesSet = true; | ||||
764 | m_showAllSpaces = on; | ||||
765 | | ||||
766 | configEnd(); | ||||
767 | } | ||||
768 | | ||||
769 | bool KateDocumentConfig::showAllSpaces() const | ||||
770 | { | ||||
771 | if (m_showAllSpacesSet || isGlobal()) { | ||||
772 | return m_showAllSpaces; | ||||
773 | } | ||||
774 | | ||||
775 | return s_global->showAllSpaces(); | ||||
776 | } | ||||
777 | | ||||
755 | void KateDocumentConfig::setMarkerSize(uint markerSize) | 778 | void KateDocumentConfig::setMarkerSize(uint markerSize) | ||
756 | { | 779 | { | ||
757 | if (m_markerSize == markerSize) { | 780 | if (m_markerSize == markerSize) { | ||
758 | return; | 781 | return; | ||
759 | } | 782 | } | ||
760 | 783 | | |||
761 | configStart(); | 784 | configStart(); | ||
762 | 785 | | |||
▲ Show 20 Lines • Show All 2430 Lines • Show Last 20 Lines |