comment out debug messages
This commit is contained in:
parent
07f3e183b4
commit
8eedb47a46
32
style.cpp
32
style.cpp
|
@ -15,7 +15,7 @@ Style::~Style()
|
||||||
void Style::drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPainter *p,
|
void Style::drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPainter *p,
|
||||||
const QWidget *w) const
|
const QWidget *w) const
|
||||||
{
|
{
|
||||||
qDebug() << pe;
|
// qDebug() << pe;
|
||||||
|
|
||||||
switch (pe) {
|
switch (pe) {
|
||||||
case PE_FrameFocusRect:
|
case PE_FrameFocusRect:
|
||||||
|
@ -30,7 +30,7 @@ void Style::drawPrimitive(PrimitiveElement pe, const QStyleOption *opt, QPainter
|
||||||
void Style::drawControl(ControlElement element, const QStyleOption *opt,
|
void Style::drawControl(ControlElement element, const QStyleOption *opt,
|
||||||
QPainter *p, const QWidget *widget) const
|
QPainter *p, const QWidget *widget) const
|
||||||
{
|
{
|
||||||
qDebug() << element;
|
// qDebug() << element;
|
||||||
|
|
||||||
switch (element) {
|
switch (element) {
|
||||||
/*
|
/*
|
||||||
|
@ -46,8 +46,8 @@ void Style::drawControl(ControlElement element, const QStyleOption *opt,
|
||||||
QRect Style::subElementRect(SubElement sr, const QStyleOption *opt,
|
QRect Style::subElementRect(SubElement sr, const QStyleOption *opt,
|
||||||
const QWidget *widget) const
|
const QWidget *widget) const
|
||||||
{
|
{
|
||||||
qDebug() << "subElementRect : " << sr;
|
// qDebug() << "subElementRect : " << sr;
|
||||||
qDebug() << "-----------------------------------------------";
|
// qDebug() << "-----------------------------------------------";
|
||||||
|
|
||||||
QRect r;
|
QRect r;
|
||||||
switch (sr) {
|
switch (sr) {
|
||||||
|
@ -61,8 +61,8 @@ QRect Style::subElementRect(SubElement sr, const QStyleOption *opt,
|
||||||
r = QCommonStyle::subElementRect(sr, opt, widget);
|
r = QCommonStyle::subElementRect(sr, opt, widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
qDebug() << "r = " << r;
|
// qDebug() << "r = " << r;
|
||||||
qDebug() << "===============================================";
|
// qDebug() << "===============================================";
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
@ -70,8 +70,8 @@ QRect Style::subElementRect(SubElement sr, const QStyleOption *opt,
|
||||||
void Style::drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p,
|
void Style::drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p,
|
||||||
const QWidget *w) const
|
const QWidget *w) const
|
||||||
{
|
{
|
||||||
qDebug() << "drawComplexControl : " << cc;
|
// qDebug() << "drawComplexControl : " << cc;
|
||||||
qDebug() << "===============================================";
|
// qDebug() << "===============================================";
|
||||||
|
|
||||||
switch (cc) {
|
switch (cc) {
|
||||||
default:
|
default:
|
||||||
|
@ -82,8 +82,8 @@ void Style::drawComplexControl(ComplexControl cc, const QStyleOptionComplex *opt
|
||||||
QRect Style::subControlRect(ComplexControl cc, const QStyleOptionComplex *opt, SubControl sc,
|
QRect Style::subControlRect(ComplexControl cc, const QStyleOptionComplex *opt, SubControl sc,
|
||||||
const QWidget *w) const
|
const QWidget *w) const
|
||||||
{
|
{
|
||||||
qDebug() << "subControlRect : " << cc;
|
// qDebug() << "subControlRect : " << cc;
|
||||||
qDebug() << "------------------------------------------------";
|
// qDebug() << "------------------------------------------------";
|
||||||
|
|
||||||
QRect r;
|
QRect r;
|
||||||
switch (cc) {
|
switch (cc) {
|
||||||
|
@ -91,16 +91,16 @@ QRect Style::subControlRect(ComplexControl cc, const QStyleOptionComplex *opt, S
|
||||||
r = QCommonStyle::subControlRect(cc, opt, sc, w);
|
r = QCommonStyle::subControlRect(cc, opt, sc, w);
|
||||||
}
|
}
|
||||||
|
|
||||||
qDebug() << "r = " << r;
|
// qDebug() << "r = " << r;
|
||||||
qDebug() << "===============================================";
|
// qDebug() << "===============================================";
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
int Style::pixelMetric(PixelMetric m, const QStyleOption *opt, const QWidget *widget) const
|
int Style::pixelMetric(PixelMetric m, const QStyleOption *opt, const QWidget *widget) const
|
||||||
{
|
{
|
||||||
qDebug() << "pixelMetric : " << m;
|
// qDebug() << "pixelMetric : " << m;
|
||||||
qDebug() << "-----------------------------------------------";
|
// qDebug() << "-----------------------------------------------";
|
||||||
|
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
@ -114,8 +114,8 @@ int Style::pixelMetric(PixelMetric m, const QStyleOption *opt, const QWidget *wi
|
||||||
ret = QCommonStyle::pixelMetric(m, opt, widget);
|
ret = QCommonStyle::pixelMetric(m, opt, widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
qDebug() << "ret = " << ret;
|
// qDebug() << "ret = " << ret;
|
||||||
qDebug() << "===============================================";
|
// qDebug() << "===============================================";
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue