mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
refs #883, overlay messages can have shadow
This commit is contained in:
committed by
Mathew Sutcliffe
parent
1690c560b7
commit
8ca8f51802
@@ -30,6 +30,7 @@
|
||||
#include <QSize>
|
||||
#include <QStackedWidget>
|
||||
#include <QStyle>
|
||||
#include <QGraphicsDropShadowEffect>
|
||||
#include <QTextEdit>
|
||||
#include <QToolButton>
|
||||
#include <Qt>
|
||||
@@ -382,6 +383,15 @@ namespace BlackGui
|
||||
return this->m_awaitingConfirmation;
|
||||
}
|
||||
|
||||
void COverlayMessages::addShadow()
|
||||
{
|
||||
QGraphicsDropShadowEffect *shadow = new QGraphicsDropShadowEffect(this);
|
||||
QColor color(Qt::blue);
|
||||
color.setAlpha(96);
|
||||
shadow->setColor(color);
|
||||
this->setGraphicsEffect(shadow);
|
||||
}
|
||||
|
||||
void COverlayMessages::keyPressEvent(QKeyEvent *event)
|
||||
{
|
||||
if (!this->isVisible()) { QFrame::keyPressEvent(event); }
|
||||
|
||||
Reference in New Issue
Block a user