mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-14 16:46:30 +01:00
2025-04-28 Fred Gleason <fredg@paravelsystems.com>
* Upgrade Qt dependency from Qt5 to Qt6. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -33,10 +33,10 @@ RDSlotButton::RDSlotButton(int slotnum,QWidget *parent,RDConfig *c)
|
||||
//
|
||||
d_ready_color=
|
||||
QPalette(QColor(BUTTON_STOPPED_BACKGROUND_COLOR),
|
||||
palette().color(QPalette::Background));
|
||||
palette().color(QPalette::Window));
|
||||
d_playing_color=
|
||||
QPalette(QColor(BUTTON_PLAY_BACKGROUND_COLOR),
|
||||
palette().color(QPalette::Background));
|
||||
palette().color(QPalette::Window));
|
||||
setFocusPolicy(Qt::NoFocus);
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ void RDSlotButton::WriteKeycap()
|
||||
p->setRenderHint(QPainter::SmoothPixmapTransform,true);
|
||||
p->setPen(Qt::black);
|
||||
p->setBrush(Qt::black);
|
||||
p->fillRect(0,0,w,h,palette().color(QPalette::Background));
|
||||
p->fillRect(0,0,w,h,palette().color(QPalette::Window));
|
||||
|
||||
p->setFont(hugeButtonFont());
|
||||
p->drawText((w-p->fontMetrics().horizontalAdvance(QString::asprintf("%d",1+d_slot_number)))/2,
|
||||
|
||||
Reference in New Issue
Block a user