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
a9f7bd32
Commit
a9f7bd32
authored
Jul 31, 2019
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: xtt_ge widget can made smaller than initial size.
parent
845ab2c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
13 deletions
+7
-13
xtt/lib/xtt/qt/xtt_ge_qt.cqt
xtt/lib/xtt/qt/xtt_ge_qt.cqt
+4
-2
xtt/lib/xtt/qt/xtt_methodtoolbar_qt.cqt
xtt/lib/xtt/qt/xtt_methodtoolbar_qt.cqt
+3
-11
No files found.
xtt/lib/xtt/qt/xtt_ge_qt.cqt
View file @
a9f7bd32
...
...
@@ -367,6 +367,8 @@ XttGeQt::XttGeQt(void* xg_parent_ctx, const char* xg_name,
graph->sound_cb = &ge_sound_cb;
graph->eventlog_cb = &ge_eventlog_cb;
grow_widget->setMinimumSize(window_width, window_height);
QObject::connect(((GraphQt*)graph)->grow_widget,
SIGNAL(resize_signal(QResizeEvent*)), toplevel,
SLOT(action_resize(QResizeEvent*)));
...
...
@@ -435,7 +437,7 @@ XttGeQt::XttGeQt(void* xg_parent_ctx, const char* xg_name,
toplevel->setVisible(false);
}
} else {
this->graph_form->
setMinimumS
ize(window_width, window_height);
this->graph_form->
res
ize(window_width, window_height);
}
if (borders) {
...
...
@@ -456,7 +458,7 @@ XttGeQt::XttGeQt(void* xg_parent_ctx, const char* xg_name,
min_aspect = double(window_width) / window_height * (1.0 - rd);
max_aspect = double(window_width) / window_height * (1.0 + rd);
toplevel->
setMinimumS
ize(window_width, window_height);
toplevel->
res
ize(window_width, window_height);
}
void XttGeQt::create_confirm_dialog()
...
...
xtt/lib/xtt/qt/xtt_methodtoolbar_qt.cqt
View file @
a9f7bd32
...
...
@@ -243,21 +243,13 @@ void XttMethodToolbarQt::set_current_sensitive()
for (int i = 0; i < GeMethods::opmeth_size; i++) {
if (m_op_method_mask & (1 << i)
&& !streq(GeMethods::op_image[i], "")) {
if (xm_mask.OpMethods & (1 << i)) {
m_op_button_w[i]->setEnabled(true);
} else {
m_op_button_w[i]->setEnabled(false);
}
m_op_button_w[i]->setEnabled(xm_mask.OpMethods & (1 << i));
}
}
for (int i = 0; i < GeMethods::mntmeth_size; i++) {
if (m_mnt_method_mask & (1 << i)
&& !streq(GeMethods::mnt_image[i], "")) {
if (xm_mask.MntMethods & (1 << i)) {
m_mnt_button_w[i]->setEnabled(true);
} else {
m_mnt_button_w[i]->setEnabled(false);
}
m_mnt_button_w[i]->setEnabled(xm_mask.MntMethods & (1 << i));
}
}
if (mask_store) {
...
...
@@ -268,4 +260,4 @@ void XttMethodToolbarQt::set_current_sensitive()
}
}
}
}
\ No newline at end of file
}
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