2018-08-17 Fred Gleason <fredg@paravelsystems.com>

* Fixed problems with dragged carts setting the correct color
	when dropped on a sound panel button.
This commit is contained in:
Fred Gleason
2018-08-17 12:29:41 -04:00
parent 4a40700f1b
commit 8abcc89174
11 changed files with 179 additions and 168 deletions

View File

@@ -1,8 +1,8 @@
// rdbutton_dialog.cpp
//
// Event Editor for RDAirPlay
// Button Editor for SoundPanel
//
// (C) Copyright 2002-2004,2016 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2018 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -32,8 +32,10 @@ RDButtonDialog::RDButtonDialog(QString station_name,
const QString &label_template,
RDCartDialog *cart_dialog,const QString &svcname,
QWidget *parent)
: QDialog(parent,"",true)
: QDialog(parent)
{
setModal(true);
//
// Fix the Window Size
//
@@ -179,7 +181,7 @@ void RDButtonDialog::setCartData()
void RDButtonDialog::clearCartData()
{
edit_cart=0;
edit_color=backgroundColor();
edit_color=Qt::lightGray;
edit_color_button->setPalette(QPalette(edit_color,backgroundColor()));
edit_label_edit->setText("");
edit_cart_edit->setText("");