Commit 8f9c3183 authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: Fixed height on statusbar.

parent 8e68f518
......@@ -97,14 +97,12 @@ PnViewerQt::PnViewerQt(const char* v_name, const char* v_device,
// Statusbar and cmd input
QStatusBar* statusbar = new QStatusBar();
statusbar->setFixedHeight(25);
msg_label = new QLabel("");
msg_label->setFixedHeight(25);
cmd_prompt = new QLabel("value > ");
cmd_prompt->setFixedHeight(25);
value_recall = new CoWowRecall();
cmd_entry = new CoWowEntryQt(value_recall);
cmd_entry->setFixedHeight(25);
QObject::connect(cmd_entry, SIGNAL(returnPressed()), toplevel,
SLOT(valchanged_cmd_entry()));
......
......@@ -271,13 +271,11 @@ GsdAttrQt::GsdAttrQt(QWidget* a_parent_wid, void* a_parent_ctx, void* a_object,
// Status bar and value input
QStatusBar* statusbar = new QStatusBar();
statusbar->setFixedHeight(25);
msg_label = new QLabel("");
msg_label->setFixedHeight(25);
cmd_prompt = new QLabel("value > ");
cmd_prompt->setFixedHeight(25);
cmd_entry = new CoWowEntryQt(&value_recall);
cmd_entry->setFixedHeight(25);
QObject::connect(cmd_entry, SIGNAL(returnPressed()), toplevel,
SLOT(valchanged_cmd_entry()));
......
......@@ -326,13 +326,11 @@ GsdmlAttrQt::GsdmlAttrQt(QWidget* a_parent_wid, void* a_parent_ctx,
// Status bar and value input
QStatusBar* statusbar = new QStatusBar();
statusbar->setFixedHeight(25);
msg_label = new QLabel("");
msg_label->setFixedHeight(25);
cmd_prompt = new QLabel("value > ");
cmd_prompt->setFixedHeight(25);
cmd_entry = new CoWowEntryQt(&value_recall);
cmd_entry->setFixedHeight(25);
QObject::connect(cmd_entry, SIGNAL(returnPressed()), toplevel,
SLOT(valchanged_cmd_entry()));
......
......@@ -299,14 +299,12 @@ XttTblQt::XttTblQt(QWidget* a_parent_wid, void* a_parent_ctx,
// Statusbar and cmd input
QStatusBar* statusbar = new QStatusBar();
statusbar->setFixedHeight(25);
msg_label = new QLabel("");
msg_label->setFixedHeight(25);
cmd_prompt = new QLabel("value > ");
cmd_prompt->setFixedHeight(25);
cmd_recall = new CoWowRecall();
cmd_entry = new CoWowEntryQt(cmd_recall);
cmd_entry->setFixedHeight(25);
QObject::connect(cmd_entry, SIGNAL(returnPressed()), toplevel,
SLOT(valchanged_cmd_input()));
......
......@@ -1026,10 +1026,9 @@ pwr_tStatus WFoeQt::create_window(int x_top, int y_top, int width_adb,
// Statusbar and cmd input
QStatusBar* statusbar = new QStatusBar();
statusbar->setFixedHeight(25);
label = new QLabel("");
label->setFixedHeight(25);
textinput = new QLineEdit();
textinput->setFixedHeight(25);
QObject::connect(textinput, SIGNAL(returnPressed()), toplevel,
SLOT(valchanged_textinput()));
......
......@@ -187,9 +187,8 @@ CowTreeQt::CowTreeQt(QWidget* a_parent_wid, void* a_parent_ctx,
// Statusbar
QStatusBar* statusbar = new QStatusBar();
statusbar->setFixedHeight(25);
msg_label = new QLabel("");
msg_label->setFixedHeight(25);
statusbar->addWidget(msg_label);
treenav = new TreeNavQt(this, toplevel, itemlist, item_cnt, options,
......
......@@ -1872,17 +1872,15 @@ GeQt::GeQt(void* x_parent_ctx, QWidget* x_parent_widget,
// Statusbar and cmd input
QStatusBar* statusbar = new QStatusBar();
statusbar->setFixedHeight(25);
msg_label = new QLabel(fl(""));
msg_label->setFixedHeight(25);
cmd_prompt = new QLabel(fl("value > "));
cmd_prompt->setFixedHeight(25);
text_recall = new CoWowRecall();
name_recall = new CoWowRecall();
value_recall = new CoWowRecall();
cmd_recall = new CoWowRecall();
recall_entry = new CoWowEntryQt(cmd_recall);
recall_entry->setFixedHeight(25);
cursor_position = new QLabel(fl(""));
QObject::connect(recall_entry, SIGNAL(returnPressed()), toplevel,
SLOT(valchanged_cmd_entry()));
......
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