Skip to content

Commit

Permalink
去掉多屏下扩展屏上的logo
Browse files Browse the repository at this point in the history
  • Loading branch information
penghuanmail committed May 17, 2019
1 parent 8f4ac90 commit 943b637
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions greeter/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ MainWindow::MainWindow(QWidget *parent)
setMouseTracking(true);

//cof
m_cof.load(m_configuration->getValue("cof").toString());
//m_cof.load(m_configuration->getValue("cof").toString());

//背景图片 优先级:用户桌面背景、背景图片、背景颜色
m_defaultBackgroundPath = m_configuration->getDefaultBackgroundName();
Expand Down Expand Up @@ -119,13 +119,13 @@ void MainWindow::paintEvent(QPaintEvent *e)
QPainter painter(this);

//在没有登录窗口的屏幕上显示图标
if(screen != m_activeScreen)
{
QRect cofRect(rect.left() + (rect.width()-m_cof.width())/2,
rect.top() + (rect.height()-m_cof.height())/2,
m_cof.width(), m_cof.height());
painter.drawPixmap(cofRect, m_cof);
}
// if(screen != m_activeScreen)
// {
// QRect cofRect(rect.left() + (rect.width()-m_cof.width())/2,
// rect.top() + (rect.height()-m_cof.height())/2,
// m_cof.width(), m_cof.height());
// painter.drawPixmap(cofRect, m_cof);
// }
}
return QWidget::paintEvent(e);
}
Expand Down

0 comments on commit 943b637

Please sign in to comment.