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
f5287497
Commit
f5287497
authored
Mar 21, 2012
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed issue about refreshing image directory when a capture is saved on the library
parent
d7bd098f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
2 deletions
+6
-2
UBLibraryController.cpp
src/board/UBLibraryController.cpp
+1
-0
UBLibraryController.h
src/board/UBLibraryController.h
+1
-0
UBApplication.cpp
src/core/UBApplication.cpp
+2
-2
UBLibraryWidget.cpp
src/gui/UBLibraryWidget.cpp
+2
-0
No files found.
src/board/UBLibraryController.cpp
View file @
f5287497
...
...
@@ -167,6 +167,7 @@ void UBLibraryController::importImageOnLibrary(QImage& pImage)
filePath
=
UBFileSystemUtils
::
normalizeFilePath
(
filePath
);
pImage
.
save
(
filePath
);
UBApplication
::
showMessage
(
tr
(
"Added 1 Image to Library"
));
emit
updateItemsList
();
}
}
...
...
src/board/UBLibraryController.h
View file @
f5287497
...
...
@@ -130,6 +130,7 @@ class UBLibraryController : public QObject
signals
:
void
dialogClosed
(
int
state
);
void
setResource
(
QString
&
pathResource
,
QString
&
mimetype
);
void
updateItemsList
();
public
slots
:
void
removeBackground
();
...
...
src/core/UBApplication.cpp
View file @
f5287497
...
...
@@ -601,14 +601,14 @@ void UBApplication::cleanup()
if
(
boardController
)
delete
boardController
;
if
(
webController
)
delete
webController
;
if
(
documentController
)
delete
documentController
;
if
(
mUniboardSankoreTransition
)
delete
mUniboardSankoreTransition
;
if
(
mUniboardSankoreTransition
)
delete
mUniboardSankoreTransition
;
applicationController
=
NULL
;
boardController
=
NULL
;
webController
=
NULL
;
documentController
=
NULL
;
mUniboardSankoreTransition
=
NULL
;
mUniboardSankoreTransition
=
NULL
;
}
void
UBStyle
::
drawItemText
(
QPainter
*
painter
,
const
QRect
&
rect
,
int
alignment
,
const
QPalette
&
pal
,
...
...
src/gui/UBLibraryWidget.cpp
View file @
f5287497
...
...
@@ -91,6 +91,8 @@ void UBLibraryWidget::init()
connect
(
this
,
SIGNAL
(
selectionChanged
()),
this
,
SLOT
(
onSelectionChanged
()));
connect
(
UBDownloadManager
::
downloadManager
(),
SIGNAL
(
addDownloadedFileToLibrary
(
bool
,
QUrl
,
QString
,
QByteArray
)),
this
,
SLOT
(
onAddDownloadedFileToLibrary
(
bool
,
QUrl
,
QString
,
QByteArray
)));
connect
(
UBApplication
::
boardController
,
SIGNAL
(
displayMetadata
(
QMap
<
QString
,
QString
>
)),
this
,
SLOT
(
onDisplayMetadata
(
QMap
<
QString
,
QString
>
)));
connect
(
mLibraryController
,
SIGNAL
(
updateItemsList
()),
this
,
SLOT
(
onRefreshCurrentFolder
()));
}
/**
...
...
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