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
2424439f
Unverified
Commit
2424439f
authored
6 years ago
by
Ian Bush
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #23078 from mantidproject/16440_DoubleClickForColumnOptions
Double click table column heading for column options
parents
810500e3
5b8e133b
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MantidPlot/src/Table.cpp
+4
-0
4 additions, 0 deletions
MantidPlot/src/Table.cpp
MantidPlot/src/Table.h
+1
-0
1 addition, 0 deletions
MantidPlot/src/Table.h
with
5 additions
and
0 deletions
MantidPlot/src/Table.cpp
+
4
−
0
View file @
2424439f
...
@@ -128,10 +128,14 @@ Table::Table(ScriptingEnv *env, int rows, int cols, const QString &label,
...
@@ -128,10 +128,14 @@ Table::Table(ScriptingEnv *env, int rows, int cols, const QString &label,
SLOT
(
cellEdited
(
int
,
int
)));
SLOT
(
cellEdited
(
int
,
int
)));
connect
(
d_table
,
SIGNAL
(
itemSelectionChanged
()),
this
,
connect
(
d_table
,
SIGNAL
(
itemSelectionChanged
()),
this
,
SLOT
(
recordSelection
()));
SLOT
(
recordSelection
()));
connect
(
d_table
->
horizontalHeader
(),
SIGNAL
(
sectionDoubleClicked
(
int
)),
this
,
SLOT
(
onColumnHeaderDoubleClick
()));
setAutoUpdateValues
(
applicationWindow
()
->
autoUpdateTableValues
());
setAutoUpdateValues
(
applicationWindow
()
->
autoUpdateTableValues
());
}
}
void
Table
::
onColumnHeaderDoubleClick
()
{
emit
optionsDialog
();
}
void
Table
::
setAutoUpdateValues
(
bool
on
)
{
void
Table
::
setAutoUpdateValues
(
bool
on
)
{
if
(
on
)
{
if
(
on
)
{
connect
(
this
,
SIGNAL
(
modifiedData
(
Table
*
,
const
QString
&
)),
this
,
connect
(
this
,
SIGNAL
(
modifiedData
(
Table
*
,
const
QString
&
)),
this
,
...
...
This diff is collapsed.
Click to expand it.
MantidPlot/src/Table.h
+
1
−
0
View file @
2424439f
...
@@ -173,6 +173,7 @@ public slots:
...
@@ -173,6 +173,7 @@ public slots:
void
moveCurrentCell
();
void
moveCurrentCell
();
bool
isEmptyRow
(
int
row
);
bool
isEmptyRow
(
int
row
);
bool
isEmptyColumn
(
int
col
);
bool
isEmptyColumn
(
int
col
);
void
onColumnHeaderDoubleClick
();
void
print
()
override
;
void
print
()
override
;
void
print
(
const
QString
&
fileName
);
void
print
(
const
QString
&
fileName
);
...
...
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