Skip to content

Commit

Permalink
fix: the DPasswordEdit style is wrong at the DInputDialog
Browse files Browse the repository at this point in the history
Change-Id: I5faac44f978bc28d483cab6e67bfbc7d486c1480
  • Loading branch information
zccrs committed Mar 1, 2018
1 parent a268fab commit 2e1c126
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/widgets/ddialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -796,10 +796,8 @@ void DDialog::childEvent(QChildEvent *event)
if (child->inherits("Dtk::Widget::DLineEdit")) {
DThemeManager *dtm = DThemeManager::instance();
// NOTE(sbw): want to force reset to light theme.
QString qss = dtm->getQssForWidget("DLineEdit", "light");

child->setStyleSheet(qss);
dtm->disconnect(child);
// FIXME(zccrs): fixation the DLineEdit widget theme to light.
dtm->setTheme(child, "light");
}
}
}
Expand Down

0 comments on commit 2e1c126

Please sign in to comment.