changePasswordButton.setText(dgetText("IDS_ST_BUTTON_CHANGE_PASSWORD_ABB2"));
changePasswordButton.onClick = [this](void *) {
- passwordChange.reset(new PasswordChange(this));
+ passwordChange.reset(new PasswordChange(frame));
passwordChange->show();
};
content->setContent("password_button", &changePasswordButton);
createButton.setText(dgetText("IDS_ST_BUTTON_CREATE_PASSWORD"));
createButton.setStyle("auto_expand");
createButton.onClick = [this](void *) {
- password.reset(new PasswordCreate(this));
+ password.reset(new PasswordCreate(frame));
password->onResult.connect(this, &EncryptSDCardCheck::passwordResultCallback);
password->show();
};
changeButton.setText(dgetText("IDS_ST_BUTTON_CHANGE_PW_ABB"));
changeButton.onClick = [this](void *) {
- password.reset(new PasswordChange(this));
+ password.reset(new PasswordChange(frame));
password->onResult.connect(this, &EncryptSDCardCheck::passwordResultCallback);
password->show();
};
deleteButton.setText(dgetText("IDS_ST_BUTTON_DELETE_PW_ABB"));
deleteButton.onClick = [this](void *) {
- password.reset(new PasswordDelete(this));
+ password.reset(new PasswordDelete(frame));
password->onResult.connect(this, &EncryptSDCardCheck::passwordResultCallback);
password->show();
};
#include "page.h"
Page::Page(Widget *parent, const std::string &name, int type)
- : Layout(parent), nextButton(nullptr), prevButton(nullptr), content(nullptr), bottom(nullptr)
+ : Layout(parent), nextButton(nullptr), prevButton(nullptr), content(nullptr), bottom(nullptr), frame(parent)
{
setEDJPath("org.tizen.ode.edj");
setFile(edjFile, "base_layout");