first commit
This commit is contained in:
32
project/fm_viewer/ui/rm_widget_base.cpp
Normal file
32
project/fm_viewer/ui/rm_widget_base.cpp
Normal file
@@ -0,0 +1,32 @@
|
||||
#include "rm_widget_base.h"
|
||||
|
||||
//#if (DESIGN_LAYOUT_MODE)
|
||||
#include <QPaintEvent>
|
||||
#include <QStyleOption>
|
||||
#include <QPainter>
|
||||
//#endif
|
||||
|
||||
RMWidgetBase::RMWidgetBase(QWidget *parent,bool bEvent) : QWidget(parent)
|
||||
{
|
||||
if(bEvent)
|
||||
{
|
||||
connect(RMApp::instance(),SIGNAL(appEvent(RMApp::Event,int)),this,SLOT(onAppEvent(RMApp::Event,int)));
|
||||
}
|
||||
Q_UNUSED(bEvent);
|
||||
}
|
||||
|
||||
void RMWidgetBase::onAppEvent(RMApp::Event event, int param)
|
||||
{
|
||||
Q_UNUSED(param);
|
||||
Q_UNUSED(event);
|
||||
}
|
||||
//#if (DESIGN_LAYOUT_MODE)
|
||||
void RMWidgetBase::paintEvent(QPaintEvent *pe)
|
||||
{
|
||||
Q_UNUSED(pe);
|
||||
QStyleOption o;
|
||||
o.initFrom(this);
|
||||
QPainter p(this);
|
||||
style()->drawPrimitive(QStyle::PE_Widget, &o, &p, this);
|
||||
}
|
||||
//#endif // DESIGN_LAYOUT_MODE
|
||||
Reference in New Issue
Block a user