Commit 35a0b6a2 authored by Christoffer Ackelman's avatar Christoffer Ackelman

Qt: Minor style change on rt_xtt.

parent 6db23dae
......@@ -603,7 +603,7 @@ XttQt::XttQt(int argc, char* argv[], int* return_sts)
// Qt
toplevel = new XttQtWidget(this);
toplevel->setFixedSize(window_width, window_height);
toplevel->setMinimumSize(window_width, window_height);
toplevel->setWindowTitle(fl(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......@@ -729,8 +729,6 @@ XttQt::XttQt(int argc, char* argv[], int* return_sts)
statusbar->show();
wow = new CoWowQt(toplevel);
xnav = new XNavQt(this, xnav_form, "Plant", &brow_widget,
(xnav_sStartMenu*)root_menu, opplace_str, op_close_button, &sts);
xnav->message_cb = &xtt_message_cb;
......
......@@ -65,12 +65,18 @@ int main(int argc, char* argv[])
if (!found) {
struct stat st;
strcpy(file, "$pwr_exe/rt_xtt_gtk");
strcpy(file, "$pwr_exe/rt_xtt_qt");
dcli_translate_filename(file, file);
if (stat(file, &st) == 0)
strcpy(wmg, "gtk");
else
strcpy(wmg, "motif");
strcpy(wmg, "qt");
else {
strcpy(file, "$pwr_exe/rt_xtt_gtk");
dcli_translate_filename(file, file);
if (stat(file, &st) == 0)
strcpy(wmg, "gtk");
else
strcpy(wmg, "motif");
}
}
strcpy(file, argv[0]);
......
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