AddFoundFilesDialog: added capability to sort the list of newly found files for a project (Issue 438). eric7

Mon, 22 Aug 2022 19:08:56 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 22 Aug 2022 19:08:56 +0200
branch
eric7
changeset 9290
fc0cbfb71714
parent 9289
ba49c41e8f63
child 9291
7b271bcd12d0

AddFoundFilesDialog: added capability to sort the list of newly found files for a project (Issue 438).

src/eric7/Project/AddFoundFilesDialog.py file | annotate | diff | comparison | revisions
src/eric7/Project/AddFoundFilesDialog.ui file | annotate | diff | comparison | revisions
--- a/src/eric7/Project/AddFoundFilesDialog.py	Tue Aug 16 19:07:16 2022 +0200
+++ b/src/eric7/Project/AddFoundFilesDialog.py	Mon Aug 22 19:08:56 2022 +0200
@@ -46,6 +46,7 @@
         self.addSelectedButton.setToolTip(self.tr("Add selected files only."))
 
         self.fileList.addItems(files)
+        self.fileList.sortItems()
 
     def on_buttonBox_clicked(self, button):
         """
--- a/src/eric7/Project/AddFoundFilesDialog.ui	Tue Aug 16 19:07:16 2022 +0200
+++ b/src/eric7/Project/AddFoundFilesDialog.ui	Mon Aug 22 19:08:56 2022 +0200
@@ -37,6 +37,9 @@
      <property name="selectionBehavior">
       <enum>QAbstractItemView::SelectRows</enum>
      </property>
+     <property name="sortingEnabled">
+      <bool>true</bool>
+     </property>
     </widget>
    </item>
    <item>

eric ide

mercurial