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
fc593b1e
Commit
fc593b1e
authored
Nov 01, 2011
by
Ivan Ilin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Have pure virtual function on UBGraphicsItems
parent
9aa3027c
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
10 deletions
+12
-10
UBCFFSubsetAdaptor.cpp
src/adaptors/UBCFFSubsetAdaptor.cpp
+0
-3
UBGraphicsProxyWidget.h
src/domain/UBGraphicsProxyWidget.h
+1
-1
UBGraphicsWidgetItem.h
src/domain/UBGraphicsWidgetItem.h
+7
-3
UBGraphicsWidgetItemDelegate.h
src/domain/UBGraphicsWidgetItemDelegate.h
+1
-1
UBItem.h
src/domain/UBItem.h
+1
-1
UBGraphicsCurtainItem.h
src/tools/UBGraphicsCurtainItem.h
+2
-1
No files found.
src/adaptors/UBCFFSubsetAdaptor.cpp
View file @
fc593b1e
...
...
@@ -917,8 +917,6 @@ bool UBCFFSubsetAdaptor::UBCFFSubsetReader::parseDoc()
}
else
if
(
currentSvg
.
tagName
()
==
tPageset
){
parseSvgPageset
(
currentSvg
);
}
// while (!mReader.atEnd())
// {
// mReader.readNext();
...
...
@@ -942,7 +940,6 @@ bool UBCFFSubsetAdaptor::UBCFFSubsetReader::parseDoc()
// }
// if (!mReader.error() == QXmlStreamReader::NoError)
// UBApplication::showMessage(mReader.errorString());
return
true
;
}
...
...
src/domain/UBGraphicsProxyWidget.h
View file @
fc593b1e
...
...
@@ -41,7 +41,7 @@ class UBGraphicsProxyWidget: public QGraphicsProxyWidget, public UBItem, public
virtual
void
remove
();
virtual
UBGraphicsItemDelegate
*
d
elegate
()
const
{
return
mDelegate
;}
virtual
UBGraphicsItemDelegate
*
D
elegate
()
const
{
return
mDelegate
;}
protected
:
...
...
src/domain/UBGraphicsWidgetItem.h
View file @
fc593b1e
...
...
@@ -29,10 +29,12 @@ class UBGraphicsScene;
class
UBAbstractWidget
;
class
UBW3CWidgetAPI
;
class
UBW3CWidgetWebStorageAPI
;
class
UBGraphiscItem
;
class
UBGraphiscItemDelegate
;
class
UBGraphicsWidgetItem
:
public
UBGraphicsProxyWidget
{
Q_OBJECT
;
Q_OBJECT
public
:
UBGraphicsWidgetItem
(
QGraphicsItem
*
parent
=
0
,
int
widgetType
=
0
);
...
...
@@ -60,11 +62,13 @@ class UBGraphicsWidgetItem : public UBGraphicsProxyWidget
QMap
<
QString
,
QString
>
datastoreEntries
()
const
;
void
removeDatastoreEntry
(
const
QString
&
key
);
void
removeAllDatastoreEntries
();
virtual
UBGraphicsItemDelegate
*
Delegate
()
const
{
return
mDelegate
;}
virtual
void
remove
();
void
removeScript
();
protected
:
virtual
void
mousePressEvent
(
QGraphicsSceneMouseEvent
*
event
);
...
...
@@ -89,7 +93,7 @@ class UBGraphicsWidgetItem : public UBGraphicsProxyWidget
class
UBGraphicsAppleWidgetItem
:
public
UBGraphicsWidgetItem
{
Q_OBJECT
;
Q_OBJECT
public
:
UBGraphicsAppleWidgetItem
(
const
QUrl
&
pWidgetUrl
,
QGraphicsItem
*
parent
=
0
);
...
...
@@ -109,7 +113,7 @@ class UBGraphicsAppleWidgetItem : public UBGraphicsWidgetItem
class
UBGraphicsW3CWidgetItem
:
public
UBGraphicsWidgetItem
{
Q_OBJECT
;
Q_OBJECT
public
:
UBGraphicsW3CWidgetItem
(
const
QUrl
&
pWidgetUrl
,
QGraphicsItem
*
parent
=
0
,
int
widgetType
=
UBGraphicsItemType
::
W3CWidgetItemType
);
...
...
src/domain/UBGraphicsWidgetItemDelegate.h
View file @
fc593b1e
...
...
@@ -24,7 +24,7 @@
class
UBGraphicsWidgetItemDelegate
:
public
UBGraphicsItemDelegate
{
Q_OBJECT
;
Q_OBJECT
public
:
UBGraphicsWidgetItemDelegate
(
UBGraphicsWidgetItem
*
pDelegated
,
int
widgetType
=
0
);
...
...
src/domain/UBItem.h
View file @
fc593b1e
...
...
@@ -99,7 +99,7 @@ protected:
}
public
:
virtual
UBGraphicsItemDelegate
*
Delegate
()
const
{
return
0
;}
virtual
UBGraphicsItemDelegate
*
Delegate
()
const
=
0
;
virtual
void
remove
()
=
0
;
};
...
...
src/tools/UBGraphicsCurtainItem.h
View file @
fc593b1e
...
...
@@ -28,7 +28,7 @@ class UBGraphicsItemDelegate;
class
UBGraphicsCurtainItem
:
public
QObject
,
public
QGraphicsRectItem
,
public
UBItem
,
public
UBGraphicsItem
{
Q_OBJECT
;
Q_OBJECT
public
:
UBGraphicsCurtainItem
(
QGraphicsItem
*
parent
=
0
);
...
...
@@ -47,6 +47,7 @@ class UBGraphicsCurtainItem : public QObject, public QGraphicsRectItem, public U
//TODO UB 4.x not nice ...
void
triggerRemovedSignal
();
virtual
UBGraphicsItemDelegate
*
Delegate
()
const
{
return
mDelegate
;}
signals
:
...
...
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