comparison demos/browser/toolbarsearch.d @ 141:4320ed0343dd

demos/browser: QVariant.canConvert fixes.
author SokoL_SD
date Sun, 07 Jun 2009 18:59:47 +0000
parents 8636c819ce4d
children
comparison
equal deleted inserted replaced
140:6cbe4f5f8fb7 141:4320ed0343dd
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(QVariant.Type.String)) { 160 if (v.canConvert!(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 }