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
55dd0450
Commit
55dd0450
authored
Nov 06, 2015
by
Craig Watson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More minor updates (function names changed, includes added, etc)
parent
b78cc083
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
20 deletions
+33
-20
UBGraphicsGroupContainerItem.cpp
src/domain/UBGraphicsGroupContainerItem.cpp
+1
-1
UBBase32.cpp
src/frameworks/UBBase32.cpp
+1
-1
UBFileSystemUtils.cpp
src/frameworks/UBFileSystemUtils.cpp
+3
-3
UBCircleFrame.h
src/gui/UBCircleFrame.h
+1
-0
UBDocumentThumbnailWidget.cpp
src/gui/UBDocumentThumbnailWidget.cpp
+2
-1
UBThumbnailWidget.cpp
src/gui/UBThumbnailWidget.cpp
+4
-2
WBHistory.cpp
src/web/browser/WBHistory.cpp
+21
-12
No files found.
src/domain/UBGraphicsGroupContainerItem.cpp
View file @
55dd0450
...
...
@@ -297,7 +297,7 @@ QVariant UBGraphicsGroupContainerItem::itemChange(GraphicsItemChange change, con
{
QVariant
newValue
=
Delegate
()
->
itemChange
(
change
,
value
);
foreach
(
QGraphicsItem
*
child
,
child
ren
())
foreach
(
QGraphicsItem
*
child
,
child
Items
())
{
UBGraphicsItem
*
item
=
dynamic_cast
<
UBGraphicsItem
*>
(
child
);
if
(
item
)
...
...
src/frameworks/UBBase32.cpp
View file @
55dd0450
...
...
@@ -53,7 +53,7 @@ QByteArray UBBase32::decode(const QString& base32String)
for
(
i
=
0
,
index
=
0
,
offset
=
0
;
i
<
base32String
.
length
();
i
++
)
{
QChar
ch
=
base32String
.
at
(
i
);
char
lookup
=
ch
.
to
Ascii
()
-
'0'
;
char
lookup
=
ch
.
to
Latin1
()
-
'0'
;
/* Skip chars outside the lookup table */
if
(
lookup
<
0
||
lookup
>=
80
)
...
...
src/frameworks/UBFileSystemUtils.cpp
View file @
55dd0450
...
...
@@ -130,12 +130,12 @@ bool UBFileSystemUtils::deleteFile(const QString &path)
QString
UBFileSystemUtils
::
defaultTempDirPath
()
{
return
Q
DesktopServices
::
storageLocation
(
QDesktopService
s
::
TempLocation
)
+
"/"
+
defaultTempDirName
();
return
Q
StandardPaths
::
writableLocation
(
QStandardPath
s
::
TempLocation
)
+
"/"
+
defaultTempDirName
();
}
QString
UBFileSystemUtils
::
createTempDir
(
const
QString
&
templateString
,
bool
autoDeleteOnExit
)
{
QString
appTempDir
=
Q
DesktopServices
::
storageLocation
(
QDesktopService
s
::
TempLocation
)
QString
appTempDir
=
Q
StandardPaths
::
writableLocation
(
QStandardPath
s
::
TempLocation
)
+
"/"
+
templateString
;
int
index
=
0
;
...
...
@@ -200,7 +200,7 @@ void UBFileSystemUtils::deleteAllTempDirCreatedDuringSession()
void
UBFileSystemUtils
::
cleanupGhostTempFolders
(
const
QString
&
templateString
)
{
QDir
dir
(
Q
DesktopServices
::
storageLocation
(
QDesktopService
s
::
TempLocation
));
QDir
dir
(
Q
StandardPaths
::
writableLocation
(
QStandardPath
s
::
TempLocation
));
foreach
(
QFileInfo
dirContent
,
dir
.
entryInfoList
(
QDir
::
Dirs
|
QDir
::
NoDotAndDotDot
|
QDir
::
Hidden
,
QDir
::
Name
))
{
...
...
src/gui/UBCircleFrame.h
View file @
55dd0450
...
...
@@ -29,6 +29,7 @@
#define UBCIRCLEFRAME_H_
#include <QtGui>
#include <QFrame>
class
UBCircleFrame
:
public
QFrame
{
...
...
src/gui/UBDocumentThumbnailWidget.cpp
View file @
55dd0450
...
...
@@ -190,7 +190,8 @@ void UBDocumentThumbnailWidget::dragMoveEvent(QDragMoveEvent *event)
if
(
!
mDropCaretRectItem
&&
selectedItems
().
count
()
<
mGraphicItems
.
count
())
{
mDropCaretRectItem
=
new
QGraphicsRectItem
(
0
,
scene
());
mDropCaretRectItem
=
new
QGraphicsRectItem
(
0
);
scene
()
->
addItem
(
mDropCaretRectItem
);
mDropCaretRectItem
->
setPen
(
QPen
(
Qt
::
darkGray
));
mDropCaretRectItem
->
setBrush
(
QBrush
(
Qt
::
lightGray
));
}
...
...
src/gui/UBThumbnailWidget.cpp
View file @
55dd0450
...
...
@@ -26,6 +26,7 @@
#include <QString>
#include <QCursor>
#include <QGraphicsRectItem>
#include "UBThumbnailWidget.h"
#include "UBRubberBand.h"
...
...
@@ -242,7 +243,8 @@ void UBThumbnailWidget::mousePressEvent(QMouseEvent *event)
option
.
initFrom
(
&
rubberBand
);
mPrevLassoRect
=
QRect
();
mLassoRectItem
=
new
QGraphicsRectItem
(
0
,
scene
());
mLassoRectItem
=
new
QGraphicsRectItem
(
0
);
scene
()
->
addItem
(
mLassoRectItem
);
#ifdef Q_WS_MAC
// The following code must stay in synch with <Qt installation folder>\src\gui\styles\qmacstyle_mac.mm
...
...
@@ -772,7 +774,7 @@ UBSceneThumbnailNavigPixmap::UBSceneThumbnailNavigPixmap(const QPixmap& pix, UBD
,
bCanMoveDown
(
false
)
{
if
(
0
<=
UBDocumentContainer
::
pageFromSceneIndex
(
pSceneIndex
)){
setAccept
s
HoverEvents
(
true
);
setAcceptHoverEvents
(
true
);
setFlag
(
QGraphicsItem
::
ItemIsSelectable
,
true
);
}
}
...
...
src/web/browser/WBHistory.cpp
View file @
55dd0450
...
...
@@ -411,7 +411,8 @@ WBHistoryModel::WBHistoryModel(WBHistoryManager *history, QObject *parent)
void
WBHistoryModel
::
historyReset
()
{
reset
();
beginResetModel
();
endResetModel
();
}
void
WBHistoryModel
::
entryAdded
()
...
...
@@ -751,7 +752,8 @@ QVariant WBHistoryFilterModel::headerData(int section, Qt::Orientation orientati
void
WBHistoryFilterModel
::
sourceReset
()
{
m_loaded
=
false
;
reset
();
beginResetModel
();
endResetModel
();
}
int
WBHistoryFilterModel
::
rowCount
(
const
QModelIndex
&
parent
)
const
...
...
@@ -888,7 +890,8 @@ bool WBHistoryFilterModel::removeRows(int row, int count, const QModelIndex &par
this
,
SLOT
(
sourceRowsRemoved
(
const
QModelIndex
&
,
int
,
int
)));
m_loaded
=
false
;
if
(
oldCount
-
count
!=
rowCount
())
reset
();
beginResetModel
();
endResetModel
();
return
true
;
}
...
...
@@ -948,7 +951,7 @@ QModelIndex WBHistoryCompletionModel::index(int row, int column, const QModelInd
if
(
row
<
0
||
row
>=
rowCount
(
parent
)
||
column
<
0
||
column
>=
columnCount
(
parent
))
return
QModelIndex
();
return
createIndex
(
row
,
column
,
0
);
return
createIndex
(
row
,
column
);
}
QModelIndex
WBHistoryCompletionModel
::
parent
(
const
QModelIndex
&
)
const
...
...
@@ -978,12 +981,14 @@ void WBHistoryCompletionModel::setSourceModel(QAbstractItemModel *newSourceModel
this
,
SLOT
(
sourceReset
()));
}
reset
();
beginResetModel
();
endResetModel
();
}
void
WBHistoryCompletionModel
::
sourceReset
()
{
reset
();
beginResetModel
();
endResetModel
();
}
WBHistoryTreeModel
::
WBHistoryTreeModel
(
QAbstractItemModel
*
sourceModel
,
QObject
*
parent
)
...
...
@@ -1107,7 +1112,7 @@ QModelIndex WBHistoryTreeModel::index(int row, int column, const QModelIndex &pa
return
QModelIndex
();
if
(
!
parent
.
isValid
())
return
createIndex
(
row
,
column
,
0
);
return
createIndex
(
row
,
column
);
return
createIndex
(
row
,
column
,
parent
.
row
()
+
1
);
}
...
...
@@ -1116,7 +1121,7 @@ QModelIndex WBHistoryTreeModel::parent(const QModelIndex &index) const
int
offset
=
index
.
internalId
();
if
(
offset
==
0
||
!
index
.
isValid
())
return
QModelIndex
();
return
createIndex
(
offset
-
1
,
0
,
0
);
return
createIndex
(
offset
-
1
,
0
);
}
bool
WBHistoryTreeModel
::
hasChildren
(
const
QModelIndex
&
parent
)
const
...
...
@@ -1183,13 +1188,15 @@ void WBHistoryTreeModel::setSourceModel(QAbstractItemModel *newSourceModel)
this
,
SLOT
(
sourceRowsRemoved
(
const
QModelIndex
&
,
int
,
int
)));
}
reset
();
beginResetModel
();
endResetModel
();
}
void
WBHistoryTreeModel
::
sourceReset
()
{
m_sourceRowCache
.
clear
();
reset
();
beginResetModel
();
endResetModel
();
}
void
WBHistoryTreeModel
::
sourceRowsInserted
(
const
QModelIndex
&
parent
,
int
start
,
int
end
)
...
...
@@ -1199,7 +1206,8 @@ void WBHistoryTreeModel::sourceRowsInserted(const QModelIndex &parent, int start
if
(
start
!=
0
||
start
!=
end
)
{
m_sourceRowCache
.
clear
();
reset
();
beginResetModel
();
endResetModel
();
return
;
}
...
...
@@ -1249,7 +1257,8 @@ void WBHistoryTreeModel::sourceRowsRemoved(const QModelIndex &parent, int start,
if
(
it
==
m_sourceRowCache
.
end
())
{
m_sourceRowCache
.
clear
();
reset
();
beginResetModel
();
endResetModel
();
return
;
}
...
...
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