Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
c79bf94c
Commit
c79bf94c
authored
Jul 09, 2010
by
Thomas Hartmann
Browse files
QmlDesigner.contextPane: do not remeber position
parent
57a13599
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qmldesigner/components/propertyeditor/contextpanewidget.cpp
View file @
c79bf94c
...
...
@@ -65,7 +65,7 @@ ContextPaneWidget::~ContextPaneWidget()
m_bauhausColorDialog
.
clear
();
}
void
ContextPaneWidget
::
activate
(
const
QPoint
&
pos
,
const
QPoint
&
alternative
)
void
ContextPaneWidget
::
activate
(
const
QPoint
&
pos
,
const
QPoint
&
alternative
,
const
QPoint
&
alternative2
)
{
//uncheck all color buttons
foreach
(
ColorButton
*
colorButton
,
findChildren
<
ColorButton
*>
())
{
...
...
@@ -73,20 +73,19 @@ void ContextPaneWidget::activate(const QPoint &pos, const QPoint &alternative)
}
resize
(
sizeHint
());
show
();
rePosition
(
pos
,
alternative
);
rePosition
(
pos
,
alternative
,
alternative2
);
raise
();
}
void
ContextPaneWidget
::
rePosition
(
const
QPoint
&
position
,
const
QPoint
&
alternative
)
void
ContextPaneWidget
::
rePosition
(
const
QPoint
&
position
,
const
QPoint
&
alternative
,
const
QPoint
&
alternative2
)
{
if
(
position
.
y
()
>
0
)
if
(
(
position
.
x
()
+
width
())
<
parentWidget
()
->
width
()
)
move
(
position
);
else
move
(
alternative
);
m_originalPos
=
pos
();
if
(
m_xPos
>
0
)
move
(
m_xPos
,
pos
().
y
());
if
(
pos
().
y
()
<
0
)
move
(
alternative2
);
}
void
ContextPaneWidget
::
deactivate
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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