Add clang support.
This commit is contained in:
parent
3fad113178
commit
e559f9674d
27 changed files with 84 additions and 63 deletions
|
@ -36,7 +36,7 @@ void TextEditorView::initialize()
|
|||
saveButton->setBackground(Theme::Sys::Color::Primary);
|
||||
saveButton->setMargin(2);
|
||||
auto onSave = [this](Widget* self){
|
||||
if(this && mController && mTextBox)
|
||||
if(mController && mTextBox)
|
||||
{
|
||||
mController->SetContent(mTextBox->getContent());
|
||||
mController->OnSave();
|
||||
|
@ -48,7 +48,7 @@ void TextEditorView::initialize()
|
|||
clearButton->setLabel("Clear");
|
||||
clearButton->setMargin(2);
|
||||
auto onClear = [this](Widget* self){
|
||||
if(this && mController && mTextBox)
|
||||
if(mController && mTextBox)
|
||||
{
|
||||
mController->OnClear();
|
||||
mTextBox->setContent("");
|
||||
|
@ -60,7 +60,7 @@ void TextEditorView::initialize()
|
|||
loadButton->setLabel("Load");
|
||||
loadButton->setMargin(2);
|
||||
auto onLoad = [this](Widget* self){
|
||||
if(this && mController && mTextBox)
|
||||
if(mController && mTextBox)
|
||||
{
|
||||
mController->OnLoad();
|
||||
mTextBox->setContent(mController->GetContent());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue