mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-16 05:42:04 +08:00
添加应用详情页面
This commit is contained in:
@@ -50,3 +50,15 @@ void SpkAppItem::paintEvent(QPaintEvent *e)
|
||||
QPainter p(this);
|
||||
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
|
||||
}
|
||||
|
||||
void SpkAppItem::mousePressEvent(QMouseEvent *e)
|
||||
{
|
||||
mPressCond = true;
|
||||
}
|
||||
|
||||
void SpkAppItem::mouseReleaseEvent(QMouseEvent *e)
|
||||
{
|
||||
if(mPressCond)
|
||||
emit clicked(mAppId);
|
||||
mPressCond = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user