Use Qss instead of some image path in code.
This commit is contained in:
@@ -104,12 +104,9 @@ void AccountFormDialog::changeSelfPassword()
|
||||
void AccountFormDialog::addButtonPwd(QHBoxLayout* layout)
|
||||
{
|
||||
mBtnPwd = new QToolButton(this);
|
||||
mBtnPwd->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
||||
mBtnPwd->setObjectName("editvalBtn");
|
||||
mBtnPwd->setIcon(QIcon(":/icons/edit.png"));
|
||||
mBtnPwd->setIconSize({ 30, 30 });
|
||||
mBtnPwd->setText(mMode == Self ? tr("Change Password") : tr("Reset Password"));
|
||||
mBtnPwd->setObjectName("changePwdBtn");
|
||||
mBtnPwd->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
|
||||
mBtnPwd->setText(mMode == Self ? tr("Change Password") : tr("Reset Password"));
|
||||
layout->addWidget(mBtnPwd);
|
||||
}
|
||||
|
||||
@@ -164,12 +161,9 @@ void AccountFormDialog::addTitleLabel(QVBoxLayout* layout)
|
||||
void AccountFormDialog::addSelfModeUI(QHBoxLayout* hlayout)
|
||||
{
|
||||
auto btnLogout = new QToolButton(this);
|
||||
btnLogout->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
|
||||
btnLogout->setIcon(QIcon(":/icons/logout.png"));
|
||||
btnLogout->setIconSize({ 30, 30 });
|
||||
btnLogout->setText(tr("Logout"));
|
||||
btnLogout->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
|
||||
btnLogout->setObjectName("editvalBtn");
|
||||
btnLogout->setObjectName("logoutBtn");
|
||||
|
||||
hlayout->addWidget(btnLogout);
|
||||
connect(btnLogout, &QAbstractButton::clicked, [=]() {
|
||||
|
||||
Reference in New Issue
Block a user