Commit 3cf2a08b authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: Change size of XttGe window.

parent ddab0e12
...@@ -265,7 +265,6 @@ XttGeQt::XttGeQt(void* xg_parent_ctx, const char* xg_name, ...@@ -265,7 +265,6 @@ XttGeQt::XttGeQt(void* xg_parent_ctx, const char* xg_name,
// Qt // Qt
if (!(options & ge_mOptions_Embedded)) { if (!(options & ge_mOptions_Embedded)) {
toplevel = new XttGeQtWidget(this); toplevel = new XttGeQtWidget(this);
toplevel->setMinimumSize(window_width, window_height);
toplevel->setWindowTitle(QString::fromLatin1(title)); toplevel->setWindowTitle(QString::fromLatin1(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose); toplevel->setAttribute(Qt::WA_DeleteOnClose);
...@@ -378,9 +377,8 @@ XttGeQt::XttGeQt(void* xg_parent_ctx, const char* xg_name, ...@@ -378,9 +377,8 @@ XttGeQt::XttGeQt(void* xg_parent_ctx, const char* xg_name,
grow_GetZoom(graph->grow->ctx, &zoom); grow_GetZoom(graph->grow->ctx, &zoom);
window_width = zoom * (x1 - x0); window_width = zoom * (x1 - x0);
window_height = zoom * (y1 - y0); window_height = zoom * (y1 - y0);
toplevel->setMinimumSize(window_width, window_height);
} }
toplevel->setMinimumSize(window_width, window_height);
} }
void XttGeQt::create_confirm_dialog() void XttGeQt::create_confirm_dialog()
...@@ -395,4 +393,4 @@ void XttGeQt::create_confirm_dialog() ...@@ -395,4 +393,4 @@ void XttGeQt::create_confirm_dialog()
SLOT(activate_confirm_cancel())); SLOT(activate_confirm_cancel()));
::pop(confirm_widget); ::pop(confirm_widget);
} }
\ No newline at end of file
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