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
866ec6ab
Commit
866ec6ab
authored
Dec 06, 2018
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Clean up ge_subgraphs slightly.
parent
6da3f072
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
16 deletions
+9
-16
wb/lib/wb/qt/wb_watttext_qt.cqt
wb/lib/wb/qt/wb_watttext_qt.cqt
+0
-1
xtt/lib/cow/qt/cow_statusmon_nodelist_qt.cqt
xtt/lib/cow/qt/cow_statusmon_nodelist_qt.cqt
+0
-1
xtt/lib/ge/qt/ge_attr_qt.cqt
xtt/lib/ge/qt/ge_attr_qt.cqt
+0
-1
xtt/lib/ge/qt/ge_curve_qt.cqt
xtt/lib/ge/qt/ge_curve_qt.cqt
+0
-1
xtt/lib/ge/qt/ge_qt.cqt
xtt/lib/ge/qt/ge_qt.cqt
+6
-2
xtt/lib/ge/qt/ge_subgraphs_qt.cqt
xtt/lib/ge/qt/ge_subgraphs_qt.cqt
+3
-10
No files found.
wb/lib/wb/qt/wb_watttext_qt.cqt
View file @
866ec6ab
...
...
@@ -198,7 +198,6 @@ WAttTextQt::WAttTextQt(QWidget* wa_parent_wid, void* wa_parent_ctx,
}
toplevel = new WAttTextQtWidget(this, wa_parent_wid);
toplevel->setToolTip(fl("wb_watttext widget"));
toplevel->setMinimumSize(800, 700);
toplevel->setWindowTitle(fl(namep));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/cow/qt/cow_statusmon_nodelist_qt.cqt
View file @
866ec6ab
...
...
@@ -69,7 +69,6 @@ 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->setMinimumSize(850, 300);
toplevel->setWindowTitle(fl(nodelist_name));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
xtt/lib/ge/qt/ge_attr_qt.cqt
View file @
866ec6ab
...
...
@@ -315,7 +315,6 @@ 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);
...
...
xtt/lib/ge/qt/ge_curve_qt.cqt
View file @
866ec6ab
...
...
@@ -749,7 +749,6 @@ 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));
...
...
xtt/lib/ge/qt/ge_qt.cqt
View file @
866ec6ab
...
...
@@ -139,6 +139,10 @@ void GeQt::subgraphs_new()
{
int sts;
if (subgraphs_widget) {
subgraphs_widget->close();
}
subgraphs = new SubGraphsQt(this, toplevel, "SubGraphs",
(void*)graph->grow->ctx, &subgraphs_widget, &sts);
subgraphs->message_cb = &Ge::message_cb;
...
...
@@ -1262,8 +1266,8 @@ GeQt::~GeQt()
wow->DeleteList(open_dialog);
}
if (subgraphs) {
delete subgraphs
;
if (subgraphs
_widget
) {
subgraphs_widget->close()
;
}
delete subpalette;
delete recall_entry;
...
...
xtt/lib/ge/qt/ge_subgraphs_qt.cqt
View file @
866ec6ab
...
...
@@ -51,10 +51,10 @@
void SubGraphsQtWidget::closeEvent(QCloseEvent* event)
{
debug_print("SubGraphsQtWidget::closeEvent\n");
if (subgraphs->close_cb) {
(subgraphs->close_cb)(subgraphs);
} else {
trace_timerid->stop();
delete subgraphs;
}
QWidget::closeEvent(event);
...
...
@@ -118,8 +118,6 @@ 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));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
...
...
@@ -147,7 +145,6 @@ SubGraphsQt::SubGraphsQt(void* xn_parent_ctx, QWidget* xn_parent_wid,
addMenuItem(
toplevel, help, "&Help", SLOT(subgraphs_activate_help()), "CTRL+H");
debug_print("creating a scrolledbrowwidgetqt\n");
form_widget
= scrolledbrowwidgetqt_new(SubGraphs::init_brow_cb, this, &brow_widget);
...
...
@@ -165,14 +162,10 @@ SubGraphsQt::SubGraphsQt(void* xn_parent_ctx, QWidget* xn_parent_wid,
SubGraphsQt::~SubGraphsQt()
{
debug_print("SubGraphsQt::~SubGraphsQt\n");
subgraphs_tAttr attrlist_p, next_p;
// Delete all attr-widgets in attrlist
attrlist_p = attrlist;
next_p = NULL;
subgraphs_tAttr attrlist_p = attrlist;
while (attrlist_p) {
next_p = attrlist_p->next;
subgraphs_tAttr
next_p = attrlist_p->next;
delete attrlist_p->attrctx;
free((char*)attrlist_p);
attrlist_p = next_p;
...
...
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