mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-12-15 00:28:58 -05:00
Replaced deprecated QPalette::Background by QPalette::Window
This commit is contained in:
parent
ec497f0015
commit
79a8b3143f
1 changed files with 3 additions and 3 deletions
|
|
@ -215,7 +215,7 @@ void AWidget::initImages()
|
||||||
if(height() == 0) return ;
|
if(height() == 0) return ;
|
||||||
|
|
||||||
image1 = QImage(width(),height(),QImage::Format_ARGB32);
|
image1 = QImage(width(),height(),QImage::Format_ARGB32);
|
||||||
image1.fill(palette().color(QPalette::Background));
|
image1.fill(palette().color(QPalette::Window));
|
||||||
|
|
||||||
//QImage image(":/images/logo/logo_info.png");
|
//QImage image(":/images/logo/logo_info.png");
|
||||||
QPixmap image(":/images/logo/logo_splash.png");
|
QPixmap image(":/images/logo/logo_splash.png");
|
||||||
|
|
@ -271,7 +271,7 @@ void AWidget::initGoL()
|
||||||
|
|
||||||
void AWidget::drawBitField()
|
void AWidget::drawBitField()
|
||||||
{
|
{
|
||||||
image2.fill(palette().color(QPalette::Background));
|
image2.fill(palette().color(QPalette::Window));
|
||||||
QPainter p(&image2) ;
|
QPainter p(&image2) ;
|
||||||
|
|
||||||
p.setPen(QColor(200,200,200));
|
p.setPen(QColor(200,200,200));
|
||||||
|
|
@ -914,7 +914,7 @@ TPiece TPiece::rotatedRight() const {
|
||||||
NextPieceLabel::NextPieceLabel( QWidget* parent /* = 0*/ ) : QLabel(parent)
|
NextPieceLabel::NextPieceLabel( QWidget* parent /* = 0*/ ) : QLabel(parent)
|
||||||
{
|
{
|
||||||
QPalette p = palette();
|
QPalette p = palette();
|
||||||
p.setColor(QPalette::Background, Qt::white);
|
p.setColor(QPalette::Window, Qt::white);
|
||||||
setPalette(p);
|
setPalette(p);
|
||||||
setFrameShape(QFrame::Box);
|
setFrameShape(QFrame::Box);
|
||||||
setAlignment(Qt::AlignCenter);
|
setAlignment(Qt::AlignCenter);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue