Skip to content

Commit

Permalink
Use &str rather than QString
Browse files Browse the repository at this point in the history
  • Loading branch information
timsueberkrueb committed Jan 6, 2019
1 parent cd222e2 commit 7cc7ac0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qmetaobject/src/qtquickcontrols2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pub struct QQuickStyle {}

impl QQuickStyle {
/// Refer to the Qt documentation for QQuickStyle::setStyle
pub fn set_style(style: QString) {
std::env::set_var::<_, String>("QT_QUICK_CONTROLS_STYLE", style.into());
pub fn set_style(style: &str) {
std::env::set_var("QT_QUICK_CONTROLS_STYLE", style);
}
}

0 comments on commit 7cc7ac0

Please sign in to comment.