Mercurial > projects > qtd
changeset 141:4320ed0343dd
demos/browser: QVariant.canConvert fixes.
author | SokoL_SD |
---|---|
date | Sun, 07 Jun 2009 18:59:47 +0000 |
parents | 6cbe4f5f8fb7 |
children | bd316478744c |
files | demos/browser/bookmarks.d demos/browser/browsermainwindow.d demos/browser/toolbarsearch.d |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/demos/browser/bookmarks.d Sun Jun 07 18:30:09 2009 +0000 +++ b/demos/browser/bookmarks.d Sun Jun 07 18:59:47 2009 +0000 @@ -1132,7 +1132,7 @@ void triggered(QAction action) { QVariant v = action.data(); - if (v.canConvert(QVariant.Type.Url)) { + if (v.canConvert!(QVariant.Type.Url)) { openUrl.emit(v.toUrl()); } }
--- a/demos/browser/browsermainwindow.d Sun Jun 07 18:30:09 2009 +0000 +++ b/demos/browser/browsermainwindow.d Sun Jun 07 18:59:47 2009 +0000 @@ -704,7 +704,7 @@ { if (QAction action = cast(QAction) signalSender()) { QVariant v = action.data(); - if (v.canConvert(QVariant.Type.Int)) { + if (v.canConvert!(int)) { int offset = cast(int) v; BrowserMainWindow[] windows = BrowserApplication.instance().mainWindows(); windows[offset].activateWindow();
--- a/demos/browser/toolbarsearch.d Sun Jun 07 18:30:09 2009 +0000 +++ b/demos/browser/toolbarsearch.d Sun Jun 07 18:59:47 2009 +0000 @@ -157,7 +157,7 @@ void triggeredMenuAction(QAction action) { QVariant v = action.data(); - if (v.canConvert(QVariant.Type.String)) { + if (v.canConvert!(string)) { string text = v.toString(); lineEdit().setText(text); searchNow();