2021-09-21 Fred Gleason <fredg@paravelsystems.com>

* Enabled column sorting in the Library List in rdlibrary(1).
	* Enabled column sorting in the 'Select Cart' dialog.
	* Enabled column sorting in the 'Select Cut' dialog.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-09-21 11:17:26 -04:00
parent f6d0e37b42
commit acd80bcd65
7 changed files with 74 additions and 4 deletions

View File

@@ -99,6 +99,8 @@ RDCutDialog::RDCutDialog(QString *filter,QString *group,QString *schedcode,
cart_cart_model->setPalette(palette());
cart_cart_view->setModel(cart_cart_model);
cart_cart_filter->setModel(cart_cart_model);
cart_cart_view->setSortingEnabled(true);
cart_cart_view->sortByColumn(0,Qt::AscendingOrder);
connect(cart_cart_model,SIGNAL(modelReset()),this,SLOT(modelResetData()));
connect(cart_cart_view,SIGNAL(doubleClicked(const QModelIndex &)),
this,SLOT(cartDoubleClickedData(const QModelIndex &)));