From a32a56cd3a2ec13482198eb3f1bd38c080047e95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=8D=E5=BD=92=E6=B7=B7=E6=B2=8C?= Date: Wed, 2 Aug 2017 11:51:26 +0800 Subject: [PATCH] Update README.md --- api-design-principles-from-qt/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-design-principles-from-qt/README.md b/api-design-principles-from-qt/README.md index 7ffe023..c26f32f 100644 --- a/api-design-principles-from-qt/README.md +++ b/api-design-principles-from-qt/README.md @@ -163,7 +163,7 @@ regExp.setPattern("."); regExp.setPatternSyntax(Qt::WildcardSyntax); ``` -为实现这种类型的`API`,需要借助底层对象的懒创建。例如,对于`QRegExp`的例子,在不知道模式语法(`pattern syntax`)的情况下,在`setPattern()`中去解释`"."`就为时过早了。 +为实现这种类型的`API`,需要借助底层对象的惰性创建。例如,对于`QRegExp`的例子,在不知道模式语法(`pattern syntax`)的情况下,在`setPattern()`中去解释`"."`就为时过早了。 属性之间常常有关联的;在这种情况下,我们必须小心处理。思考下面的问题:当前风格(`style`)提供的『默认的图标尺寸』属性 vs. `QToolButton`的『`iconSize`』属性: