Permalink
Browse files

add qwebselected.cpp

  • Loading branch information...
1 parent 6a607ba commit e8f87d9dc017f52b6a7c47eb6bb37b5aa721a134 xunxin committed Jun 19, 2009
Showing with 4 additions and 4 deletions.
  1. +4 −4 webview.cpp
View
8 webview.cpp
@@ -21,25 +21,25 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
menu->addAction(tr("&Add Text Field"), this, SIGNAL(showTextFieldDialog()));
}
- if (!r.imageUrl().isEmpty()) {
+ //if (!r.imageUrl().isEmpty()) {
if (!menu->isEmpty())
menu->addSeparator();
hitPos = event->pos();
menu->addAction(tr("&Add Image Field"), this, SIGNAL(showImageFieldDialog()));
- }
+ // }
if (!menu->isEmpty())
menu->addSeparator();
menu->addAction(tr("&Viwie"), this, SIGNAL(showViwieDialog()));
-
+
if (menu->isEmpty()) {
delete menu;
menu = page()->createStandardContextMenu();
}
menu->exec(mapToGlobal(event->pos()));
delete menu;
- //QWebView::contextMenuEvent(event);
+ QWebView::contextMenuEvent(event);
}

0 comments on commit e8f87d9

Please sign in to comment.