}
}
- int dictsize;
if ( screendata[scr]->g_truecolor ) { // truecolor
- dictsize = 1; // will not need color dict
screendata[scr]->red_mask = (uint)screendata[scr]->g_vis->red_mask;
screendata[scr]->green_mask = (uint)screendata[scr]->g_vis->green_mask;
screendata[scr]->blue_mask = (uint)screendata[scr]->g_vis->blue_mask;
highest_bit( screendata[scr]->green_mask ) - 7;
screendata[scr]->blue_shift =
highest_bit( screendata[scr]->blue_mask ) - 7;
- } else {
- dictsize = col_std_dict;
}
-#if 0
- screendata[scr]->colorDict = new QColorDict(dictsize); // create dictionary
- Q_CHECK_PTR( screendata[scr]->colorDict );
-#endif
if ( spec == (int)QApplication::ManyColor ) {
screendata[scr]->color_reduce = true;
m_configureDesktopsWidget(0),
m_desktopWidget(qApp->desktop())
{
- setAcceptsHoverEvents(true);
+ setAcceptHoverEvents(true);
setAcceptDrops(true);
setHasConfigurationInterface(true);
setAspectRatioMode(Plasma::IgnoreAspectRatio);
Q_DECLARE_METATYPE(QGraphicsSimpleTextItem*)
DECLARE_BOOLEAN_GET_SET_METHODS(QGraphicsItem, acceptDrops, setAcceptDrops)
-DECLARE_BOOLEAN_GET_SET_METHODS(QGraphicsItem, acceptsHoverEvents, setAcceptsHoverEvents)
+DECLARE_BOOLEAN_GET_SET_METHODS(QGraphicsItem, acceptHoverEvents, setAcceptHoverEvents)
DECLARE_GET_METHOD(QGraphicsItem, boundingRect)
-DECLARE_GET_METHOD(QGraphicsItem, children)
+DECLARE_GET_METHOD(QGraphicsItem, childItems)
DECLARE_GET_METHOD(QGraphicsItem, childrenBoundingRect)
#ifndef QT_NO_CURSOR
DECLARE_GET_SET_METHODS(QGraphicsItem, QCursor, cursor, setCursor)
{
QScriptValue proto = QScript::wrapGVPointer<QGraphicsItem>(eng, new PrototypeGraphicsItem());
ADD_GET_SET_METHODS(proto, acceptDrops, setAcceptDrops);
- ADD_GET_SET_METHODS(proto, acceptsHoverEvents, setAcceptsHoverEvents);
+ ADD_GET_SET_METHODS(proto, acceptHoverEvents, setAcceptHoverEvents);
ADD_GET_METHOD(proto, boundingRect);
- ADD_GET_METHOD(proto, children);
+ ADD_GET_METHOD(proto, childItems);
ADD_GET_METHOD(proto, childrenBoundingRect);
#ifndef QT_NO_CURSOR
ADD_GET_SET_METHODS(proto, cursor, setCursor);
EmptyGraphicsItem(QGraphicsItem *parent)
: QGraphicsWidget(parent)
{
- setAcceptsHoverEvents(true);
+ setAcceptHoverEvents(true);
m_layout = new QGraphicsLinearLayout(this);
m_layout->setContentsMargins(0, 0, 0, 0);
m_layout->setSpacing(0);