#include <qpainter.h>
#include <qdrawutil.h>
#include <qstyle.h>
#include <qpen.h>
#include "qwt_math.h"
#include "qwt_painter.h"
#include "qwt_symbol.h"
#include "qwt_legend_item.h"
Go to the source code of this file.
Classes | |
class | QwtLegendItem::PrivateData |
Functions | |
static QSize | buttonShift (const QwtLegendItem *w) |
Variables | |
static const int | ButtonFrame = 2 |
static const int | Margin = 2 |
static QSize buttonShift | ( | const QwtLegendItem * | w ) | [static] |
Definition at line 28 of file qwt_legend_item.cpp.
Referenced by QwtLegendItem::paintEvent(), and QwtLegendItem::sizeHint().
{ #if QT_VERSION < 0x040000 const int ph = w->style().pixelMetric( QStyle::PM_ButtonShiftHorizontal, w); const int pv = w->style().pixelMetric( QStyle::PM_ButtonShiftVertical, w); #else QStyleOption option; option.init(w); const int ph = w->style()->pixelMetric( QStyle::PM_ButtonShiftHorizontal, &option, w); const int pv = w->style()->pixelMetric( QStyle::PM_ButtonShiftVertical, &option, w); #endif return QSize(ph, pv); }
const int ButtonFrame = 2 [static] |
Definition at line 25 of file qwt_legend_item.cpp.
Referenced by QwtLegendItem::paintEvent(), and QwtLegendItem::setItemMode().
const int Margin = 2 [static] |
Definition at line 26 of file qwt_legend_item.cpp.
Referenced by QwtLegendItem::setItemMode().