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
55a4b860
Commit
55a4b860
authored
Mar 26, 2014
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed issue with copying a text
parent
dbc9bf96
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
5 deletions
+17
-5
UBBoardController.cpp
src/board/UBBoardController.cpp
+2
-2
UBDocumentController.cpp
src/document/UBDocumentController.cpp
+8
-3
UBGraphicsScene.cpp
src/domain/UBGraphicsScene.cpp
+7
-0
No files found.
src/board/UBBoardController.cpp
View file @
55a4b860
...
...
@@ -2369,10 +2369,10 @@ void UBBoardController::processMimeData(const QMimeData* pMimeData, const QPoint
if
(
qsTmp
.
startsWith
(
"http"
))
downloadURL
(
QUrl
(
qsTmp
),
QString
(),
pPos
);
else
{
if
(
mActiveScene
->
selectedItems
().
at
(
0
)
->
type
()
==
UBGraphicsItemType
::
TextItemType
)
if
(
mActiveScene
->
selectedItems
().
count
()
&&
mActiveScene
->
selectedItems
().
at
(
0
)
->
type
()
==
UBGraphicsItemType
::
TextItemType
)
dynamic_cast
<
UBGraphicsTextItem
*>
(
mActiveScene
->
selectedItems
().
at
(
0
))
->
setHtml
(
pMimeData
->
text
());
else
mActiveScene
->
addTextHtml
(
pMimeData
->
text
(),
pPos
);
mActiveScene
->
addTextHtml
(
""
,
pPos
)
->
setHtml
(
pMimeData
->
text
()
);
}
}
else
{
...
...
src/document/UBDocumentController.cpp
View file @
55a4b860
...
...
@@ -190,15 +190,21 @@ void UBDocumentController::selectDocument(UBDocumentProxy* proxy, bool setAsCurr
}
bool
bullshitcode
=
true
;
void
UBDocumentController
::
createNewDocumentGroup
()
{
if
(
bullshitcode
){
mDocumentUI
->
documentTreeWidget
->
selectedItems
().
at
(
0
)
->
setSelected
(
false
);
mDocumentUI
->
documentTreeWidget
->
topLevelItem
(
0
)
->
setSelected
(
true
);
}
UBDocumentGroupTreeItem
*
docGroupItem
=
new
UBDocumentGroupTreeItem
(
0
);
// deleted by the tree widget
int
i
=
1
;
QString
newFolderName
=
tr
(
"New Folder"
);
while
(
allGroupNames
().
contains
(
newFolderName
))
{
newFolderName
=
tr
(
"New Folder"
)
+
" "
+
QVariant
(
i
++
).
toString
();
}
docGroupItem
->
setGroupName
(
newFolderName
);
int
trashIndex
=
mDocumentUI
->
documentTreeWidget
->
indexOfTopLevelItem
(
mTrashTi
);
...
...
@@ -210,7 +216,6 @@ void UBDocumentController::createNewDocumentGroup()
mDocumentUI
->
documentTreeWidget
->
insertTopLevelItem
(
trashIndex
,
docGroupItem
);
else
selected
->
addChild
(
docGroupItem
);
parentGroupName
=
docGroupItem
->
buildEntirePath
();
mMapOfPaths
.
insert
(
parentGroupName
,
docGroupItem
);
...
...
src/domain/UBGraphicsScene.cpp
View file @
55a4b860
...
...
@@ -665,6 +665,13 @@ void UBGraphicsScene::DisposeMagnifierQWidgets()
magniferControlViewWidget
=
NULL
;
}
if
(
magniferDisplayViewWidget
)
{
magniferDisplayViewWidget
->
hide
();
magniferDisplayViewWidget
->
setParent
(
0
);
delete
magniferDisplayViewWidget
;
magniferDisplayViewWidget
=
NULL
;
}
// some time have crash here on access to app (when call from destructor when close OpenBoard app)
// so i just add try/catch section here
try
...
...
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