Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mlz
BornAgain
Commits
7fa908d7
Commit
7fa908d7
authored
Mar 15, 2021
by
Matthias Puchner
Browse files
rm UI for originally imported filename
parent
e8bdb282
Changes
2
Hide whitespace changes
Inline
Side-by-side
GUI/coregui/Views/SpecularDataWidgets/SpecularDataImportWidget.cpp
View file @
7fa908d7
...
...
@@ -83,14 +83,6 @@ void SpecularDataImportWidget::setItem(SessionItem* _realDataItem)
fillLoaderCombo
();
// #baimport - check whether file exists. If not, add hint of this
QString
filename
=
realDataItem
()
->
nativeFileName
();
if
(
filename
.
isEmpty
())
filename
=
"(original filename unknown)"
;
else
filename
=
QDir
::
toNativeSeparators
(
filename
);
m_ui
->
fileNameEdit
->
setText
(
filename
);
QSignalBlocker
b
(
m_ui
->
formatSelectionComboBox
);
m_ui
->
formatSelectionComboBox
->
setCurrentText
(
m_loader
->
name
());
...
...
GUI/coregui/Views/SpecularDataWidgets/SpecularDataImportWidget.ui
View file @
7fa908d7
...
...
@@ -37,14 +37,14 @@
<layout
class=
"QHBoxLayout"
name=
"horizontalLayout_3"
>
<item>
<layout
class=
"QFormLayout"
name=
"formLayout"
>
<item
row=
"
2
"
column=
"0"
>
<item
row=
"
1
"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_2"
>
<property
name=
"text"
>
<string>
Format:
</string>
</property>
</widget>
</item>
<item
row=
"
2
"
column=
"1"
>
<item
row=
"
1
"
column=
"1"
>
<widget
class=
"QComboBox"
name=
"formatSelectionComboBox"
>
<item>
<property
name=
"text"
>
...
...
@@ -78,23 +78,6 @@
</item>
</widget>
</item>
<item
row=
"1"
column=
"1"
>
<widget
class=
"QLineEdit"
name=
"fileNameEdit"
>
<property
name=
"enabled"
>
<bool>
true
</bool>
</property>
<property
name=
"readOnly"
>
<bool>
true
</bool>
</property>
</widget>
</item>
<item
row=
"1"
column=
"0"
>
<widget
class=
"QLabel"
name=
"label_3"
>
<property
name=
"text"
>
<string>
File to load:
</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
...
...
Write
Preview
Supports
Markdown
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