Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mercurial
TortoiseHg
thg-hgtk
Commits
6722cbf6b567
Commit
c1fcdf1f
authored
Jan 30, 2011
by
Steve Borho
Browse files
fileview: remove a redunant QVBoxLayout
parent
8f9553e2db57
Changes
1
Hide whitespace changes
Inline
Side-by-side
tortoisehg/hgqt/fileview.py
View file @
6722cbf6
...
...
@@ -87,10 +87,20 @@ class HgFileView(QFrame):
framelayout
.
addLayout
(
self
.
topLayout
)
framelayout
.
addLayout
(
l
,
1
)
ll2
=
QHBoxLayout
()
ll2
.
setContentsMargins
(
0
,
0
,
0
,
0
)
ll2
.
setSpacing
(
0
)
l
.
addLayout
(
ll2
)
self
.
blk
=
blockmatcher
.
BlockList
(
self
)
ll2
.
addWidget
(
self
.
blk
)
self
.
blk
.
setVisible
(
False
)
self
.
_stacked
=
QStackedWidget
()
l
.
addWidget
(
self
.
_stacked
,
1
)
l
l2
.
addWidget
(
self
.
_stacked
,
1
)
self
.
sci
=
qscilib
.
Scintilla
(
self
)
self
.
blk
.
linkScrollBar
(
self
.
sci
.
verticalScrollBar
())
self
.
_stacked
.
addWidget
(
self
.
sci
)
self
.
sci
.
setFrameStyle
(
0
)
...
...
@@ -136,21 +146,6 @@ class HgFileView(QFrame):
self
.
_annotate
.
setAnnotationEnabled
(
True
)
self
.
_stacked
.
addWidget
(
self
.
_annotate
)
ll
=
QVBoxLayout
()
ll
.
setContentsMargins
(
0
,
0
,
0
,
0
)
ll
.
setSpacing
(
0
)
l
.
insertLayout
(
0
,
ll
)
ll2
=
QHBoxLayout
()
ll2
.
setContentsMargins
(
0
,
0
,
0
,
0
)
ll2
.
setSpacing
(
0
)
ll
.
addLayout
(
ll2
)
self
.
blk
=
blockmatcher
.
BlockList
(
self
)
self
.
blk
.
linkScrollBar
(
self
.
sci
.
verticalScrollBar
())
ll2
.
addWidget
(
self
.
blk
)
self
.
blk
.
setVisible
(
False
)
self
.
_ctx
=
None
self
.
_filename
=
None
self
.
_status
=
None
...
...
Write
Preview
Supports
Markdown
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