Changeset View
Changeset View
Standalone View
Standalone View
kate/kateviewmanager.cpp
Show First 20 Lines • Show All 1015 Lines • ▼ Show 20 Line(s) | 1004 | { | |||
---|---|---|---|---|---|
1016 | qDeleteAll(m_viewSpaceList); | 1016 | qDeleteAll(m_viewSpaceList); | ||
1017 | m_viewSpaceList.clear(); | 1017 | m_viewSpaceList.clear(); | ||
1018 | 1018 | | |||
1019 | /** | 1019 | /** | ||
1020 | * delete mapping of now deleted views | 1020 | * delete mapping of now deleted views | ||
1021 | */ | 1021 | */ | ||
1022 | m_views.clear(); | 1022 | m_views.clear(); | ||
1023 | 1023 | | |||
1024 | /** | ||||
1025 | * kill all previous existing sub-splitters, just to be sure | ||||
1026 | * e.g. important if one restores a config in an existing window with some splitters | ||||
1027 | */ | ||||
1028 | while (count() > 0) { | ||||
1029 | delete widget(0); | ||||
1030 | } | ||||
1031 | | ||||
1024 | // reset lru history, too! | 1032 | // reset lru history, too! | ||
1025 | m_minAge = 0; | 1033 | m_minAge = 0; | ||
1026 | 1034 | | |||
1027 | // start recursion for the root splitter (Splitter 0) | 1035 | // start recursion for the root splitter (Splitter 0) | ||
1028 | restoreSplitter(config.config(), config.name() + QStringLiteral("-Splitter 0"), this, config.name()); | 1036 | restoreSplitter(config.config(), config.name() + QStringLiteral("-Splitter 0"), this, config.name()); | ||
1029 | 1037 | | |||
1030 | // finally, make the correct view from the last session active | 1038 | // finally, make the correct view from the last session active | ||
1031 | int lastViewSpace = config.readEntry("Active ViewSpace", 0); | 1039 | int lastViewSpace = config.readEntry("Active ViewSpace", 0); | ||
▲ Show 20 Lines • Show All 204 Lines • Show Last 20 Lines |