Commit 279b1f38 authored by Christoffer Ackelman's avatar Christoffer Ackelman

Fixed error caused by QT widget (CoWow) not forwarding events to parent widget.

parent 47f3a019
......@@ -61,7 +61,7 @@ WbBckWQt::WbBckWQt(void *bckw_parent_ctx, QWidget *bckw_parent_wid,
status)
{
toplevel = new WbBckWQtWidget(this, bckw_parent_wid);
toplevel->setToolTip(fl("WbBckWQt widget"));
toplevel->setToolTip(fl("wb_bckw widget"));
toplevel->setMinimumSize(1100, 600);
toplevel->setWindowTitle(fl(bckw_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -50,7 +50,6 @@
#include "wb_expw_qt.h"
#include "wb_expwnav_qt.h"
#include "cow_wow_qt.h"
#include "../../../../xtt/lib/cow/qt/cow_wow_qt.h"
#include <QMenuBar>
#include <QVBoxLayout>
......@@ -62,6 +61,7 @@ WbExpWQt::WbExpWQt(void *expw_parent_ctx, QWidget *expw_parent_wid,
status)
{
toplevel = new WbExpWQtWidget(this, expw_parent_wid);
toplevel->setToolTip(fl("wb_expw widget"));
toplevel->setMinimumSize(1100, 600);
toplevel->setWindowTitle(fl(expw_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -541,6 +541,7 @@ pwr_tStatus WFoeQt::create_window(int x_top, int y_top, int width_adb,
{
pwr_tStatus sts;
toplevel->setToolTip(fl("wb_foe widget"));
toplevel->setMinimumSize(1100, 1000);
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -164,6 +164,7 @@ WUtedQt::WUtedQt(void *wu_parent_ctx, QWidget *wu_parent_wid,
wu_editmode, wu_quit_cb, status)
{
toplevel = new WUtedQtWidget(this, wu_parent_wid);
toplevel->setToolTip(fl("wb_uted widget"));
toplevel->setMinimumSize(800, 400);
toplevel->setWindowTitle(fl("Wb Utilities"));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -258,6 +258,7 @@ WVselQt::WVselQt(pwr_tStatus *status, void *wv_parent_ctx,
// Create the window
toplevel = new WVselQtWidget(this, wv_parent_wid);
toplevel->setToolTip(fl("wb_vsel widget"));
toplevel->setMinimumSize(500, 400);
toplevel->setWindowTitle(fl(name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -54,7 +54,6 @@
#include "wb_wtt.h"
#include "wb_wnav.h"
#include "cow_xhelp.h"
#include "../../../../xtt/lib/cow/qt/cow_wow_qt.h"
#include <QDialogButtonBox>
#include <QMenuBar>
......@@ -376,6 +375,7 @@ WAttQt::WAttQt(QWidget *wa_parent_wid, void *wa_parent_ctx,
if (EVEN(sts)) { return; }
toplevel = new WAttQtWidget(this, wa_parent_wid);
toplevel->setToolTip(fl("wb_watt widget"));
toplevel->setFixedSize(410, 570);
toplevel->setWindowTitle(fl(namep));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -53,7 +53,6 @@
#include "wb_wtt.h"
#include "wb_wnav.h"
#include "cow_xhelp.h"
#include "../../../../xtt/lib/cow/qt/cow_wow_qt.h"
#include <QApplication>
#include <QClipboard>
......@@ -213,6 +212,7 @@ WAttTextQt::WAttTextQt(QWidget *wa_parent_wid, void *wa_parent_ctx,
}
toplevel = new WAttTextQtWidget(this, wa_parent_wid);
toplevel->setToolTip(fl("wb_watttext widget"));
toplevel->setFixedSize(800, 700);
toplevel->setWindowTitle(fl(namep));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -400,6 +400,7 @@ WdaQt::WdaQt(QWidget *wa_parent_wid, void *wa_parent_ctx,
int sts;
toplevel = new WdaQtWidget(this, wa_parent_wid);
toplevel->setToolTip(fl("wb_wda widget"));
toplevel->setFixedSize(700, 700);
toplevel->setWindowTitle(fl("Spreadsheet Editor"));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -221,6 +221,7 @@ WGeQt::WGeQt(QWidget *wge_parent_wid, void *wge_parent_ctx, char *wge_name,
// Qt
toplevel = new WGeQtWidget(this, wge_parent_wid);
toplevel->setToolTip(fl("wb_wge widget"));
toplevel->setMinimumSize(window_width, window_height);
toplevel->setWindowTitle(fl(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -139,6 +139,7 @@ WNavQt::WNavQt(void *xn_parent_ctx, QWidget *xn_parent_wid, const char *xn_name,
wow = new CoWowQt(parent_wid);
toplevel = scrolledbrow;
toplevel->setToolTip(fl("wb_wnav widget"));
*status = 1;
}
......
......@@ -60,7 +60,6 @@
#include "wb_log.h"
#include "cow_logw_qt.h"
#include "cow_xhelp.h"
#include "../../../../xtt/lib/cow/qt/cow_wow_qt.h"
#include <QMenuBar>
#include <QVBoxLayout>
......@@ -157,6 +156,7 @@ WPkgQt::WPkgQt(QWidget *wa_parent_wid, void *wa_parent_ctx)
int sts;
toplevel = new WPkgQtWidget(this, wa_parent_wid);
toplevel->setToolTip(fl("wb_wpkg widget"));
toplevel->setMinimumSize(600, 600);
toplevel->setWindowTitle(fl("Distributor"));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -60,8 +60,6 @@
#include "wb_log.h"
#include "cow_logw_qt.h"
#include "cow_xhelp.h"
#include "../../../../xtt/lib/cow/qt/cow_qt_helpers.h"
#include "../../../../xtt/lib/cow/qt/cow_wow_qt.h"
#include <QDialogButtonBox>
#include <QMenuBar>
......@@ -147,6 +145,7 @@ WRevQt::WRevQt(QWidget *wa_parent_wid, void *wa_parent_ctx,
int sts;
toplevel = new WRevQtWidget(this, wa_parent_wid);
toplevel->setToolTip(fl("wb_wrev widget"));
toplevel->setMinimumSize(700, 300);
toplevel->setWindowTitle(fl("Revisions"));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -1962,6 +1962,7 @@ WttQt::WttQt(void *wt_parent_ctx, QWidget *wt_parent_wid, const char *wt_name,
// Qt
toplevel = new WttQtWidget(this, wt_parent_wid);
toplevel->setToolTip(fl("wb_wtt widget"));
toplevel->setMinimumSize(window_width, window_height);
toplevel->setWindowTitle(fl(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -128,6 +128,7 @@ WCrrQt::WCrrQt(QWidget *xa_parent_wid, void *xa_parent_ctx,
strncpy(title, namep, sizeof(title));
toplevel = new WCrrQtWidget(this, xa_parent_wid);
toplevel->setToolTip(fl("wb_xcrr widget"));
toplevel->setMinimumSize(600, 420);
toplevel->setWindowTitle(convert_utf8(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -108,6 +108,7 @@ CoLoginQt::CoLoginQt(void *wl_parent_ctx, QWidget *wl_parent_wid,
{
// Create an input dialog
toplevel = new CoLoginQtWidget(this, wl_parent_wid);
toplevel->setToolTip(fl("cow_login widget"));
toplevel->setMinimumSize(500, 200);
toplevel->setWindowTitle(fl("Proview Login"));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -58,6 +58,7 @@ CoLogWQt::CoLogWQt(void *logw_parent_ctx, QWidget *logw_parent_wid,
: CoLogW(logw_parent_ctx, logw_name, l_show_item, status)
{
toplevel = new CoLogWQtWidget(this, logw_parent_wid);
toplevel->setToolTip(fl("cow_logw widget"));
toplevel->setMinimumSize(800, 600);
toplevel->setWindowTitle(fl(logw_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -66,7 +66,7 @@ MsgWindowQt::MsgWindowQt(void *msg_parent_ctx, QWidget *msg_parent_wid,
: MsgWindow(msg_parent_ctx, msg_name, status)
{
toplevel = new MsgWindowQtWidget(this, msg_parent_wid);
toplevel->setToolTip(fl("MsgWindowQt widget"));
toplevel->setToolTip(fl("cow_msgwindow widget"));
toplevel->setFixedSize(800, 600);
toplevel->setWindowTitle(translate_utf8(msg_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......@@ -98,7 +98,6 @@ MsgWindowQt::MsgWindowQt(void *msg_parent_ctx, QWidget *msg_parent_wid,
msgnav->find_ge_cb = MsgWindow::msgw_find_ge_cb;
form->setMenuBar(menu_bar);
nav_widget->setToolTip(fl("MsgList widget"));
add_expanding(form, nav_widget);
toplevel->setLayout(form);
......
......@@ -102,6 +102,7 @@ RtMonQt::RtMonQt(void *rtmon_parent_ctx, QWidget *rtmon_parent_wid,
strcat(title, rtmon_name);
toplevel = new RtMonQtWidget(this, rtmon_parent_wid);
toplevel->setToolTip(fl("cow_rtmon widget"));
toplevel->setMinimumSize(480, 340);
toplevel->setWindowTitle(fl(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -84,6 +84,7 @@ NodelistQt::NodelistQt(void *nodelist_parent_ctx, QWidget *nodelist_parent_wid,
pwr_tStatus sts;
toplevel = new NodelistQtWidget(this, nodelist_parent_wid);
toplevel->setToolTip(fl("cow_statusmon_nodelist widget"));
toplevel->setFixedSize(850, 300);
toplevel->setWindowTitle(fl(nodelist_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -127,6 +127,7 @@ CowTreeQt::CowTreeQt(QWidget *a_parent_wid, void *a_parent_ctx,
int sts;
toplevel = new CowTreeQtWidget(this, a_parent_wid);
toplevel->setToolTip(fl("cow_tree widget"));
toplevel->setMinimumSize(600, 400);
toplevel->setWindowTitle(fl(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -104,7 +104,7 @@ void CoWowQt::DisplayQuestion(void *ctx, const char *title, const char *text,
void *data)
{
QMessageBox::StandardButton reply =
QMessageBox::question(object, translate_utf8(title), translate_utf8(text));
QMessageBox::question(object->parent_wid, translate_utf8(title), translate_utf8(text));
if (reply == QMessageBox::Yes) {
if (questionbox_ok) {
......@@ -137,7 +137,7 @@ void CoWowQt::CreateInputDialog(void *ctx, const char *title, const char *text,
bool ok;
QString str =
QInputDialog::getText(object, translate_utf8(title), translate_utf8(text),
QInputDialog::getText(object->parent_wid, translate_utf8(title), translate_utf8(text),
QLineEdit::Normal, temp_txt, &ok);
if (ok) {
QByteArray ba = str.toLatin1();
......@@ -172,7 +172,7 @@ void CoWowQt::DisplayError(const char *title, const char *text,
}
QMessageBox msgBox(QMessageBox::Critical, fl(title), ctext,
QMessageBox::NoButton, object->window());
QMessageBox::NoButton, object->parent_wid->window());
QDialogButtonBox *buttonBox = qFindChild<QDialogButtonBox *>(&msgBox);
Q_ASSERT(buttonBox != 0);
......@@ -194,7 +194,7 @@ void CoWowQt::DisplayError(const char *title, const char *text,
void CoWowQt::DisplayText(const char *title, const char *text, int width,
int height)
{
QMessageBox::information(object, translate_utf8(title),
QMessageBox::information(object->parent_wid, translate_utf8(title),
QString::fromLatin1(text));
}
......@@ -314,7 +314,7 @@ void *CoWowQt::CreateList(const char *title, const char *texts, int textsize,
int show_apply_button)
{
CoWowListWidgetQt *tree =
new CoWowListWidgetQt(object, title, texts, textsize, action_cb,
new CoWowListWidgetQt(object->parent_wid, title, texts, textsize, action_cb,
cancel_cb, parent_ctx, show_apply_button);
return tree;
}
......@@ -384,7 +384,7 @@ QString loadText(string filename)
}
CoWowWarrantQt::CoWowWarrantQt(CoWowQtObject *parent)
: QDialog(parent)
: QDialog(parent->parent_wid)
{
QVBoxLayout *main_layout = new QVBoxLayout();
......@@ -502,7 +502,7 @@ void CoWowQt::CreateFileSelDia(const char *title, void *parent_ctx,
{
pwr_tFileName fname;
QFileDialog dialog(object);
QFileDialog dialog(object->parent_wid);
pwr_tFileName folder;
QString filter;
......@@ -530,7 +530,7 @@ void CoWowQt::CreateFileSelDia(const char *title, void *parent_ctx,
}
QString filename =
QFileDialog::getOpenFileName(object, fl(title), fl(folder), filter);
QFileDialog::getOpenFileName(object->parent_wid, fl(title), fl(folder), filter);
if (!filename.isNull()) {
QByteArray ba = filename.toLocal8Bit();
......@@ -854,7 +854,7 @@ int CoWowQt::CreateModalDialog(const char *title, const char *text,
const char *button3, const char *image)
{
QDialog *dialog_w =
new CoWowModalDialogQt(object, title, text, button1, button2, button3,
new CoWowModalDialogQt(object->parent_wid, title, text, button1, button2, button3,
image);
return dialog_w->exec();
}
......@@ -869,7 +869,7 @@ wow_sModalInputDialog *CoWowQt::CreateModalInputDialog(const char *title,
CoWowRecall *recall)
{
CoWowModalDialogQt *dialog_w =
new CoWowModalDialogQt(object, title, text, button1, button2, button3,
new CoWowModalDialogQt(object->parent_wid, title, text, button1, button2, button3,
image, input_length, recall);
int status = dialog_w->exec();
......@@ -897,7 +897,7 @@ pwr_tStatus CoWowQt::CreateMenuItem(const char *name, void *menu, int pixmap,
if (!name_cnt) { return 0; }
if (name_cnt == 1) {
*(QMenu **) w = new QMenu(translate_utf8(name_array[0]), object);
*(QMenu **) w = new QMenu(translate_utf8(name_array[0]), object->parent_wid);
if (pixmap != wow_ePixmap_No && pixmap < wow_ePixmap__) {
switch (pixmap) {
......@@ -928,7 +928,7 @@ pwr_tStatus CoWowQt::CreateMenuItem(const char *name, void *menu, int pixmap,
if (!child) {
// Create the menu item
QMenu *item = new QMenu(translate_utf8(name_array[i]), object);
QMenu *item = new QMenu(translate_utf8(name_array[i]), object->parent_wid);
if (i == name_cnt - 1 && pixmap != wow_ePixmap_No &&
pixmap <= wow_ePixmap__) {
switch (pixmap) {
......@@ -1120,7 +1120,7 @@ void CoWowQt::update_title(QWidget *w, int editmode)
}
CoWowQt::CoWowQt(QWidget *parent) {
object = new CoWowQtObject(this, parent);
object = new CoWowQtObject(parent);
}
CoWowQt::~CoWowQt() {
......@@ -1129,5 +1129,5 @@ CoWowQt::~CoWowQt() {
void CoWowQt::SetParent(QWidget *parent)
{
object->setParent(parent);
object->parent_wid = parent;
}
\ No newline at end of file
......@@ -272,21 +272,18 @@ public:
static void update_title(QWidget *w, int editmode);
};
class CoWowQtObject : public QWidget {
class CoWowQtObject : public QObject {
Q_OBJECT
public:
CoWowQtObject(CoWowQt *parent_ctx, QWidget *parent) : QWidget(parent),
wow(parent_ctx) {}
CoWowQtObject(QWidget *parent) : QObject(), parent_wid(parent) {}
QWidget *parent_wid;
public slots:
void DisplayWarranty();
void DisplayLicense();
void wait_cb();
private:
CoWowQt *wow;
};
#endif
\ No newline at end of file
......@@ -205,6 +205,7 @@ CoXHelpQt::CoXHelpQt(QWidget *xa_parent_wid, void *xa_parent_ctx,
strcpy(title, Lng::translate("Help"));
toplevel = new CoXHelpQtWidget(this, xa_parent_wid);
toplevel->setToolTip(fl("cow_xhelp widget"));
toplevel->setFixedSize(700, 600);
toplevel->setWindowTitle(fl(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -313,6 +313,7 @@ AttrQt::AttrQt(QWidget *a_parent_wid, void *a_parent_ctx, attr_eType a_type,
if (!embedded) {
toplevel = new AttrQtWidget(this, a_parent_wid);
toplevel->setToolTip(fl("ge_attr widget"));
toplevel->setMinimumSize(500, 700);
toplevel->setWindowTitle(fl("Object Attributes"));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -646,6 +646,7 @@ GeCurveQt::GeCurveQt(void *gc_parent_ctx, QWidget *parent_widget,
// Qt
toplevel = new GeCurveQtWidget(this, parent_widget);
toplevel->setToolTip(fl("ge_curve widget"));
if (!(options & curve_mOptions_Embedded)) {
toplevel->setMinimumSize(window_width, window_height);
toplevel->setWindowTitle(convert_utf8(title));
......
......@@ -1347,6 +1347,7 @@ GeQt::GeQt(void *x_parent_ctx, QWidget *x_parent_widget,
}
toplevel = new GeQtWidget(this, x_parent_widget);
toplevel->setToolTip(fl("ge widget"));
toplevel->setMinimumSize(window_width, window_height);
toplevel->setWindowTitle(fl(title));
......
......@@ -62,7 +62,6 @@ extern "C" {
#include "ge_attr_qt.h"
#include "ge_subgraphs_qt.h"
#include "ge_graph.h"
#include "../../flow/src/flow_browapi.h"
#include <QMenuBar>
#include <QVBoxLayout>
......@@ -136,6 +135,7 @@ SubGraphsQt::SubGraphsQt(void *xn_parent_ctx, QWidget *xn_parent_wid,
parent_wid(xn_parent_wid)
{
toplevel = new SubGraphsQtWidget(this, xn_parent_wid);
toplevel->setToolTip(fl("ge_subgraphs widget"));
toplevel->setMinimumSize(300, 500);
toplevel->setWindowTitle(fl(name));
......
......@@ -45,7 +45,6 @@
#include "co_lng.h"
#include "cow_wow_qt.h"
#include "co_msg.h"
#include "../../cow/qt/cow_wow_qt.h"
#include <QButtonGroup>
#include <QDialogButtonBox>
......@@ -142,6 +141,7 @@ BlockQt::BlockQt(void *b_parent_ctx, QWidget *b_parent_wid, pwr_sAttrRef *b_oar,
strcat(title, " ");
strcat(title, aname);
toplevel->setToolTip(fl("xtt_block widget"));
toplevel->setMinimumSize(500, 300);
toplevel->setWindowTitle(fl(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -53,7 +53,6 @@
#include "rt_xnav_msg.h"
#include "xtt_clog_qt.h"
#include "xtt_clognav_qt.h"
#include "../../cow/qt/cow_wow_qt.h"
#include <QDialogButtonBox>
#include <QLabel>
......@@ -77,6 +76,7 @@ CLogQt::CLogQt(void *clog_parent_ctx, QWidget *clog_parent_wid,
filter_form(0)
{
toplevel = new CLogQtWidget(this, clog_parent_wid);
toplevel->setToolTip(fl("xtt_clog widget"));
toplevel->setMinimumSize(1000, 800);
toplevel->setWindowTitle(translate_utf8(clog_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -134,6 +134,7 @@ EvQt::EvQt(void *ev_parent_ctx, QWidget *ev_parent_wid, char *eve_name,
parent_wid_eve = new CallbackWidget(this, &EvQt::eve_activate_exit,
&EvQt::eve_action_inputfocus);
parent_wid_eve->setMinimumSize(eve_width, eve_height);
parent_wid_eve->setToolTip(fl("xtt_ev eve widget"));
parent_wid_eve->setWindowTitle(translate_utf8(eve_name));
parent_wid_eve->setAttribute(Qt::WA_DeleteOnClose);
......@@ -239,6 +240,7 @@ EvQt::EvQt(void *ev_parent_ctx, QWidget *ev_parent_wid, char *eve_name,
{
parent_wid_ala = new CallbackWidget(this, &EvQt::ala_activate_exit,
&EvQt::ala_action_inputfocus);
parent_wid_eve->setToolTip(fl("xtt_ev ala widget"));
parent_wid_ala->setMinimumSize(ala_width, ala_height);
parent_wid_ala->setWindowTitle(translate_utf8(ala_name));
parent_wid_ala->setAttribute(Qt::WA_DeleteOnClose);
......@@ -379,6 +381,7 @@ EvQt::EvQt(void *ev_parent_ctx, QWidget *ev_parent_wid, char *eve_name,
{
parent_wid_blk = new CallbackWidget(this, &EvQt::blk_activate_exit,
&EvQt::blk_action_inputfocus);
parent_wid_eve->setToolTip(fl("xtt_ev blk widget"));
parent_wid_blk->setMinimumSize(blk_width, blk_height);
parent_wid_blk->setWindowTitle(translate_utf8(blk_name));
parent_wid_blk->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -97,6 +97,7 @@ EvAlaQt::EvAlaQt(void *ev_parent_ctx, QWidget *ev_parent_wid, char *ala_name,
if (!(options & ev_mAlaOptions_Embedded)) {
toplevel = new EvAlaQtWidget(this, ev_parent_wid);
toplevel->setToolTip(fl("xtt_evala widget"));
toplevel->setMinimumSize(ala_width, ala_height);
toplevel->setWindowTitle(translate_utf8(ala_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -94,6 +94,7 @@ EvEveQt::EvEveQt(void *ev_parent_ctx, QWidget *ev_parent_wid, char *eve_name,
// Eve Window
if (!(options & ev_mAlaOptions_Embedded)) {
toplevel = new EvEveQtWidget(this, ev_parent_wid);
toplevel->setToolTip(fl("xtt_eveve widget"));
toplevel->setMinimumSize(eve_width, eve_height);
toplevel->setWindowTitle(translate_utf8(eve_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -159,6 +159,7 @@ XttFileviewQt::XttFileviewQt(void *xn_parent_ctx, QWidget *xn_parent_wid,
}
toplevel = new XttFileviewQtWidget(this, xn_parent_wid);
toplevel->setToolTip(fl("xtt_fileview widget"));
toplevel->setMinimumSize(500, 500);
toplevel->setWindowTitle(translate_utf8(xn_title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -296,6 +296,7 @@ XttGeQt::XttGeQt(QWidget *xg_parent_wid, void *xg_parent_ctx,
// Qt
if (!(options & ge_mOptions_Embedded)) {
toplevel = new XttGeQtWidget(this, xg_parent_wid);
toplevel->setToolTip(fl("xtt_ge widget"));
toplevel->setMinimumSize(window_width, window_height);
toplevel->setWindowTitle(QString::fromLatin1(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -98,6 +98,7 @@ HistQt::HistQt(void *hist_parent_ctx, QWidget *hist_parent_wid, char *hist_name,
// Qt
toplevel = new HistQtWidget(this, hist_parent_wid);
toplevel->setToolTip(fl("xtt_hist widget"));
toplevel->setMinimumSize(hist_width, hist_height);
toplevel->setWindowTitle(translate_utf8(hist_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -83,6 +83,7 @@ XttKeyboardQt::XttKeyboardQt(void *xn_parent_ctx, QWidget *xn_parent_wid,
int height = 161;
toplevel = new XttKeyboardQtWidget(this, xn_parent_wid);
toplevel->setToolTip(fl("xtt_keyboard widget"));
toplevel->setMinimumSize(width, height);
toplevel->setWindowTitle(translate_utf8(xn_name));
......
......@@ -191,6 +191,7 @@ XttMultiViewQt::XttMultiViewQt(QWidget *mv_parent_wid, void *mv_parent_ctx,
// Qt
if (!(options & ge_mOptions_Embedded)) {
toplevel = new XttMultiViewQtWidget(this, mv_parent_wid);
toplevel->setToolTip(fl("xtt_multiview widget"));
toplevel->setMinimumSize(window_width, window_height);
toplevel->setWindowTitle(QString::fromLatin1(mv.Title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -58,7 +58,6 @@
#include "glow_growapi.h"
#include "ge_graph.h"
#include "rt_xnav_msg.h"
#include "../../cow/qt/cow_wow_qt.h"
#include <QApplication>
#include <QDesktopWidget>
......@@ -153,6 +152,7 @@ OpQt::OpQt(void *op_parent_ctx, QWidget *op_parent_wid, char *opplace,
white_color = QColor("white");
toplevel = new OpQtWidget(this, op_parent_wid);
toplevel->setToolTip(fl("xtt_op widget"));
toplevel->setMinimumSize(1100, OP_HEIGHT_MIN);
toplevel->setWindowFlags(Qt::CustomizeWindowHint);
......
......@@ -44,7 +44,6 @@
#include "xtt_stream_qt.h"
#include "rt_xnav_msg.h"
#include "cow_wow_qt.h"
#include "../../cow/qt/cow_wow_qt.h"
#include <QHBoxLayout>
#include <QLabel>
......@@ -432,6 +431,7 @@ XttStreamQt::XttStreamQt(QWidget *st_parent_wid, void *st_parent_ctx,
*/
if (!embedded) {
toplevel->setToolTip(fl("xtt_stream widget"));
toplevel->setWindowTitle(QString::fromLatin1(name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -225,6 +225,7 @@ RtTraceQt::RtTraceQt(void *tr_parent_ctx, QWidget *tr_parent_wid,
// Qt
toplevel = new RtTraceQtWidget(this, tr_parent_wid);
toplevel->setToolTip(fl("xtt_trace widget"));
toplevel->setMinimumSize(window_width, window_height);
toplevel->setWindowTitle(QString::fromLatin1(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -328,6 +328,7 @@ XAttQt::XAttQt(QWidget *xa_parent_wid, void *xa_parent_ctx,
cdh_StrncpyCutOff(title, title, 100, 1);
toplevel = new XAttQtWidget(this, xa_parent_wid);
toplevel->setToolTip(fl("xtt_xatt widget"));
toplevel->setFixedSize(420, 600);
toplevel->setWindowTitle(convert_utf8(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -256,6 +256,7 @@ XAttOneQt::XAttOneQt(QWidget *xa_parent_wid, void *xa_parent_ctx,
if (EVEN(*xa_sts)) { return; }
toplevel = new XAttOneQtWidget(this, xa_parent_wid);
toplevel->setToolTip(fl("xtt_xattone widget"));
toplevel->setMinimumSize(500, 200);
toplevel->setWindowTitle(convert_utf8(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -55,7 +55,6 @@
#include "xtt_xnav.h"
#include "cow_wow_qt.h"
#include "rt_xatt_msg.h"
#include "../../cow/qt/cow_wow_qt.h"
#include <QAction>
#include <QDialogButtonBox>
......@@ -381,6 +380,7 @@ XColWindQt::XColWindQt(QWidget *xa_parent_wid, void *xa_parent_ctx,
xattnav_eType xattnav_type;
toplevel = new XColWindQtWidget(this, xa_parent_wid);
toplevel->setToolTip(fl("xtt_xcolwind widget"));
toplevel->setFixedSize(420, 600);
toplevel->setWindowTitle(convert_utf8(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -54,7 +54,6 @@
#include "co_lng.h"
#include "xtt_xnav.h"
#include "rt_xatt_msg.h"
#include "../../cow/qt/cow_wow_qt.h"
#include <QAction>
#include <QMenu>
......@@ -122,6 +121,7 @@ XCrrQt::XCrrQt(QWidget *xa_parent_wid, void *xa_parent_ctx,
if (EVEN(*xa_sts)) { return; }
toplevel = new XCrrQtWidget(this, xa_parent_wid);
toplevel->setToolTip(fl("xtt_xcrr widget"));
toplevel->setFixedSize(600, 420);
toplevel->setWindowTitle(convert_utf8(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
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