Mercurial > projects > qtd
comparison examples/dialogs/standarddialogs/dialog.d @ 144:3e13dc673db8
fix format string
author | mandel |
---|---|
date | Wed, 10 Jun 2009 17:03:35 +0000 |
parents | d010168e50de |
children | 7ea67ec3cf29 |
comparison
equal
deleted
inserted
replaced
143:d010168e50de | 144:3e13dc673db8 |
---|---|
207 void setInteger() | 207 void setInteger() |
208 { | 208 { |
209 bool ok; | 209 bool ok; |
210 int i = QInputDialog.getInt(this, tr("QInputgetInteger()"), tr("Percentage:"), 25, 0, 100, 1, ok); | 210 int i = QInputDialog.getInt(this, tr("QInputgetInteger()"), tr("Percentage:"), 25, 0, 100, 1, ok); |
211 if (ok) | 211 if (ok) |
212 integerLabel.setText(Format(tr("%"), i)); | 212 integerLabel.setText(Format("{}", i)); |
213 } | 213 } |
214 | 214 |
215 void setDouble() | 215 void setDouble() |
216 { | 216 { |
217 bool ok; | 217 bool ok; |