remove focus rectangle
This commit is contained in:
parent
b95662b156
commit
81c65341d7
|
@ -1 +1,16 @@
|
|||
#include <QPainter>
|
||||
#include <QStyleOption>
|
||||
#include "style.h"
|
||||
|
||||
void Style::drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPainter *p, const QWidget *w = 0) const
|
||||
{
|
||||
switch (pe)
|
||||
{
|
||||
case PE_FrameFocusRect:
|
||||
//p->setPen(Qt::blue);
|
||||
//p->drawRect(opt->rect);
|
||||
break;
|
||||
default:
|
||||
QCommonStyle::drawPrimitive(pe, opt, p, w);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,6 +14,9 @@ public:
|
|||
return instance;
|
||||
}
|
||||
|
||||
void drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPainter *p,
|
||||
const QWidget *w = 0) const Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
Style() {}
|
||||
|
||||
|
|
|
@ -50,7 +50,8 @@ SOURCES += main.cpp\
|
|||
components/menu.cpp \
|
||||
components/scrollbar.cpp \
|
||||
examples/iconmenuexamples.cpp \
|
||||
lib/scaleeffect.cpp
|
||||
lib/scaleeffect.cpp \
|
||||
lib/style.cpp
|
||||
|
||||
HEADERS += mainwindow.h \
|
||||
style.h \
|
||||
|
|
Loading…
Reference in New Issue