Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
b301df61
Commit
b301df61
authored
6 years ago
by
Ian Bush
Browse files
Options
Downloads
Patches
Plain Diff
Refs #22518 Fix an issue on Mac with last active column not hidden
parent
06f3a5c4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
qt/applications/workbench/workbench/widgets/plotselector/view.py
+7
-7
7 additions, 7 deletions
...ications/workbench/workbench/widgets/plotselector/view.py
with
7 additions
and
7 deletions
qt/applications/workbench/workbench/widgets/plotselector/view.py
+
7
−
7
View file @
b301df61
...
...
@@ -167,17 +167,11 @@ class PlotSelectorView(QWidget):
"""
table_widget
=
QTableWidget
(
0
,
3
,
self
)
table_widget
.
setHorizontalHeaderLabels
([
'
No.
'
,
'
Plot Name
'
,
'
Last Active Order (hidden)
'
])
if
not
DEBUG_MODE
:
# Setting the column to be hidden seems to fail on Mac,
# so make double sure and set the column width to 0 here
table_widget
.
setColumnWidth
(
Column
.
LastActive
,
True
)
table_widget
.
setColumnHidden
(
Column
.
LastActive
,
True
)
table_widget
.
verticalHeader
().
setVisible
(
False
)
# Fix the size of 'No.' and let 'Plot Name' fill the space
top_header
=
table_widget
.
horizontalHeader
()
top_header
.
resizeSection
(
Column
.
Number
,
top_header
.
sectionSizeHint
(
Column
.
Number
))
top_header
.
setSectionResizeMode
(
Column
.
Name
,
QHeaderView
.
Stretch
)
table_widget
.
horizontalHeaderItem
(
Column
.
Number
).
setToolTip
(
'
This is the matplotlib figure number.
\n\n
From a
'
'
script use plt.figure(N), where N is this figure
'
...
...
@@ -194,6 +188,12 @@ class PlotSelectorView(QWidget):
table_widget
.
horizontalHeader
().
sectionClicked
.
connect
(
self
.
update_sort_menu_selection
)
if
not
DEBUG_MODE
:
table_widget
.
setColumnHidden
(
Column
.
LastActive
,
True
)
top_header
.
resizeSection
(
Column
.
Number
,
top_header
.
sectionSizeHint
(
Column
.
Number
))
top_header
.
setSectionResizeMode
(
Column
.
Name
,
QHeaderView
.
Stretch
)
return
table_widget
def
_make_context_menu
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment