Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
727efcae
Commit
727efcae
authored
Aug 24, 2018
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: changed behaviour of CoWowEntry when loosing focus.
parent
68b6a7f1
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
28 additions
and
27 deletions
+28
-27
wb/lib/wb/qt/wb_foe_qt.cqt
wb/lib/wb/qt/wb_foe_qt.cqt
+1
-1
wb/lib/wb/qt/wb_watt_qt.cqt
wb/lib/wb/qt/wb_watt_qt.cqt
+13
-1
wb/lib/wb/qt/wb_watt_qt.h
wb/lib/wb/qt/wb_watt_qt.h
+1
-0
wb/lib/wb/qt/wb_wda_qt.cqt
wb/lib/wb/qt/wb_wda_qt.cqt
+1
-1
wb/lib/wb/qt/wb_wtt_qt.cqt
wb/lib/wb/qt/wb_wtt_qt.cqt
+1
-1
xtt/lib/cow/qt/cow_statusmon_nodelist_qt.cqt
xtt/lib/cow/qt/cow_statusmon_nodelist_qt.cqt
+3
-3
xtt/lib/cow/qt/cow_wow_qt.cqt
xtt/lib/cow/qt/cow_wow_qt.cqt
+2
-8
xtt/lib/cow/qt/cow_wow_qt.h
xtt/lib/cow/qt/cow_wow_qt.h
+0
-6
xtt/lib/ge/qt/ge_attr_qt.cqt
xtt/lib/ge/qt/ge_attr_qt.cqt
+1
-1
xtt/lib/ge/qt/ge_curve_qt.cqt
xtt/lib/ge/qt/ge_curve_qt.cqt
+1
-1
xtt/lib/ge/qt/ge_qt.cqt
xtt/lib/ge/qt/ge_qt.cqt
+1
-1
xtt/lib/xtt/qt/xtt_xatt_qt.cqt
xtt/lib/xtt/qt/xtt_xatt_qt.cqt
+1
-1
xtt/lib/xtt/qt/xtt_xattone_qt.cqt
xtt/lib/xtt/qt/xtt_xattone_qt.cqt
+1
-1
xtt/lib/xtt/qt/xtt_xcolwind_qt.cqt
xtt/lib/xtt/qt/xtt_xcolwind_qt.cqt
+1
-1
No files found.
wb/lib/wb/qt/wb_foe_qt.cqt
View file @
727efcae
...
...
@@ -1028,7 +1028,7 @@ pwr_tStatus WFoeQt::create_window(int x_top, int y_top, int width_adb,
label->setFixedHeight(25);
textinput = new QLineEdit();
textinput->setFixedHeight(25);
QObject::connect(textinput, SIGNAL(
editingFinish
ed()), toplevel,
QObject::connect(textinput, SIGNAL(
returnPress
ed()), toplevel,
SLOT(valchanged_textinput()));
statusbar->addWidget(label);
...
...
wb/lib/wb/qt/wb_watt_qt.cqt
View file @
727efcae
...
...
@@ -186,6 +186,16 @@ void WAttQtWidget::focusInEvent(QFocusEvent* event)
QWidget::focusInEvent(event);
}
void WAttQtWidget::hide_cmd_entry()
{
watt->wattnav->set_inputfocus();
if (watt->input_open) {
watt->cmd_prompt->setVisible(false);
watt->input_open = 0;
}
}
void WAttQt::print(const char* title)
{
pwr_tStatus sts;
...
...
@@ -419,8 +429,10 @@ WAttQt::WAttQt(QWidget* wa_parent_wid, void* wa_parent_ctx,
cmd_prompt = new QLabel("value > ");
cmd_entry = new CoWowEntryQt(&value_recall);
cmd_entry->set_hide_on_esc(true);
QObject::connect(cmd_entry, SIGNAL(
editingFinish
ed()), toplevel,
QObject::connect(cmd_entry, SIGNAL(
returnPress
ed()), toplevel,
SLOT(activate_cmd_entry()));
QObject::connect(cmd_entry, SIGNAL(editingFinished()), toplevel,
SLOT(hide_cmd_entry()));
statusbar->addWidget(msg_label);
statusbar->addWidget(cmd_prompt);
...
...
wb/lib/wb/qt/wb_watt_qt.h
View file @
727efcae
...
...
@@ -105,6 +105,7 @@ public slots:
void
activate_cmd_scrolled_ok
();
void
activate_cmd_scrolled_ca
();
void
action_text_inserted
();
void
hide_cmd_entry
();
private:
WAttQt
*
watt
;
...
...
wb/lib/wb/qt/wb_wda_qt.cqt
View file @
727efcae
...
...
@@ -470,7 +470,7 @@ WdaQt::WdaQt(QWidget* wa_parent_wid, void* wa_parent_ctx,
msg_label = new QLabel("");
cmd_prompt = new QLabel("value > ");
cmd_entry = new CoWowEntryQt(&value_recall);
QObject::connect(cmd_entry, SIGNAL(
editingFinish
ed()), toplevel,
QObject::connect(cmd_entry, SIGNAL(
returnPress
ed()), toplevel,
SLOT(activate_cmd_entry()));
statusbar->addWidget(msg_label);
...
...
wb/lib/wb/qt/wb_wtt_qt.cqt
View file @
727efcae
...
...
@@ -2208,7 +2208,7 @@ WttQt::WttQt(void* wt_parent_ctx, QWidget* wt_parent_wid, const char* wt_name,
QObject::connect(cmd_entry, SIGNAL(returnPressed()), toplevel,
SLOT(valchanged_cmd_entry()));
QObject::connect(
cmd_entry, SIGNAL(
hidden
()), toplevel, SLOT(hide_cmd_entry()));
cmd_entry, SIGNAL(
editingFinished
()), toplevel, SLOT(hide_cmd_entry()));
statusbar->addWidget(msg_label);
statusbar->addWidget(cmd_prompt);
...
...
xtt/lib/cow/qt/cow_statusmon_nodelist_qt.cqt
View file @
727efcae
...
...
@@ -368,9 +368,9 @@ NodelistInputDialogQt::NodelistInputDialogQt(
text2 = new QLineEdit();
text3 = new QLineEdit();
if (input_callback) {
connect(text, SIGNAL(
editingFinish
ed()), this, SLOT(activate_ok()));
connect(text2, SIGNAL(
editingFinish
ed()), this, SLOT(activate_ok()));
connect(text3, SIGNAL(
editingFinish
ed()), this, SLOT(activate_ok()));
connect(text, SIGNAL(
returnPress
ed()), this, SLOT(activate_ok()));
connect(text2, SIGNAL(
returnPress
ed()), this, SLOT(activate_ok()));
connect(text3, SIGNAL(
returnPress
ed()), this, SLOT(activate_ok()));
}
label = new QLabel();
...
...
xtt/lib/cow/qt/cow_wow_qt.cqt
View file @
727efcae
...
...
@@ -687,12 +687,6 @@ void CoWowEntryQt::keyPressEvent(QKeyEvent* event)
QLineEdit::keyPressEvent(event);
}
void CoWowEntryQt::hideEvent(QHideEvent* event)
{
emit hidden();
QWidget::hideEvent(event);
}
//
// Modal Dialog with text and tree buttons
//
...
...
@@ -735,12 +729,12 @@ CoWowModalDialogQt::CoWowModalDialogQt(QWidget* parent, const char* title,
if (!recall) {
textinput = new QLineEdit(this);
textinput->setMaxLength(input_length);
connect(textinput, SIGNAL(
editingFinish
ed()), this,
connect(textinput, SIGNAL(
returnPress
ed()), this,
SLOT(modaldia_activate_cb()));
} else {
CoWowEntryQt* entry = new CoWowEntryQt(recall);
textinput = entry;
connect(textinput, SIGNAL(
editingFinish
ed()), this,
connect(textinput, SIGNAL(
returnPress
ed()), this,
SLOT(modaldia_activate_cb()));
}
...
...
xtt/lib/cow/qt/cow_wow_qt.h
View file @
727efcae
...
...
@@ -47,8 +47,6 @@
#include <QWidget>
class
CoWowEntryQt
:
public
QLineEdit
{
Q_OBJECT
public:
CoWowRecall
*
m_re
;
bool
m_hide_on_esc
;
...
...
@@ -65,12 +63,8 @@ public:
m_hide_on_esc
=
hide
;
}
signals:
void
hidden
();
protected:
void
keyPressEvent
(
QKeyEvent
*
event
);
void
hideEvent
(
QHideEvent
*
event
);
};
class
CoWowModalDialogQt
:
public
QDialog
{
...
...
xtt/lib/ge/qt/ge_attr_qt.cqt
View file @
727efcae
...
...
@@ -364,7 +364,7 @@ AttrQt::AttrQt(QWidget* a_parent_wid, void* a_parent_ctx, attr_eType a_type,
msg_label = new QLabel("");
cmd_prompt = new QLabel("value > ");
cmd_entry = new CoWowEntryQt(&value_recall);
QObject::connect(cmd_entry, SIGNAL(
editingFinish
ed()), toplevel,
QObject::connect(cmd_entry, SIGNAL(
returnPress
ed()), toplevel,
SLOT(attr_activate_cmd_entry()));
statusbar->addWidget(msg_label);
...
...
xtt/lib/ge/qt/ge_curve_qt.cqt
View file @
727efcae
...
...
@@ -900,7 +900,7 @@ void GeCurveQt::create_minmax_dialog()
QLabel* min_label = new QLabel(translate_utf8("MinValue"));
min_label->setFixedWidth(100);
minmax_textmax_widget = new QLineEdit();
QObject::connect(minmax_textmax_widget, SIGNAL(
editingFinish
ed()), toplevel,
QObject::connect(minmax_textmax_widget, SIGNAL(
returnPress
ed()), toplevel,
SLOT(activate_minmax_ok()));
QLabel* max_label = new QLabel(translate_utf8("MaxValue"));
max_label->setFixedWidth(100);
...
...
xtt/lib/ge/qt/ge_qt.cqt
View file @
727efcae
...
...
@@ -1914,7 +1914,7 @@ GeQt::GeQt(void* x_parent_ctx, QWidget* x_parent_widget,
recall_entry = new CoWowEntryQt(cmd_recall);
recall_entry->setFixedHeight(25);
cursor_position = new QLabel(fl(""));
QObject::connect(recall_entry, SIGNAL(
editingFinish
ed()), toplevel,
QObject::connect(recall_entry, SIGNAL(
returnPress
ed()), toplevel,
SLOT(valchanged_cmd_entry()));
statusbar->addWidget(msg_label);
...
...
xtt/lib/xtt/qt/xtt_xatt_qt.cqt
View file @
727efcae
...
...
@@ -408,7 +408,7 @@ XAttQt::XAttQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
msg_label = new QLabel("");
cmd_prompt = new QLabel("value > ");
cmd_entry = new CoWowEntryQt(&value_recall);
QObject::connect(cmd_entry, SIGNAL(
editingFinish
ed()), toplevel,
QObject::connect(cmd_entry, SIGNAL(
returnPress
ed()), toplevel,
SLOT(activate_cmd_entry()));
statusbar->addWidget(msg_label);
...
...
xtt/lib/xtt/qt/xtt_xattone_qt.cqt
View file @
727efcae
...
...
@@ -279,7 +279,7 @@ XAttOneQt::XAttOneQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
cmd_prompt = new QLabel("value > ");
cmd_label = new QLabel("");
cmd_entry = new CoWowEntryQt(&value_recall);
QObject::connect(cmd_entry, SIGNAL(
editingFinish
ed()), toplevel,
QObject::connect(cmd_entry, SIGNAL(
returnPress
ed()), toplevel,
SLOT(activate_cmd_entry()));
// Scrolled text input
...
...
xtt/lib/xtt/qt/xtt_xcolwind_qt.cqt
View file @
727efcae
...
...
@@ -535,7 +535,7 @@ XColWindQt::XColWindQt(QWidget* xa_parent_wid, void* xa_parent_ctx,
msg_label = new QLabel("");
cmd_prompt = new QLabel("value > ");
cmd_entry = new CoWowEntryQt(&value_recall);
QObject::connect(cmd_entry, SIGNAL(
editingFinish
ed()), toplevel,
QObject::connect(cmd_entry, SIGNAL(
returnPress
ed()), toplevel,
SLOT(activate_cmd_entry()));
statusbar->addWidget(msg_label);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment