mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-19 22:48:01 +02:00
2021-02-05 Fred Gleason <fredg@paravelsystems.com>
* Removed dead method from 'RDCartDialog'. * Fixed a bug in rdlogedit(1) that made it impossible to select a cart in the 'Select Cart' dialog. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
d2a7c00fc1
commit
dbf515a46e
@ -21020,3 +21020,7 @@
|
||||
2021-02-05 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Added 'RDGpioLogModel'.
|
||||
* Refactored rdgpimon(1) to use the model-based API.
|
||||
2021-02-05 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Removed dead method from 'RDCartDialog'.
|
||||
* Fixed a bug in rdlogedit(1) that made it impossible to select
|
||||
a cart in the 'Select Cart' dialog.
|
||||
|
@ -245,23 +245,6 @@ QSizePolicy RDCartDialog::sizePolicy() const
|
||||
}
|
||||
|
||||
|
||||
void RDCartDialog::clickedData(Q3ListViewItem *item)
|
||||
{
|
||||
RDListViewItem *i=(RDListViewItem *)item;
|
||||
if (i==NULL) {
|
||||
return;
|
||||
}
|
||||
cart_ok_button->setEnabled(true);
|
||||
bool audio=((RDCart::Type)i->id())==RDCart::Audio;
|
||||
if(cart_player!=NULL) {
|
||||
cart_player->playButton()->setEnabled(audio);
|
||||
cart_player->stopButton()->setEnabled(audio);
|
||||
cart_player->setCart(i->text(1).toUInt());
|
||||
}
|
||||
cart_editor_button->setEnabled(audio);
|
||||
}
|
||||
|
||||
|
||||
void RDCartDialog::cartDoubleClickedData(const QModelIndex &index)
|
||||
{
|
||||
okData();
|
||||
|
@ -54,7 +54,6 @@ class RDCartDialog : public RDDialog
|
||||
|
||||
private slots:
|
||||
void modelResetData();
|
||||
void clickedData(Q3ListViewItem *item);
|
||||
void cartDoubleClickedData(const QModelIndex &index);
|
||||
void selectionChangedData(const QItemSelection &before,
|
||||
const QItemSelection &after);
|
||||
|
@ -147,7 +147,7 @@ void EditLogLine::selectCartData()
|
||||
if(!ok) {
|
||||
cartnum=-1;
|
||||
}
|
||||
if(edit_cart_dialog->exec(&cartnum,RDCart::All,edit_service,NULL)==0) {
|
||||
if(edit_cart_dialog->exec(&cartnum,RDCart::All,edit_service,NULL)) {
|
||||
FillCart(cartnum);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user