22 #include <dtkCoreSupport/dtkGlobal.h>
26 class axlInspectorSeparatorPrivate
29 Qt::Orientations orientation;
36 d->orientation = orientation;
38 if(d->orientation == Qt::Horizontal)
39 this->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
41 this->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding);
54 if(d->orientation == Qt::Horizontal)
62 if(d->orientation == Qt::Horizontal)
64 QRect r =
event->rect();
65 QPainter painter(
this);
66 painter.setPen(QPen(QColor(
"#9b9b9b")));
67 painter.drawLine(r.topLeft(), r.topRight());
68 painter.setPen(QPen(QColor(
"#ffffff")));
69 painter.drawLine(r.bottomLeft(), r.bottomRight());
73 QRect r =
event->rect();
74 QPainter painter(
this);
75 painter.setPen(QPen(QColor(
"#9b9b9b")));
76 painter.drawLine(r.topLeft(), r.bottomLeft());
77 painter.setPen(QPen(QColor(
"#ffffff")));
78 painter.drawLine(r.topRight(), r.bottomRight());
void paintEvent(QPaintEvent *event)
axlInspectorSeparator(QWidget *parent=0, Qt::Orientation orientation=Qt::Horizontal)
~axlInspectorSeparator(void)
QSize sizeHint(void) const