1 #ifndef PAINTABLEWIDGET_H 2 #define PAINTABLEWIDGET_H 4 #include <QApplication> 20 bool _left, _top, _right, _bottom, _halfTop;
47 p.setBrush(QApplication::palette().base());
48 p.drawRect(this->rect());
49 p.setPen(QApplication::palette().mid().color());
50 if ((_left && isLeftToRight()) || (_right && !isLeftToRight())) {
51 p.drawLine(rect().x(), rect().y(), rect().x(), rect().y() + rect().height());
55 if (isLeftToRight()) {
56 p.drawLine(rect().center().x() + 1, rect().y(), rect().x() + rect().width(), rect().y());
58 p.drawLine(rect().x(), rect().y(), rect().center().x(), rect().y());
61 p.drawLine(rect().x(), rect().y(), rect().x() + rect().width(), rect().y());
64 if ((_right && isLeftToRight()) || (_left && !isLeftToRight())) {
65 p.drawLine(rect().x() + rect().width() -
extra, rect().y(), rect().x() + rect().width() -
extra, rect().y() + rect().height());
68 p.drawLine(rect().x(), rect().y() + rect().height(), rect().x() + rect().width(), rect().y() + rect().height());
73 #endif // PAINTABLEWIDGET_H
int const extra
Definition: miamcore_global.h:18
#define MIAMCORE_LIBRARY
Definition: miamcore_global.h:11