liblancelot
BasicWidget.cpp File Reference
#include "BasicWidget.h"
#include "Global.h"
#include <QApplication>
#include <QtGui/QPainter>
#include <KGlobalSettings>
#include <Plasma/PaintUtils>
#include <cmath>
#include <lancelot/lancelot.h>
#include "BasicWidget.moc"
Include dependency graph for BasicWidget.cpp:
Go to the source code of this file.
Namespaces | |
Lancelot | |
Macros | |
#define | max(A, B) ((A) >= (B)) ? (A) : (B) |
#define | setLeft(itemRect, parentRect, alignment) |
#define | WIDGET_PADDING 8 |
Macro Definition Documentation
#define max | ( | A, | |
B | |||
) | ((A) >= (B)) ? (A) : (B) |
Definition at line 36 of file BasicWidget.cpp.
#define setLeft | ( | itemRect, | |
parentRect, | |||
alignment | |||
) |
Value:
if ((parentRect).width() > (itemRect).width()) { \
if ((alignment) & Qt::AlignHCenter) \
(itemRect).moveLeft(WIDGET_PADDING + ((parentRect).width() - (itemRect).width()) / 2); \
else if ((alignment) & Qt::AlignRight) \
(itemRect).moveLeft(WIDGET_PADDING + (parentRect).width() - (itemRect).width()); \
} else { \
(itemRect).setWidth((parentRect).width()); \
(itemRect).moveLeft(WIDGET_PADDING); \
};
Definition at line 166 of file BasicWidget.cpp.
#define WIDGET_PADDING 8 |
Definition at line 34 of file BasicWidget.cpp.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Mon Oct 13 2014 22:55:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Mon Oct 13 2014 22:55:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.