MCPcopy Create free account
hub / github.com/KDE/kdevelop / PartController

Method PartController

kdevplatform/shell/partcontroller.cpp:61–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59};
60
61PartController::PartController(Core *core, QWidget *toplevel)
62 : IPartController(toplevel)
63 , d_ptr(new PartControllerPrivate(core))
64
65{
66 setObjectName(QStringLiteral("PartController"));
67
68 //Cache this as it is too expensive when creating parts
69 // KConfig * config = Config::standard();
70 // config->setGroup( "General" );
71 //
72 // d->m_textTypes = config->readEntry( "TextTypes", QStringList() );
73 //
74 // config ->setGroup( "Editor" );
75 // d->m_editor = config->readPathEntry( "EmbeddedKTextEditor", QString() );
76
77 // required early because some actions are checkable and need to be initialized
78 loadSettings(false);
79
80 if (!(Core::self()->setupFlags() & Core::NoUi))
81 setupActions();
82}
83
84PartController::~PartController() = default;
85

Callers

nothing calls this directly

Calls 1

setupFlagsMethod · 0.80

Tested by

no test coverage detected