Changeset View
Changeset View
Standalone View
Standalone View
document/kpDocument_Selection.cpp
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Line(s) | 86 | { | |||
---|---|---|---|---|---|
95 | d->environ->switchToCompatibleTool (selection, &isTextChanged); | 95 | d->environ->switchToCompatibleTool (selection, &isTextChanged); | ||
96 | Q_ASSERT (m_selection == oldSelection); | 96 | Q_ASSERT (m_selection == oldSelection); | ||
97 | 97 | | |||
98 | 98 | | |||
99 | m_selection = selection.clone (); | 99 | m_selection = selection.clone (); | ||
100 | 100 | | |||
101 | // There's no need to uninitialize the old selection | 101 | // There's no need to uninitialize the old selection | ||
102 | // (e.g. call disconnect()) since we delete it later. | 102 | // (e.g. call disconnect()) since we delete it later. | ||
103 | connect (m_selection, SIGNAL (changed(QRect)), | 103 | connect (m_selection, &kpAbstractSelection::changed, | ||
104 | this, SLOT (slotContentsChanged(QRect))); | 104 | this, &kpDocument::slotContentsChanged); | ||
105 | 105 | | |||
106 | 106 | | |||
107 | // | 107 | // | ||
108 | // Now all kpDocument state has been set. | 108 | // Now all kpDocument state has been set. | ||
109 | // We can _only_ change the environment after that, as the environment | 109 | // We can _only_ change the environment after that, as the environment | ||
110 | // may access the document. Exception is above with | 110 | // may access the document. Exception is above with | ||
111 | // switchToCompatibleTool(). | 111 | // switchToCompatibleTool(). | ||
112 | // | 112 | // | ||
▲ Show 20 Lines • Show All 228 Lines • Show Last 20 Lines |