Browse Source

small fixes

master
Nils 3 years ago
parent
commit
7f1123b5c7
  1. 2
      qtgui/designer/chooseDownloadDirectory.py
  2. 2
      qtgui/designer/chooseDownloadDirectory.ui
  3. 2
      qtgui/instrument.py

2
qtgui/designer/chooseDownloadDirectory.py

@ -67,5 +67,5 @@ class Ui_ChooseDownloadDirectory(object):
def retranslateUi(self, ChooseDownloadDirectory):
_translate = QtCore.QCoreApplication.translate
ChooseDownloadDirectory.setWindowTitle(_translate("ChooseDownloadDirectory", "Choose Session Directory"))
self.label.setText(_translate("ChooseDownloadDirectory", "<html><head/><body><p>Please choose a directory for your sample files. The location can be read-only and will be shared by all sessions. </p><p>At the moment you have to manually download the files and move them to this directory. An integrated downloader will be added to this program after its beta-phase. </p><p>Changing the directory requires a program restart. The sample libraries will only be scanned on program start as well.</p><p>The download URL is:</p><p align=\"center\"><a href=\"https://www.laborejo.org/tembro/instruments\"><span style=\" text-decoration: underline; color:#55ffff;\">https://www.laborejo.org/tembro/instruments</span></a></p></body></html>"))
self.label.setText(_translate("ChooseDownloadDirectory", "<html><head/><body><p>Please choose a directory for your sample files. The location can be read-only and will be shared by all sessions. </p><p>At the moment you have to manually download the files and move them to this directory. An integrated downloader will be added to this program after its beta-phase. </p><p>Changing the directory requires a program restart. The sample libraries will only be scanned on program start as well.</p><p>The download URL is:</p><p align=\"center\"><a href=\"https://laborejo.org/downloads/tembro-instruments/\"><span style=\" text-decoration: underline; color:#00ffff;\">https://laborejo.org/downloads/tembro-instruments/</span></a></p></body></html>"))
self.openFileDialogButton.setText(_translate("ChooseDownloadDirectory", "Choose Directory"))

2
qtgui/designer/chooseDownloadDirectory.ui

@ -23,7 +23,7 @@
<item row="0" column="1">
<widget class="QLabel" name="label">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Please choose a directory for your sample files. The location can be read-only and will be shared by all sessions. &lt;/p&gt;&lt;p&gt;At the moment you have to manually download the files and move them to this directory. An integrated downloader will be added to this program after its beta-phase. &lt;/p&gt;&lt;p&gt;Changing the directory requires a program restart. The sample libraries will only be scanned on program start as well.&lt;/p&gt;&lt;p&gt;The download URL is:&lt;/p&gt;&lt;p align=&quot;center&quot;&gt;&lt;a href=&quot;https://www.laborejo.org/tembro/instruments&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#55ffff;&quot;&gt;https://www.laborejo.org/tembro/instruments&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Please choose a directory for your sample files. The location can be read-only and will be shared by all sessions. &lt;/p&gt;&lt;p&gt;At the moment you have to manually download the files and move them to this directory. An integrated downloader will be added to this program after its beta-phase. &lt;/p&gt;&lt;p&gt;Changing the directory requires a program restart. The sample libraries will only be scanned on program start as well.&lt;/p&gt;&lt;p&gt;The download URL is:&lt;/p&gt;&lt;p align=&quot;center&quot;&gt;&lt;a href=&quot;https://laborejo.org/downloads/tembro-instruments/&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#00ffff;&quot;&gt;https://laborejo.org/downloads/tembro-instruments/&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="wordWrap">
<bool>true</bool>

2
qtgui/instrument.py

@ -503,7 +503,7 @@ class GuiInstrument(QtWidgets.QTreeWidgetItem):
self.setText(index, instIdZFilled)
else: #full id
#self.setText(index, f"{libId}-{str(instrId).zfill(zeros)}")
self.setData(index, 0, float(libId + "." + instIdZFilled)) #0 is the data role, just stnadard display text. We combine both IDs to a float number for sorting. If used with setData instead of setText Qt will know how to sort 11 before 1000
self.setData(index, 0, float(str(libId) + "." + instIdZFilled)) #0 is the data role, just standard display text. We combine both IDs to a float number for sorting. If used with setData instead of setText Qt will know how to sort 11 before 1000

Loading…
Cancel
Save