Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flatpak-qt-creator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
01589e48
Commit
01589e48
authored
Feb 16, 2010
by
Thomas Hartmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QmlDesigner.propertyEditor: adding sanity checks to anchoringbackend
parent
46319d71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp
...igner/components/propertyeditor/qmlanchorbindingproxy.cpp
+11
-8
No files found.
src/plugins/qmldesigner/components/propertyeditor/qmlanchorbindingproxy.cpp
View file @
01589e48
...
...
@@ -64,32 +64,32 @@ void QmlAnchorBindingProxy::setup(const QmlItemNode &fxItemNode)
bool
QmlAnchorBindingProxy
::
hasParent
()
{
return
m_fxItemNode
.
hasNodeParent
();
return
m_fxItemNode
.
isValid
()
&&
m_fxItemNode
.
hasNodeParent
();
}
bool
QmlAnchorBindingProxy
::
topAnchored
()
{
return
m_fxItemNode
.
anchors
().
instanceHasAnchor
(
AnchorLine
::
Top
);
return
m_fxItemNode
.
isValid
()
&&
m_fxItemNode
.
anchors
().
instanceHasAnchor
(
AnchorLine
::
Top
);
}
bool
QmlAnchorBindingProxy
::
bottomAnchored
()
{
return
m_fxItemNode
.
anchors
().
instanceHasAnchor
(
AnchorLine
::
Bottom
);
return
m_fxItemNode
.
isValid
()
&&
m_fxItemNode
.
anchors
().
instanceHasAnchor
(
AnchorLine
::
Bottom
);
}
bool
QmlAnchorBindingProxy
::
leftAnchored
()
{
return
m_fxItemNode
.
anchors
().
instanceHasAnchor
(
AnchorLine
::
Left
);
return
m_fxItemNode
.
isValid
()
&&
m_fxItemNode
.
anchors
().
instanceHasAnchor
(
AnchorLine
::
Left
);
}
bool
QmlAnchorBindingProxy
::
rightAnchored
()
{
return
m_fxItemNode
.
anchors
().
instanceHasAnchor
(
AnchorLine
::
Right
);
return
m_fxItemNode
.
isValid
()
&&
m_fxItemNode
.
anchors
().
instanceHasAnchor
(
AnchorLine
::
Right
);
}
bool
QmlAnchorBindingProxy
::
hasAnchors
()
{
return
m_fxItemNode
.
anchors
().
instanceHasAnchors
();
return
m_fxItemNode
.
isValid
()
&&
m_fxItemNode
.
anchors
().
instanceHasAnchors
();
}
...
...
@@ -258,18 +258,21 @@ void QmlAnchorBindingProxy::setHorizontalCentered(bool centered)
bool
QmlAnchorBindingProxy
::
verticalCentered
()
{
return
m_fxItemNode
.
anchors
().
instanceHasAnchor
(
AnchorLine
::
VerticalCenter
);
return
m_fxItemNode
.
isValid
()
&&
m_fxItemNode
.
anchors
().
instanceHasAnchor
(
AnchorLine
::
VerticalCenter
);
}
bool
QmlAnchorBindingProxy
::
horizontalCentered
()
{
return
m_fxItemNode
.
anchors
().
instanceHasAnchor
(
AnchorLine
::
HorizontalCenter
);
return
m_fxItemNode
.
isValid
()
&&
m_fxItemNode
.
anchors
().
instanceHasAnchor
(
AnchorLine
::
HorizontalCenter
);
}
void
QmlAnchorBindingProxy
::
fill
()
{
m_fxItemNode
.
anchors
().
fill
();
setHorizontalCentered
(
false
);
setVerticalCentered
(
false
);
m_fxItemNode
.
anchors
().
setMargin
(
AnchorLine
::
Right
,
0
);
m_fxItemNode
.
anchors
().
setMargin
(
AnchorLine
::
Left
,
0
);
m_fxItemNode
.
anchors
().
setMargin
(
AnchorLine
::
Top
,
0
);
...
...
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