| 59 | }; |
| 60 | |
| 61 | PartController::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 | |
| 84 | PartController::~PartController() = default; |
| 85 |
nothing calls this directly
no test coverage detected