Commit aec8f68a authored by Christoffer Ackelman's avatar Christoffer Ackelman Committed by Esteban Blanc

QT: The XttGe widget can be made smaller than initial size.

parent a814e4fb
......@@ -304,6 +304,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*)));
......@@ -372,7 +374,7 @@ XttGeQt::XttGeQt(void* xg_parent_ctx, const char* xg_name,
toplevel->setVisible(false);
}
} else {
this->graph_form->setMinimumSize(window_width, window_height);
this->graph_form->resize(window_width, window_height);
}
if (borders) {
......@@ -388,7 +390,7 @@ XttGeQt::XttGeQt(void* xg_parent_ctx, const char* xg_name,
window_width = zoom * (x1 - x0);
window_height = zoom * (y1 - y0);
}
toplevel->setMinimumSize(window_width, window_height);
toplevel->resize(window_width, window_height);
}
void XttGeQt::create_confirm_dialog()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment