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
2f99dd88
Commit
2f99dd88
authored
Jun 05, 2019
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Change "View all toplevel" to a checkbox.
parent
10945ff6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
+5
-10
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
+2
-2
No files found.
wb/lib/wb/qt/wb_wtt_qt.cqt
View file @
2f99dd88
...
...
@@ -1292,13 +1292,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);
}
...
...
@@ -2055,8 +2050,8 @@ WttQt::WttQt(void* wt_parent_ctx, const char* wt_name, const char* iconname,
"zoom-original");
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 @
2f99dd88
...
...
@@ -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