MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / FileEditor

Method FileEditor

3rdparty/unioncode-GitQlient/src/diff/FileEditor.cpp:10–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8#include <QMessageBox>
9
10FileEditor::FileEditor(bool highlighter, QWidget *parent)
11 : QFrame(parent)
12 , mFileEditor(new FileDiffEditor())
13{
14 if (highlighter)
15 mHighlighter = new Highlighter(mFileEditor->document());
16
17 const auto layout = new QVBoxLayout(this);
18 layout->setContentsMargins(QMargins());
19 layout->setSpacing(0);
20 layout->addWidget(mFileEditor);
21}
22
23void FileEditor::editFile(const QString &fileName)
24{

Callers

nothing calls this directly

Calls 2

documentMethod · 0.45
addWidgetMethod · 0.45

Tested by

no test coverage detected