some debug changes for dnd

preferencesAboutTextFull
Ivan Ilin 13 years ago
parent 2984f83c1a
commit f4b440589f
  1. 2
      src/api/UBWidgetUniboardAPI.cpp
  2. 1
      src/api/UBWidgetUniboardAPI.h
  3. 5
      src/domain/UBAbstractWidget.cpp
  4. 1
      src/domain/UBAbstractWidget.h
  5. 5
      src/web/UBRoutedMouseEventWebView.cpp
  6. 1
      src/web/UBRoutedMouseEventWebView.h

@ -541,7 +541,7 @@ void UBWidgetUniboardAPI::ProcessDropEvent(QDropEvent *event)
registerIDWidget(UBDownloadManager::downloadManager()->addFileToDownload(desc));
return;
// return;
}
} else if (pMimeData->hasUrls()) { //Local file processing

@ -253,7 +253,6 @@ class UBWidgetUniboardAPI : public QObject
private slots:
void onDownloadFinished(bool pSuccess, sDownloadFileDesc desc, QByteArray pData);
private:
inline void registerIDWidget(int id){webDownloadIds.append(id);}
inline bool takeIDWidget(int id);

@ -428,7 +428,10 @@ void UBAbstractWidget::paintEvent(QPaintEvent * event)
p.drawText(rect(), Qt::AlignCenter, message);
}
}
void UBAbstractWidget::dropEvent(QDropEvent *event)
{
QWebView::dropEvent(event);
}
QPixmap UBAbstractWidget::takeSnapshot()
{

@ -131,6 +131,7 @@ class UBAbstractWidget : public UBRoutedMouseEventWebView
virtual void injectInlineJavaScript();
virtual void paintEvent(QPaintEvent * event);
virtual void dropEvent(QDropEvent *);
protected slots:

@ -93,3 +93,8 @@ void UBRoutedMouseEventWebView::wheelEvent(QWheelEvent* ev)
p->event(ev);
}
}
//void UBRoutedMouseEventWebView::dropEvent(QDropEvent *event)
//{
//// QWebView::dropEvent(event);
// event->accept();
//}

@ -39,6 +39,7 @@ class UBRoutedMouseEventWebView : public QWebView
virtual void mouseReleaseEvent(QMouseEvent* ev);
virtual void contextMenuEvent(QContextMenuEvent* ev);
virtual void wheelEvent(QWheelEvent* ev);
// virtual void dropEvent(QDropEvent *);
};
#endif /* UBROUTEDMOUSEEVENTWEBVIEW_H_ */

Loading…
Cancel
Save