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
c7619641
Commit
c7619641
authored
May 21, 2012
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'Sankore-1.40' of github.com:Sankore/Sankore-3.1 into Sankore-1.40
parents
c473f02e
3d187262
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
17 deletions
+1
-17
UBApplication.cpp
src/core/UBApplication.cpp
+0
-2
UBApplication.h
src/core/UBApplication.h
+0
-2
UBLibraryWidget.cpp
src/gui/UBLibraryWidget.cpp
+1
-13
No files found.
src/core/UBApplication.cpp
View file @
c7619641
...
@@ -35,8 +35,6 @@
...
@@ -35,8 +35,6 @@
#include "UBIdleTimer.h"
#include "UBIdleTimer.h"
#include "UBApplicationController.h"
#include "UBApplicationController.h"
//#include "softwareupdate/UBSoftwareUpdateController.h"
#include "board/UBBoardController.h"
#include "board/UBBoardController.h"
#include "board/UBDrawingController.h"
#include "board/UBDrawingController.h"
#include "board/UBBoardView.h"
#include "board/UBBoardView.h"
...
...
src/core/UBApplication.h
View file @
c7619641
...
@@ -37,7 +37,6 @@ class UBSettings;
...
@@ -37,7 +37,6 @@ class UBSettings;
class
UBPersistenceManager
;
class
UBPersistenceManager
;
class
UBApplicationController
;
class
UBApplicationController
;
class
UBDocumentController
;
class
UBDocumentController
;
class
UBSoftwareUpdateController
;
class
UBMainWindow
;
class
UBMainWindow
;
class
UBApplication
:
public
QtSingleApplication
class
UBApplication
:
public
QtSingleApplication
...
@@ -59,7 +58,6 @@ class UBApplication : public QtSingleApplication
...
@@ -59,7 +58,6 @@ class UBApplication : public QtSingleApplication
static
UBBoardController
*
boardController
;
static
UBBoardController
*
boardController
;
static
UBWebController
*
webController
;
static
UBWebController
*
webController
;
static
UBDocumentController
*
documentController
;
static
UBDocumentController
*
documentController
;
static
UBSoftwareUpdateController
*
softwareUpdateController
;
static
UniboardSankoreTransition
*
mUniboardSankoreTransition
;
static
UniboardSankoreTransition
*
mUniboardSankoreTransition
;
static
UBMainWindow
*
mainWindow
;
static
UBMainWindow
*
mainWindow
;
...
...
src/gui/UBLibraryWidget.cpp
View file @
c7619641
...
@@ -559,7 +559,7 @@ UBNewFolderDlg::UBNewFolderDlg(QWidget *parent, const char *name):QDialog(parent
...
@@ -559,7 +559,7 @@ UBNewFolderDlg::UBNewFolderDlg(QWidget *parent, const char *name):QDialog(parent
{
{
setObjectName
(
name
);
setObjectName
(
name
);
setWindowTitle
(
tr
(
"Add new folder"
));
setWindowTitle
(
tr
(
"Add new folder"
));
setWindowFlags
(
Qt
::
CustomizeWindowHint
|
Qt
::
WindowTitleHint
);
mpLabel
=
new
QLabel
(
tr
(
"New Folder name:"
),
this
);
mpLabel
=
new
QLabel
(
tr
(
"New Folder name:"
),
this
);
mpLineEdit
=
new
QLineEdit
(
this
);
mpLineEdit
=
new
QLineEdit
(
this
);
mpAddButton
=
new
QPushButton
(
tr
(
"Add"
));
mpAddButton
=
new
QPushButton
(
tr
(
"Add"
));
...
@@ -699,20 +699,8 @@ void UBLibraryWidget::onAddDownloadedFileToLibrary(bool pSuccess, QUrl sourceUrl
...
@@ -699,20 +699,8 @@ void UBLibraryWidget::onAddDownloadedFileToLibrary(bool pSuccess, QUrl sourceUrl
Q_UNUSED
(
pContentHeader
);
Q_UNUSED
(
pContentHeader
);
if
(
pSuccess
)
if
(
pSuccess
)
{
{
// QDir dir;
// dir.mkdir("tmp");
// QString qsFileName = QFileInfo(sourceUrl.toString()).fileName();
// QString qsFilePath = UBFileSystemUtils::normalizeFilePath(QString("tmp/%0").arg(qsFileName));
// QFile f(qsFilePath);
// if(f.open(QIODevice::WriteOnly))
// {
// f.write(pData);
// f.close();
// }
QString
urlString
=
sourceUrl
.
toString
();
QString
urlString
=
sourceUrl
.
toString
();
mLibraryController
->
routeDataItem
(
urlString
,
pData
);
mLibraryController
->
routeDataItem
(
urlString
,
pData
);
// dir.remove(qsFileName);
// dir.rmdir("tmp"); // Due to Qt, the directoy will be removed only if it's empty :)
}
}
}
}
...
...
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