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
003099a0
Commit
003099a0
authored
5 years ago
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Fix issue with QString -> char*
parent
324dbb94
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
xtt/lib/xtt/qt/xtt_hist_qt.cqt
xtt/lib/xtt/qt/xtt_hist_qt.cqt
+9
-5
No files found.
xtt/lib/xtt/qt/xtt_hist_qt.cqt
View file @
003099a0
...
...
@@ -370,10 +370,14 @@ void HistQtWidget::ok_btn()
hist->eventPrio_C = hist->prioC_toggle_w->isChecked();
hist->eventPrio_D = hist->prioD_toggle_w->isChecked();
hist->minTime_str = qPrintableLatin1(hist->start_time_entry_w->text());
hist->maxTime_str = qPrintableLatin1(hist->stop_time_entry_w->text());
hist->eventText_str = qPrintableLatin1(hist->event_text_entry_w->text());
hist->eventName_str = qPrintableLatin1(hist->event_name_entry_w->text());
hist->minTime_str = (char*)malloc(hist->start_time_entry_w->text().length() + 1);
strcpy(hist->minTime_str, qPrintableLatin1(hist->start_time_entry_w->text()));
hist->maxTime_str = (char*)malloc(hist->stop_time_entry_w->text().length() + 1);
strcpy(hist->maxTime_str, qPrintableLatin1(hist->stop_time_entry_w->text()));
hist->eventText_str = (char*)malloc(hist->event_text_entry_w->text().length() + 1);
strcpy(hist->eventText_str, qPrintableLatin1(hist->event_text_entry_w->text()));
hist->eventName_str = (char*)malloc(hist->event_name_entry_w->text().length() + 1);
strcpy(hist->eventName_str, qPrintableLatin1(hist->event_name_entry_w->text()));
hist->get_hist_list();
}
...
...
This diff is collapsed.
Click to expand it.
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