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
b5a9d646
Commit
b5a9d646
authored
Dec 28, 2011
by
Ivan Ilin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sankore-316
parent
f797f884
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletion
+23
-1
UBBoardPaletteManager.cpp
src/board/UBBoardPaletteManager.cpp
+6
-0
UBDockPalette.cpp
src/gui/UBDockPalette.cpp
+9
-1
UBDockPalette.h
src/gui/UBDockPalette.h
+8
-0
No files found.
src/board/UBBoardPaletteManager.cpp
View file @
b5a9d646
...
...
@@ -743,6 +743,9 @@ void UBBoardPaletteManager::changeMode(eUBDockPaletteWidgetMode newMode, bool is
mLeftPalette
->
setVisible
(
true
);
mRightPalette
->
setVisible
(
true
);
#ifdef Q_WS_WIN
mRightPalette
->
setAdditionalVOffset
(
0
);
#endif
if
(
!
isInit
)
containerResized
();
...
...
@@ -772,6 +775,9 @@ void UBBoardPaletteManager::changeMode(eUBDockPaletteWidgetMode newMode, bool is
mLeftPalette
->
setVisible
(
false
);
mRightPalette
->
setVisible
(
true
);
#ifdef Q_WS_WIN
mRightPalette
->
setAdditionalVOffset
(
30
);
#endif
if
(
!
isInit
)
UBApplication
::
applicationController
->
uninotesController
()
->
TransparentWidgetResized
();
...
...
src/gui/UBDockPalette.cpp
View file @
b5a9d646
...
...
@@ -688,7 +688,7 @@ void UBDockPalette::moveTabs()
}
}
QPoint
origin
(
width
(),
mHTab
);
QPoint
origin
(
width
(),
mHTab
+
mTabPalette
->
mVerticalOffset
);
switch
(
mOrientation
)
{
case
eUBDockOrientation_Left
:
...
...
@@ -732,6 +732,8 @@ void UBDockPalette::setVisible(bool visible)
UBTabDockPalete
::
UBTabDockPalete
(
UBDockPalette
*
dockPalette
,
QWidget
*
parent
)
:
QWidget
(
parent
)
,
dock
(
dockPalette
)
,
mVerticalOffset
(
0
)
,
mFlotable
(
false
)
{
int
numTabs
=
dock
->
mTabWidgets
.
size
();
resize
(
2
*
dock
->
border
(),
(
numTabs
*
TABSIZE
)
+
qMax
(
numTabs
-
1
,
0
)
*
dock
->
tabSpacing
());
...
...
@@ -846,6 +848,12 @@ void UBTabDockPalete::mouseMoveEvent(QMouseEvent *event)
if
(
dock
->
mCanResize
&&
((
dock
->
mMousePressPos
-
p
).
manhattanLength
()
>
QApplication
::
startDragDistance
()))
{
if
(
qAbs
(
dock
->
mMousePressPos
.
y
()
-
p
.
y
())
>
10
&&
mFlotable
)
{
qDebug
()
<<
"y differences"
<<
dock
->
mMousePressPos
.
y
()
<<
p
.
y
();
mVerticalOffset
+=
p
.
y
()
-
dock
->
mMousePressPos
.
y
();
move
(
this
->
pos
().
x
(),
p
.
y
());
}
switch
(
dock
->
mOrientation
)
{
case
eUBDockOrientation_Left
:
...
...
src/gui/UBDockPalette.h
View file @
b5a9d646
...
...
@@ -71,6 +71,8 @@ protected:
private
:
UBDockPalette
*
dock
;
int
mVerticalOffset
;
bool
mFlotable
;
};
class
UBDockPalette
:
public
QWidget
...
...
@@ -107,6 +109,12 @@ public:
QVector
<
UBDockPaletteWidget
*>
GetWidgetsList
()
{
return
mRegisteredWidgets
;
}
public
:
bool
isTabFlotable
()
{
return
mTabPalette
->
mFlotable
;}
void
setTabFlotable
(
bool
newFlotable
)
{
mTabPalette
->
mFlotable
=
newFlotable
;}
int
getAdditionalVOffset
()
const
{
return
mTabPalette
->
mVerticalOffset
;}
void
setAdditionalVOffset
(
int
newOffset
)
{
mTabPalette
->
mVerticalOffset
=
newOffset
;}
public
slots
:
void
onShowTabWidget
(
const
QString
&
widgetName
);
void
onHideTabWidget
(
const
QString
&
widgetName
);
...
...
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