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
ab4eb7a992eb
Commit
a96dd39c
authored
Dec 14, 2010
by
Steve Borho
Browse files
workbench: add task tab actions to main toolbar
parent
f3b6301f950d
Changes
1
Hide whitespace changes
Inline
Side-by-side
tortoisehg/hgqt/workbench.py
View file @
ab4eb7a9
...
...
@@ -116,6 +116,8 @@ class Workbench(QMainWindow):
self
.
addToolBar
(
self
.
docktbar
)
self
.
synctbar
=
QToolBar
(
_
(
'Sync Toolbar'
),
objectName
=
'synctbar'
)
self
.
addToolBar
(
self
.
synctbar
)
self
.
tasktbar
=
QToolBar
(
_
(
'Task Toolbar'
),
objectName
=
'taskbar'
)
self
.
addToolBar
(
self
.
tasktbar
)
self
.
mqtbar
=
QToolBar
(
_
(
"MQ Toolbar"
),
objectName
=
'mqtbar'
)
self
.
addToolBar
(
self
.
mqtbar
)
...
...
@@ -222,6 +224,7 @@ class Workbench(QMainWindow):
a
=
newaction
(
label
,
icon
=
icon
,
checkable
=
True
,
data
=
index
,
enabled
=
'repoopen'
,
menu
=
'view'
)
self
.
actionGroupTaskView
.
addAction
(
a
)
self
.
tasktbar
.
addAction
(
a
)
return
a
# NOTE: Sequence must match that in repowidget.py
addtaskview
(
'log'
,
_
(
"Revision &Details"
))
...
...
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