mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 16:11:12 +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:
@@ -21020,3 +21020,7 @@
|
|||||||
2021-02-05 Fred Gleason <fredg@paravelsystems.com>
|
2021-02-05 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Added 'RDGpioLogModel'.
|
* Added 'RDGpioLogModel'.
|
||||||
* Refactored rdgpimon(1) to use the model-based API.
|
* 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)
|
void RDCartDialog::cartDoubleClickedData(const QModelIndex &index)
|
||||||
{
|
{
|
||||||
okData();
|
okData();
|
||||||
|
@@ -54,7 +54,6 @@ class RDCartDialog : public RDDialog
|
|||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void modelResetData();
|
void modelResetData();
|
||||||
void clickedData(Q3ListViewItem *item);
|
|
||||||
void cartDoubleClickedData(const QModelIndex &index);
|
void cartDoubleClickedData(const QModelIndex &index);
|
||||||
void selectionChangedData(const QItemSelection &before,
|
void selectionChangedData(const QItemSelection &before,
|
||||||
const QItemSelection &after);
|
const QItemSelection &after);
|
||||||
|
@@ -147,7 +147,7 @@ void EditLogLine::selectCartData()
|
|||||||
if(!ok) {
|
if(!ok) {
|
||||||
cartnum=-1;
|
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);
|
FillCart(cartnum);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user