Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Esteban Blanc
proview
Commits
aac4be4e
Commit
aac4be4e
authored
Nov 30, 2020
by
Christoffer Ackelman
Committed by
Esteban Blanc
Dec 23, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Change the 'View all toplevel' menu button in the workbench to a checkbox.
parent
69c2b407
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
wb/lib/wb/qt/wb_wtt_qt.cqt
wb/lib/wb/qt/wb_wtt_qt.cqt
+3
-8
wb/lib/wb/qt/wb_wtt_qt.h
wb/lib/wb/qt/wb_wtt_qt.h
+1
-1
No files found.
wb/lib/wb/qt/wb_wtt_qt.cqt
View file @
aac4be4e
...
...
@@ -1294,13 +1294,8 @@ void WttQtWidget::activate_twowindows()
wtt->activate_twowindows();
}
void WttQtWidget::activate_set_alltoplevel()
void WttQtWidget::activate_set_alltoplevel(
bool set
)
{
int set = ((int)((WttQt*)wtt)->view_alltoplevel_w->isChecked());
if (sender() != ((WttQt*)wtt)->view_alltoplevel_w) {
set = !set;
((WttQt*)wtt)->view_alltoplevel_w->setChecked(set);
}
wtt->activate_set_alltoplevel(set);
}
...
...
@@ -2057,8 +2052,8 @@ WttQt::WttQt(void* wt_parent_ctx, const char* wt_name, const char* iconname,
"$pwr_exe/xtt_zoom_reset.png");
addMenuItem(
toplevel, view, "T&wo Windows", SLOT(activate_twowindows()), "CTRL+T");
view_alltoplevel_w = addMenuItem(
toplevel, view, "V&iew all toplevel", SLOT(activate_set_alltoplevel()));
view_alltoplevel_w = add
Checkable
MenuItem(
toplevel, view, "V&iew all toplevel", SLOT(activate_set_alltoplevel(
bool
)));
addMenuItem(toplevel, view, "&Messages", SLOT(activate_messages()));
// Options menu
...
...
wb/lib/wb/qt/wb_wtt_qt.h
View file @
aac4be4e
...
...
@@ -287,7 +287,7 @@ public slots:
void
activate_zoom_out
();
void
activate_zoom_reset
();
void
activate_twowindows
();
void
activate_set_alltoplevel
();
void
activate_set_alltoplevel
(
bool
set
);
void
activate_messages
();
void
activate_view
();
void
activate_savesettings
();
...
...
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