Changeset View
Changeset View
Standalone View
Standalone View
autotests/src/kateview_test.cpp
Show First 20 Lines • Show All 171 Lines • ▼ Show 20 Line(s) | 163 | { | |||
---|---|---|---|---|---|
172 | 172 | | |||
173 | QCOMPARE(doc.text(), QString("ny\nnyy\n")); | 173 | QCOMPARE(doc.text(), QString("ny\nnyy\n")); | ||
174 | } | 174 | } | ||
175 | 175 | | |||
176 | namespace | 176 | namespace | ||
177 | { | 177 | { | ||
178 | QWidget *findViewInternal(KTextEditor::View* view) | 178 | QWidget *findViewInternal(KTextEditor::View* view) | ||
179 | { | 179 | { | ||
180 | foreach (QObject* child, view->children()) { | 180 | for (QObject* child : view->children()) { | ||
181 | if (child->metaObject()->className() == QByteArrayLiteral("KateViewInternal")) { | 181 | if (child->metaObject()->className() == QByteArrayLiteral("KateViewInternal")) { | ||
182 | return qobject_cast<QWidget*>(child); | 182 | return qobject_cast<QWidget*>(child); | ||
183 | } | 183 | } | ||
184 | } | 184 | } | ||
185 | return nullptr; | 185 | return nullptr; | ||
186 | } | 186 | } | ||
187 | } | 187 | } | ||
188 | 188 | | |||
▲ Show 20 Lines • Show All 344 Lines • Show Last 20 Lines |