first commit
This commit is contained in:
30
project/fm_viewer/ui/rm_bottom_border.cpp
Normal file
30
project/fm_viewer/ui/rm_bottom_border.cpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#include "rm_bottom_border.h"
|
||||
#if (MODEL_WATEX)
|
||||
#include <QStyleOption>
|
||||
#include <QPainter>
|
||||
RMBottomBorder::RMBottomBorder(QWidget *parent) : RMWidgetBase(parent,true)
|
||||
{
|
||||
setObjectName("bottom_border_watex");
|
||||
setFixedHeight(21);
|
||||
}
|
||||
void RMBottomBorder::onAppEvent(RMApp::Event event,int param)
|
||||
{
|
||||
if(event == RMApp::WillFullScreen)
|
||||
{
|
||||
setHidden(true);
|
||||
}
|
||||
else if (event == RMApp::WillNormalScreen)
|
||||
{
|
||||
setHidden(false);
|
||||
}
|
||||
|
||||
}
|
||||
void RMBottomBorder::paintEvent(QPaintEvent *pe)
|
||||
{
|
||||
Q_UNUSED(pe);
|
||||
QStyleOption o;
|
||||
o.initFrom(this);
|
||||
QPainter p(this);
|
||||
style()->drawPrimitive(QStyle::PE_Widget, &o, &p, this);
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user