/*! * \see navigatorWidget */ void ContentWidget::setNavigatorWidget(NavigatorWidget * nav) { if (navigator == nav) return; bool updatesBlocked = false; if (navigator != 0 && navigator->isVisible() && updatesEnabled()) { updatesBlocked = true; setUpdatesEnabled(false); } nav->setParent(this); if (navigator != 0) { nav->setGeometry(navigator->geometry()); nav->setVisible(navigator->isVisible()); navigator->setVisible(false); navigator->deleteLater(); } navigator = nav; connect(navigator, SIGNAL(closeRequested()), this, SLOT(hideNavigator())); connect(navigator, SIGNAL(nextImageRequested()), this, SLOT(navigatorNext())); connect(navigator, SIGNAL(previousImageRequested()), this, SLOT(navigatorPrev())); if (updatesBlocked) setUpdatesEnabled(true); }
void JKCharacterScreenKeyboard::populateLayout() { bool upEn=updatesEnabled(); if (upEn) setUpdatesEnabled(false); // remove all buttons from layout and delete them for (int i=0; i<m_buttons.size(); i++) { disconnect(m_buttons[i], SIGNAL(clicked()), this, SLOT(buttonClicked())); lay->removeWidget(m_buttons[i]); delete m_buttons[i]; } m_buttons.clear(); for (int i=0; i<m_characters.size(); i++) { QChar character=m_characters[i]; if (character.isPrint()) { QPushButton* but=new QPushButton(QString(character), this); m_buttons.append(but); but->setFocusPolicy(Qt::NoFocus); but->setMaximumSize(m_buttonSize); but->setMinimumSize(m_buttonSize); connect(but, SIGNAL(clicked()), this, SLOT(buttonClicked())); lay->addWidget(but); } } if (upEn) setUpdatesEnabled(true); }
// private void kpTransformPreviewDialog::updateDimensions () { if (!m_dimensionsGroupBox) return; kpDocument *doc = document (); if (!doc) return; if (!updatesEnabled ()) { #if DEBUG_KP_TRANSFORM_PREVIEW_DIALOG qCDebug(kpLogDialogs) << "updates not enabled - aborting"; #endif return; } QSize newDim = newDimensions (); #if DEBUG_KP_TRANSFORM_PREVIEW_DIALOG qCDebug(kpLogDialogs) << "kpTransformPreviewDialog::updateDimensions(): newDim=" << newDim; #endif QString newDimString = i18n ("%1 x %2", newDim.width (), newDim.height ()); m_afterTransformDimensionsLabel->setText (newDimString); }
void paintEvent(QPaintEvent *e) { if (!updatesEnabled()) return; //this avoids repaint from native events checkCurrentRenderingMode(); m_currentRenderer->repaintCurrentFrame(this, e->rect()); }
void QEQtView::slotResizeDoubleBuffer(const QSize &size) { qDebug() << Q_FUNC_INFO << updatesEnabled()<< size; QImage tmp(size, QImage::Format_ARGB32); _ctx->image.swap(tmp); // update all the widget in future repaint _clip.setRect(0, 0, size.width(), size.height()); }
void QgsComposerLegend::updateItem() { if ( !updatesEnabled() ) return; updateFilterByMap( false ); QgsComposerItem::updateItem(); }
void GLWidget::applyRememberedResize() { if (mHasRememberedSize) if(updatesEnabled()) { resizeGL(mRememberedSize.width(), mRememberedSize.height()); mHasRememberedSize = false; } }
void GLWidget::resizeEvent( QResizeEvent *e ) { if (!updatesEnabled()) { rememberResize(e->size()); e->accept(); } else QGLWidget::resizeEvent(e); }
void CBibleKeyChooser::beforeRefChange(CSwordVerseKey* key) { Q_UNUSED(key); /// \todo Is this correct? Q_ASSERT(m_key); if (!updatesEnabled()) return; if (m_key) emit beforeKeyChange(m_key->key()); }
//! Remove all items. void QwtLegend::clear() { bool doUpdate = updatesEnabled(); if ( doUpdate ) setUpdatesEnabled( false ); d_data->map.clear(); if ( doUpdate ) setUpdatesEnabled( true ); update(); }
void CBibleKeyChooser::refChanged(CSwordVerseKey* key) { Q_ASSERT(m_key); Q_ASSERT(key); if (!updatesEnabled()) return; setUpdatesEnabled(false); m_key = key; emit keyChanged(m_key); setUpdatesEnabled(true); }
//! Remove all items. void QwtLegend::clear() { #if QT_VERSION < 0x040000 bool doUpdate = isUpdatesEnabled(); #else bool doUpdate = updatesEnabled(); #endif setUpdatesEnabled(false); d_data->map.clear(); setUpdatesEnabled(doUpdate); update(); }
void QFShutterConfigWidget::updateActionProperties(bool opened) { disconnect(actState, SIGNAL(toggled(bool)), this, SLOT(shutterActionClicked(bool))); bool updt=updatesEnabled(); bool widVisible=isVisible(); if (widVisible) setUpdatesEnabled(false); if (opened) { actState->setIcon(iconOpened); if (actState->text()!=tr("opened")) actState->setText(tr("opened")); if (!actState->isChecked()) actState->setChecked(true); } else { actState->setIcon(iconClosed); if (actState->text()!=tr("closed")) actState->setText(tr("closed")); if (actState->isChecked()) actState->setChecked(false); } if (widVisible) setUpdatesEnabled(updt); connect(actState, SIGNAL(toggled(bool)), this, SLOT(shutterActionClicked(bool))); }
void QgsFeatureListView::editSelectionChanged( QItemSelection deselected, QItemSelection selected ) { if ( isVisible() && updatesEnabled() ) { QItemSelection localDeselected = mModel->mapSelectionFromMaster( deselected ); QItemSelection localSelected = mModel->mapSelectionFromMaster( selected ); viewport()->update( visualRegionForSelection( localDeselected ) | visualRegionForSelection( localSelected ) ); } QItemSelection currentSelection = mCurrentEditSelectionModel->selection(); if ( currentSelection.size() == 1 ) { QgsFeature feat; mModel->featureByIndex( mModel->mapFromMaster( currentSelection.indexes().first() ), feat ); emit currentEditSelectionChanged( feat ); } }
/*! Set the attributes of the legend label \param legendData Attributes of the label \sa data() */ void QwtLegendLabel::setData( const QwtLegendData &legendData ) { d_data->legendData = legendData; const bool doUpdate = updatesEnabled(); setUpdatesEnabled( false ); setText( legendData.title() ); setIcon( legendData.icon().toPixmap() ); if ( legendData.hasRole( QwtLegendData::ModeRole ) ) setItemMode( legendData.mode() ); if ( doUpdate ) { setUpdatesEnabled( true ); update(); } }
void RosegardenScrollView::updateContents(int x, int y, int w, int h) // Code lifted from Q3ScrollView { if (!isVisible() || !updatesEnabled()) return; // RG_DEBUG << "RosegardenScrollView::updateContents" << endl; QWidget* vp = viewport(); // Translate x -= contentsX(); y -= contentsY(); if (x < 0) { w += x; x = 0; } if (y < 0) { h += y; y = 0; } if (w < 0 || h < 0) return; if (x > visibleWidth() || y > visibleHeight()) return; if (w > visibleWidth()) w = visibleWidth(); if (h > visibleHeight()) h = visibleHeight(); //### CJ - I don't think we used a clipped_viewport on Q3ScrollView //if (d->clipped_viewport) { //// Translate clipper() to viewport() //x -= d->clipped_viewport->x(); //y -= d->clipped_viewport->y(); //} vp->update(x, y, w, h); updateScrollBars(); }
void Dialog::slotMisspelling(const QString& word, int start) { setGuiEnabled(true); setProgressDialogVisible(false); emit misspelling(word, start); //NOTE this is HACK I had to introduce because BackgroundChecker lacks 'virtual' marks on methods //this dramatically reduces spellchecking time in Lokalize //as this doesn't fetch suggestions for words that are present in msgid if (!updatesEnabled()) return; kDebug()<<"Dialog misspelling!!"; d->currentWord = Word( word, start ); if ( d->replaceAllMap.contains( word ) ) { d->ui.m_replacement->setText( d->replaceAllMap[ word ] ); slotReplaceWord(); } else { updateDialog( word ); } KDialog::show(); }
/** * Paint the points in the point array */ void EFXPreviewArea::paintEvent(QPaintEvent* e) { QFrame::paintEvent(e); QPainter painter(this); QPen pen; QPoint point; QColor color; int i; /* Crosshairs */ color = palette().color(QPalette::Mid); painter.setPen(color); painter.drawLine(127, 0, 127, 255); painter.drawLine(0, 127, 255, 127); /* Plain points with highlight color */ color = palette().color(QPalette::Highlight); pen.setColor(color); painter.setPen(pen); painter.drawPolygon(*m_points); // Draw the points from the point array for (i = 0; updatesEnabled() && i < m_points->size(); i++) { color = color.lighter(100 + (m_points->size()/100)); pen.setColor(color); painter.setPen(pen); point = m_points->point(i); painter.drawEllipse(point.x() - 1, point.y() - 1, 2, 2); } /* Starting point */ pen.setColor(color); painter.setPen(pen); point = m_points->point(0); painter.fillRect(point.x() - 3, point.y() - 3, 6, 6, QBrush(palette().color(QPalette::Dark))); }
void QF3ObjectiveCombobox::loadObjectives() { objectives.clear(); QString currentO=cmbObjective->currentText(); bool updt=updatesEnabled(); bool widVisible=isVisible(); if (widVisible) setUpdatesEnabled(false); cmbObjective->clear(); QSettings inifileg(globalobjectives, QSettings::IniFormat); QSettings inifile(localobjectives, QSettings::IniFormat); // first read global config QStringList groups=inifile.childGroups(); QStringList groupsg=inifile.childGroups(); for (int i=0; i<groupsg.size(); i++) { if (!groups.contains(groupsg[i])) groups.append(groupsg[i]); } for (int i=0; i<groups.size(); i++) { QString g=groups[i]; ObjectiveDescription o; o.name=inifile.value(g+"/name", inifileg.value(g+"/name", "")).toString(); o.manufacturer=inifile.value(g+"/manufacturer", inifileg.value(g+"/manufacturer", "")).toString(); o.magnification=inifile.value(g+"/magnification", inifileg.value(g+"/magnification", 1)).toDouble(); o.NA=inifile.value(g+"/na", 1).toDouble(); objectives.append(o); } qSort(objectives); for (int i=0; i<objectives.size(); i++) { cmbObjective->addItem(QIcon(":/libqf3widgets/objective.png"), objectives[i].name); } int i=cmbObjective->findText(currentO); if (i<0) i=0; cmbObjective->setCurrentIndex(i); //hbl->update(); if (widVisible) setUpdatesEnabled(updt); }
void ContactListModelUpdater::commit() { if (!updatesEnabled()) return; // qWarning("updater(%x):commit", (int)this); // qWarning("*** ContactListModelUpdater::commit(). operationQueue_.count() = %d", operationQueue_.count()); commitTimerStartTime_ = QDateTime(); commitTimer_->stop(); if (operationQueue_.isEmpty()) return; bool doBulkUpdate = operationQueue_.count() > 1; if (doBulkUpdate) emit beginBulkContactUpdate(); QHashIterator<PsiContact*, int> it(operationQueue_); while (it.hasNext()) { it.next(); int operations = simplifiedOperationList(it.value()); if (operations & AddContact) emit addedContact(it.key()); if (operations & RemoveContact) Q_ASSERT(false); if (operations & UpdateContact) emit contactUpdated(it.key()); if (operations & ContactGroupsChanged) emit contactGroupsChanged(it.key()); } if (doBulkUpdate) emit endBulkContactUpdate(); operationQueue_.clear(); }
void RolloutBox::setExpanded(bool expanded) { if (m_expanded != expanded) { QScrollArea *sa = 0; QWidget *p = parentWidget(); while (p) { sa = qobject_cast<QScrollArea*>(p); if (sa) break; p = p->parentWidget(); } bool areUpdatesEnabled; if (sa) { areUpdatesEnabled = updatesEnabled(); sa->setUpdatesEnabled(false); } m_expanded = !m_expanded; QList<QWidget*> L = findChildren<QWidget*>(); for (int i = 0; i < L.size(); ++i) { if ((L[i] != m_toolButton) && (L[i] != m_checkBox)) L[i]->setVisible(m_expanded); } parentWidget()->updateGeometry(); if (sa) { qApp->processEvents(); if (m_expanded) sa->ensureWidgetVisible(this); sa->setUpdatesEnabled(true); } if (m_toolButton) { m_toolButton->setArrowType(m_expanded? Qt::DownArrow : Qt::RightArrow); } toggled(m_expanded); } }
// private void kpTransformPreviewDialog::updatePreview () { #if DEBUG_KP_TRANSFORM_PREVIEW_DIALOG qCDebug(kpLogDialogs) << "kpTransformPreviewDialog::updatePreview()"; #endif if (!m_previewGroupBox) return; kpDocument *doc = document (); if (!doc) return; if (!updatesEnabled ()) { #if DEBUG_KP_TRANSFORM_PREVIEW_DIALOG qCDebug(kpLogDialogs) << "updates not enabled - aborting"; #endif return; } updateShrunkenDocumentPixmap (); if (!m_shrunkenDocumentPixmap.isNull ()) { QSize newDim = newDimensions (); double keepsAspectScale = aspectScale (m_previewPixmapLabel->width (), m_previewPixmapLabel->height (), newDim.width (), newDim.height ()); int targetWidth = scaleDimension (newDim.width (), keepsAspectScale, 1, // min m_previewPixmapLabel->width ()); // max int targetHeight = scaleDimension (newDim.height (), keepsAspectScale, 1, // min m_previewPixmapLabel->height ()); // max // TODO: Some effects work directly on QImage; so could cache the // QImage so that transformPixmap() is faster QImage transformedShrunkenDocumentPixmap = transformPixmap (m_shrunkenDocumentPixmap, targetWidth, targetHeight); QImage previewPixmap (m_previewPixmapLabel->width (), m_previewPixmapLabel->height (), QImage::Format_ARGB32_Premultiplied); previewPixmap.fill(QColor(Qt::transparent).rgba()); kpPixmapFX::setPixmapAt (&previewPixmap, (previewPixmap.width () - transformedShrunkenDocumentPixmap.width ()) / 2, (previewPixmap.height () - transformedShrunkenDocumentPixmap.height ()) / 2, transformedShrunkenDocumentPixmap); #if DEBUG_KP_TRANSFORM_PREVIEW_DIALOG qCDebug(kpLogDialogs) << "kpTransformPreviewDialog::updatePreview ():" << " shrunkenDocumentPixmap: w=" << m_shrunkenDocumentPixmap.width () << " h=" << m_shrunkenDocumentPixmap.height () << " previewPixmapLabel: w=" << m_previewPixmapLabel->width () << " h=" << m_previewPixmapLabel->height () << " transformedShrunkenDocumentPixmap: w=" << transformedShrunkenDocumentPixmap.width () << " h=" << transformedShrunkenDocumentPixmap.height () << " previewPixmap: w=" << previewPixmap.width () << " h=" << previewPixmap.height () << endl; #endif m_previewPixmapLabel->setPixmap (QPixmap::fromImage(previewPixmap)); // immediate update esp. for expensive previews m_previewPixmapLabel->repaint (); #if DEBUG_KP_TRANSFORM_PREVIEW_DIALOG qCDebug(kpLogDialogs) << "\tafter QLabel::setPixmap() previewPixmapLabel: w=" << m_previewPixmapLabel->width () << " h=" << m_previewPixmapLabel->height () << endl; #endif } }
void QFFitFunctionSelectDialog::init(const QStringList &availableFF, const QString ¤t) { if (availableFF.size()<=0) init("", current); else { QFFitFunctionManager* manager=QFFitFunctionManager::getInstance(); bool upd=updatesEnabled(); QModelIndex idx=ui->lstModels->currentIndex();//.row(); //if (idx<0) idx=0; bool widVisible=isVisible(); if (widVisible) setUpdatesEnabled(false); filterModel.setSourceModel(NULL); if (model) delete model; //model=new QFSimpleTreeModel(this); model=new QFSimpleTreeModel(this); QMap<QString, QFFitFunction*> m_fitFunctions; for (int i=0; i<availableFF.size(); i++) { m_fitFunctions[availableFF[i]]=manager->createFunction(availableFF[i]); } QFSimpleTreeModel *m = model; QMapIterator<QString, QFFitFunction*> it(m_fitFunctions); int i=0; while (it.hasNext()) { it.next(); if (it.value()) { /*QStandardItem* item=new QStandardItem(QIcon(":/lib/fitfunc_icon.png"), it.value()->name()); item->setData(it.key(), Qt::UserRole+1); model->appendRow(item); if (it.value()->isDeprecated() && m) { item->setForeground(QColor("darkgrey")); item->setText(tr("[DEPRECATED]: %1").arg(item->text())); }*/ QFSimpleTreeModelItem* item=model->addFolderedItem(it.value()->category(), it.value()->shortName(), it.key()); //QFPseudoTreeModelItem* item=model->addFolderedItem(it.value()->category(), it.value()->shortName(), it.key()); item->setData(it.key(), Qt::UserRole+1); item->setIcon(QIcon(":/lib/fitfunc_icon.png")); item->setData(it.value()->category()+QString("/")+it.value()->shortName()+QString("/")+it.key(), Qt::UserRole+10); if (it.value()->isDeprecated() && m) { item->setForeground(QColor("darkgrey")); item->setText(tr("[DEPRECATED]: %1").arg(item->text())); } if (it.key()==current) idx=model->index(item); i++; delete it.value(); } } filterModel.setSourceModel(model); ui->lstModels->setModel(&filterModel); ui->lstModels->expandAll(); //model->sort(0); model->sortTree(); if (widVisible) setUpdatesEnabled(upd); ui->lstModels->expandAll(); ui->lstModels->setCurrentIndex(idx);//model->index(idx, 0)); ui->edtFilter->clear(); } }
void QEQtView::slotFlush() { qDebug() << Q_FUNC_INFO << "updates enabled: " << updatesEnabled(); update(rect()); }
void QFFitFunctionSelectDialog::init(const QString &filter, const QString ¤t) { QFFitFunctionManager* manager=QFFitFunctionManager::getInstance(); bool upd=updatesEnabled(); /*int idx=ui->lstModels->currentIndex().row(); if (idx<0) idx=0;*/ QModelIndex idx=ui->lstModels->currentIndex(); bool widVisible=isVisible(); if (widVisible) setUpdatesEnabled(false); filterModel.setSourceModel(NULL); if (model) delete model; //model=new QFSimpleTreeModel(this); model=new QFSimpleTreeModel(this); //QMap<QString, QFFitFunction*> m_fitFunctions=manager->getModels(filter, this); QMap<QString, QFFitFunction*> m_fitFunctions; if (filter.contains(",")) { QStringList fl=filter.split(","); for (int i=0; i<fl.size(); i++) { QMap<QString, QFFitFunction*> ff=manager->getModels(fl[i]); QMapIterator<QString, QFFitFunction*> itf(ff); while (itf.hasNext()) { itf.next(); if (!m_fitFunctions.contains(itf.key())) m_fitFunctions[itf.key()]=itf.value(); else delete itf.value(); } } } else { m_fitFunctions=manager->getModels(filter); } QFSimpleTreeModel *m = model; //QFSimpleTreeModel *m = model; QMapIterator<QString, QFFitFunction*> it(m_fitFunctions); int i=0; while (it.hasNext()) { it.next(); if (it.value()) { QFSimpleTreeModelItem* item=model->addFolderedItem(it.value()->category(), it.value()->shortName(), it.key()); //QFPseudoTreeModelItem* item=model->addFolderedItem(it.value()->category(), it.value()->shortName(), it.key()); item->setData(it.key(), Qt::UserRole+1); item->setIcon(QIcon(":/lib/fitfunc_icon.png")); item->setData(it.value()->category()+QString("/")+it.value()->shortName()+QString("/")+it.key(), Qt::UserRole+10); if (it.value()->isDeprecated() && m) { item->setForeground(QColor("darkgrey")); item->setText(tr("[DEPRECATED]: %1").arg(item->text())); } if (it.key()==current) idx=model->index(item);//idx=i; i++; delete it.value(); } } filterModel.setSourceModel(model); ui->lstModels->setModel(&filterModel); ui->lstModels->expandAll(); //model->sort(0); model->sortTree(); if (widVisible) setUpdatesEnabled(upd); ui->lstModels->expandAll(); ui->lstModels->setCurrentIndex(idx);//model->index(idx, 0)); ui->edtFilter->clear(); }
int QWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QObject::qt_metacall(_c, _id, _a); if (_id < 0) return _id; if (_c == QMetaObject::InvokeMetaMethod) { if (_id < 23) qt_static_metacall(this, _c, _id, _a); _id -= 23; } #ifndef QT_NO_PROPERTIES else if (_c == QMetaObject::ReadProperty) { void *_v = _a[0]; switch (_id) { case 0: *reinterpret_cast< bool*>(_v) = isModal(); break; case 1: *reinterpret_cast< Qt::WindowModality*>(_v) = windowModality(); break; case 2: *reinterpret_cast< bool*>(_v) = isEnabled(); break; case 3: *reinterpret_cast< QRect*>(_v) = geometry(); break; case 4: *reinterpret_cast< QRect*>(_v) = frameGeometry(); break; case 5: *reinterpret_cast< QRect*>(_v) = normalGeometry(); break; case 6: *reinterpret_cast< int*>(_v) = x(); break; case 7: *reinterpret_cast< int*>(_v) = y(); break; case 8: *reinterpret_cast< QPoint*>(_v) = pos(); break; case 9: *reinterpret_cast< QSize*>(_v) = frameSize(); break; case 10: *reinterpret_cast< QSize*>(_v) = size(); break; case 11: *reinterpret_cast< int*>(_v) = width(); break; case 12: *reinterpret_cast< int*>(_v) = height(); break; case 13: *reinterpret_cast< QRect*>(_v) = rect(); break; case 14: *reinterpret_cast< QRect*>(_v) = childrenRect(); break; case 15: *reinterpret_cast< QRegion*>(_v) = childrenRegion(); break; case 16: *reinterpret_cast< QSizePolicy*>(_v) = sizePolicy(); break; case 17: *reinterpret_cast< QSize*>(_v) = minimumSize(); break; case 18: *reinterpret_cast< QSize*>(_v) = maximumSize(); break; case 19: *reinterpret_cast< int*>(_v) = minimumWidth(); break; case 20: *reinterpret_cast< int*>(_v) = minimumHeight(); break; case 21: *reinterpret_cast< int*>(_v) = maximumWidth(); break; case 22: *reinterpret_cast< int*>(_v) = maximumHeight(); break; case 23: *reinterpret_cast< QSize*>(_v) = sizeIncrement(); break; case 24: *reinterpret_cast< QSize*>(_v) = baseSize(); break; case 25: *reinterpret_cast< QPalette*>(_v) = palette(); break; case 26: *reinterpret_cast< QFont*>(_v) = font(); break; case 27: *reinterpret_cast< QCursor*>(_v) = cursor(); break; case 28: *reinterpret_cast< bool*>(_v) = hasMouseTracking(); break; case 29: *reinterpret_cast< bool*>(_v) = isActiveWindow(); break; case 30: *reinterpret_cast< Qt::FocusPolicy*>(_v) = focusPolicy(); break; case 31: *reinterpret_cast< bool*>(_v) = hasFocus(); break; case 32: *reinterpret_cast< Qt::ContextMenuPolicy*>(_v) = contextMenuPolicy(); break; case 33: *reinterpret_cast< bool*>(_v) = updatesEnabled(); break; case 34: *reinterpret_cast< bool*>(_v) = isVisible(); break; case 35: *reinterpret_cast< bool*>(_v) = isMinimized(); break; case 36: *reinterpret_cast< bool*>(_v) = isMaximized(); break; case 37: *reinterpret_cast< bool*>(_v) = isFullScreen(); break; case 38: *reinterpret_cast< QSize*>(_v) = sizeHint(); break; case 39: *reinterpret_cast< QSize*>(_v) = minimumSizeHint(); break; case 40: *reinterpret_cast< bool*>(_v) = acceptDrops(); break; case 41: *reinterpret_cast< QString*>(_v) = windowTitle(); break; case 42: *reinterpret_cast< QIcon*>(_v) = windowIcon(); break; case 43: *reinterpret_cast< QString*>(_v) = windowIconText(); break; case 44: *reinterpret_cast< double*>(_v) = windowOpacity(); break; case 45: *reinterpret_cast< bool*>(_v) = isWindowModified(); break; case 46: *reinterpret_cast< QString*>(_v) = toolTip(); break; case 47: *reinterpret_cast< QString*>(_v) = statusTip(); break; case 48: *reinterpret_cast< QString*>(_v) = whatsThis(); break; case 49: *reinterpret_cast< QString*>(_v) = accessibleName(); break; case 50: *reinterpret_cast< QString*>(_v) = accessibleDescription(); break; case 51: *reinterpret_cast< Qt::LayoutDirection*>(_v) = layoutDirection(); break; case 52: *reinterpret_cast< bool*>(_v) = autoFillBackground(); break; case 53: *reinterpret_cast< QString*>(_v) = styleSheet(); break; case 54: *reinterpret_cast< QLocale*>(_v) = locale(); break; case 55: *reinterpret_cast< QString*>(_v) = windowFilePath(); break; case 56: *reinterpret_cast< Qt::InputMethodHints*>(_v) = inputMethodHints(); break; } _id -= 57; } else if (_c == QMetaObject::WriteProperty) { void *_v = _a[0]; switch (_id) { case 1: setWindowModality(*reinterpret_cast< Qt::WindowModality*>(_v)); break; case 2: setEnabled(*reinterpret_cast< bool*>(_v)); break; case 3: setGeometry(*reinterpret_cast< QRect*>(_v)); break; case 8: move(*reinterpret_cast< QPoint*>(_v)); break; case 10: resize(*reinterpret_cast< QSize*>(_v)); break; case 16: setSizePolicy(*reinterpret_cast< QSizePolicy*>(_v)); break; case 17: setMinimumSize(*reinterpret_cast< QSize*>(_v)); break; case 18: setMaximumSize(*reinterpret_cast< QSize*>(_v)); break; case 19: setMinimumWidth(*reinterpret_cast< int*>(_v)); break; case 20: setMinimumHeight(*reinterpret_cast< int*>(_v)); break; case 21: setMaximumWidth(*reinterpret_cast< int*>(_v)); break; case 22: setMaximumHeight(*reinterpret_cast< int*>(_v)); break; case 23: setSizeIncrement(*reinterpret_cast< QSize*>(_v)); break; case 24: setBaseSize(*reinterpret_cast< QSize*>(_v)); break; case 25: setPalette(*reinterpret_cast< QPalette*>(_v)); break; case 26: setFont(*reinterpret_cast< QFont*>(_v)); break; case 27: setCursor(*reinterpret_cast< QCursor*>(_v)); break; case 28: setMouseTracking(*reinterpret_cast< bool*>(_v)); break; case 30: setFocusPolicy(*reinterpret_cast< Qt::FocusPolicy*>(_v)); break; case 32: setContextMenuPolicy(*reinterpret_cast< Qt::ContextMenuPolicy*>(_v)); break; case 33: setUpdatesEnabled(*reinterpret_cast< bool*>(_v)); break; case 34: setVisible(*reinterpret_cast< bool*>(_v)); break; case 40: setAcceptDrops(*reinterpret_cast< bool*>(_v)); break; case 41: setWindowTitle(*reinterpret_cast< QString*>(_v)); break; case 42: setWindowIcon(*reinterpret_cast< QIcon*>(_v)); break; case 43: setWindowIconText(*reinterpret_cast< QString*>(_v)); break; case 44: setWindowOpacity(*reinterpret_cast< double*>(_v)); break; case 45: setWindowModified(*reinterpret_cast< bool*>(_v)); break; case 46: setToolTip(*reinterpret_cast< QString*>(_v)); break; case 47: setStatusTip(*reinterpret_cast< QString*>(_v)); break; case 48: setWhatsThis(*reinterpret_cast< QString*>(_v)); break; case 49: setAccessibleName(*reinterpret_cast< QString*>(_v)); break; case 50: setAccessibleDescription(*reinterpret_cast< QString*>(_v)); break; case 51: setLayoutDirection(*reinterpret_cast< Qt::LayoutDirection*>(_v)); break; case 52: setAutoFillBackground(*reinterpret_cast< bool*>(_v)); break; case 53: setStyleSheet(*reinterpret_cast< QString*>(_v)); break; case 54: setLocale(*reinterpret_cast< QLocale*>(_v)); break; case 55: setWindowFilePath(*reinterpret_cast< QString*>(_v)); break; case 56: setInputMethodHints(*reinterpret_cast< Qt::InputMethodHints*>(_v)); break; } _id -= 57; } else if (_c == QMetaObject::ResetProperty) { switch (_id) { case 27: unsetCursor(); break; case 51: unsetLayoutDirection(); break; case 54: unsetLocale(); break; } _id -= 57; } else if (_c == QMetaObject::QueryPropertyDesignable) { bool *_b = reinterpret_cast<bool*>(_a[0]); switch (_id) { case 41: *_b = isWindow(); break; case 42: *_b = isWindow(); break; case 43: *_b = isWindow(); break; case 44: *_b = isWindow(); break; case 45: *_b = isWindow(); break; case 55: *_b = isWindow(); break; } _id -= 57; } else if (_c == QMetaObject::QueryPropertyScriptable) { _id -= 57; } else if (_c == QMetaObject::QueryPropertyStored) { _id -= 57; } else if (_c == QMetaObject::QueryPropertyEditable) { _id -= 57; } else if (_c == QMetaObject::QueryPropertyUser) { _id -= 57; } #endif // QT_NO_PROPERTIES return _id; }