Skip to content

Commit

Permalink
fix(DDialog): reset DLineEdit theme error
Browse files Browse the repository at this point in the history
Change-Id: Iee4f3be97ca4eafe39edc7ba69f00dae1f72e65a
  • Loading branch information
justforlxz committed Dec 29, 2017
1 parent a508856 commit bc6b8f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/widgets/ddialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ 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(child->metaObject()->className(), "light");
QString qss = dtm->getQssForWidget("DLineEdit", "light");

child->setStyleSheet(qss);
dtm->disconnect(child);
Expand Down
2 changes: 1 addition & 1 deletion src/widgets/dthememanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ QString DThemeManager::getQssForWidget(const QString className, const QString &t
qss = themeFile.readAll();
themeFile.close();
} else {
qWarning() << "open qss file failed" << themeURL;
qWarning() << "open qss file failed" << themeURL << themeFile.errorString();
}

return qss;
Expand Down

0 comments on commit bc6b8f3

Please sign in to comment.