Mercurial > projects > qtd
comparison demos/browser/toolbarsearch.d @ 113:8636c819ce4d
more porting
author | mandel |
---|---|
date | Wed, 03 Jun 2009 14:35:25 +0000 |
parents | 87bb4e622f9e |
children | 4320ed0343dd |
comparison
equal
deleted
inserted
replaced
112:e416c5215366 | 113:8636c819ce4d |
---|---|
155 } | 155 } |
156 | 156 |
157 void triggeredMenuAction(QAction action) | 157 void triggeredMenuAction(QAction action) |
158 { | 158 { |
159 QVariant v = action.data(); | 159 QVariant v = action.data(); |
160 if (v.canConvert!(string)()) { | 160 if (v.canConvert(QVariant.Type.String)) { |
161 string text = v.toString(); | 161 string text = v.toString(); |
162 lineEdit().setText(text); | 162 lineEdit().setText(text); |
163 searchNow(); | 163 searchNow(); |
164 } | 164 } |
165 } | 165 } |