Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
f4b44058
Commit
f4b44058
authored
Feb 07, 2012
by
Ivan Ilin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some debug changes for dnd
parent
2984f83c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
3 deletions
+12
-3
UBWidgetUniboardAPI.cpp
src/api/UBWidgetUniboardAPI.cpp
+1
-1
UBWidgetUniboardAPI.h
src/api/UBWidgetUniboardAPI.h
+0
-1
UBAbstractWidget.cpp
src/domain/UBAbstractWidget.cpp
+4
-1
UBAbstractWidget.h
src/domain/UBAbstractWidget.h
+1
-0
UBRoutedMouseEventWebView.cpp
src/web/UBRoutedMouseEventWebView.cpp
+5
-0
UBRoutedMouseEventWebView.h
src/web/UBRoutedMouseEventWebView.h
+1
-0
No files found.
src/api/UBWidgetUniboardAPI.cpp
View file @
f4b44058
...
...
@@ -541,7 +541,7 @@ void UBWidgetUniboardAPI::ProcessDropEvent(QDropEvent *event)
registerIDWidget
(
UBDownloadManager
::
downloadManager
()
->
addFileToDownload
(
desc
));
return
;
//
return;
}
}
else
if
(
pMimeData
->
hasUrls
())
{
//Local file processing
...
...
src/api/UBWidgetUniboardAPI.h
View file @
f4b44058
...
...
@@ -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
);
...
...
src/domain/UBAbstractWidget.cpp
View file @
f4b44058
...
...
@@ -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
()
{
...
...
src/domain/UBAbstractWidget.h
View file @
f4b44058
...
...
@@ -131,6 +131,7 @@ class UBAbstractWidget : public UBRoutedMouseEventWebView
virtual
void
injectInlineJavaScript
();
virtual
void
paintEvent
(
QPaintEvent
*
event
);
virtual
void
dropEvent
(
QDropEvent
*
);
protected
slots
:
...
...
src/web/UBRoutedMouseEventWebView.cpp
View file @
f4b44058
...
...
@@ -93,3 +93,8 @@ void UBRoutedMouseEventWebView::wheelEvent(QWheelEvent* ev)
p
->
event
(
ev
);
}
}
//void UBRoutedMouseEventWebView::dropEvent(QDropEvent *event)
//{
//// QWebView::dropEvent(event);
// event->accept();
//}
src/web/UBRoutedMouseEventWebView.h
View file @
f4b44058
...
...
@@ -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_ */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment