示例#1
0
void GroupMgr::player(const charProfileStruct* player)
{
  // reset counters
  m_memberCount = 0;
  m_membersInZoneCount = 0;

  emit cleared();

  // initialize the array of members with information from the player profile
  for (int i = 0; i < MAX_GROUP_MEMBERS; i++)
  {
    m_members[i]->m_name = player->groupMembers[i];

    if (!m_members[i]->m_name.isEmpty())
      m_memberCount++;

    if (m_members[i]->m_name != player->name)
      m_members[i]->m_spawn = 0;
    else
    {
      m_members[i]->m_spawn = (const Spawn*)m_player;
      
      m_membersInZoneCount++;
    }

    emit added(m_members[i]->m_name, m_members[i]->m_spawn);
  }
}
DataSourceView::DataSourceView(const QString &rootPath, QWidget *parent) :
	QTreeView(parent),
	m_path(rootPath)
{
	// boss requirement - icons shoudl have be at least 32px sized
	setStyleSheet("icon-size: 32px;");

	m_proxy = new DataSourceProxyModel(this);

	m_model = new DataSourceModel(this);
	m_proxy->setSourceModel(m_model);

	setModel(m_proxy);
	refreshModel();

	header()->close();

	setContextMenuPolicy(Qt::CustomContextMenu);

	m_signalMapper = new QSignalMapper(this);

	connect(m_signalMapper, SIGNAL(mapped(QString)),
	        this, SLOT(spawnZimaUtilityOnDir(QString)));
	connect(this, SIGNAL(customContextMenuRequested(QPoint)),
	        this, SLOT(showContextMenu(QPoint)));
	connect(this, SIGNAL(clicked(QModelIndex)),
	        this, SLOT(modelClicked(QModelIndex)));
	connect(MetadataCache::get(), SIGNAL(cleared()),
	        this, SLOT(refreshModel()));
}
DeclarativeBookmarkModel::DeclarativeBookmarkModel(QObject *parent) :
    QAbstractListModel(parent)
{
    connect(BookmarkManager::instance(), SIGNAL(cleared()), this, SLOT(clearBookmarks()));
    bookmarks = BookmarkManager::instance()->load();
    bookmarkUrls = bookmarks.keys();
}
void QgsProjectionSelectionWidget::comboIndexChanged( int idx )
{
  switch ( ( CrsOption )mCrsComboBox->itemData( idx ).toInt() )
  {
    case QgsProjectionSelectionWidget::LayerCrs:
      emit crsChanged( mLayerCrs );
      return;
    case QgsProjectionSelectionWidget::ProjectCrs:
      emit crsChanged( mProjectCrs );
      return;
    case QgsProjectionSelectionWidget::CurrentCrs:
      emit crsChanged( mCrs );
      return;
    case QgsProjectionSelectionWidget::DefaultCrs:
      emit crsChanged( mDefaultCrs );
      return;
    case QgsProjectionSelectionWidget::RecentCrs:
    {
      long srsid = mCrsComboBox->itemData( idx, Qt::UserRole + 1 ).toLongLong();
      QgsCoordinateReferenceSystem crs = QgsCoordinateReferenceSystem::fromSrsId( srsid );
      emit crsChanged( crs );
      return;
    }
    case QgsProjectionSelectionWidget::CrsNotSet:
      emit cleared();
      emit crsChanged( QgsCoordinateReferenceSystem() );
      return;
  }
}
void DiffEditorController::clear(const QString &message)
{
    setDescription(QString());
    setDiffFiles(QList<FileData>());
    m_clearMessage = message;
    emit cleared(message);
}
示例#6
0
RERepeatDialog::RERepeatDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::RERepeatDialog)
{
    ui->setupUi(this);

    // Create an additional Clear button
    QPushButton* btn = ui->buttonBox->addButton(QObject::tr("Clear"), QDialogButtonBox::DestructiveRole);
    QObject::connect(btn, SIGNAL(clicked()), this, SLOT(cleared()));

    ui->jumpTypeCombo->addItem(tr("No Jump"));
    ui->jumpTypeCombo->addItem("D.C.");
    ui->jumpTypeCombo->addItem("D.C. al Fine");
    ui->jumpTypeCombo->addItem("D.C. al Coda");
    ui->jumpTypeCombo->addItem("D.C. al Double Coda");
    ui->jumpTypeCombo->addItem("D.S.");
    ui->jumpTypeCombo->addItem("D.S. al Fine");
    ui->jumpTypeCombo->addItem("D.S. al Coda");
    ui->jumpTypeCombo->addItem("D.S. al Double Coda");
    ui->jumpTypeCombo->addItem("D.S.S.");
    ui->jumpTypeCombo->addItem("D.S.S. al Fine");
    ui->jumpTypeCombo->addItem("D.S.S. al Coda");
    ui->jumpTypeCombo->addItem("D.S.S. al Double Coda");

    _repeatStartGroup = new QButtonGroup(this);
    _repeatStartGroup->setExclusive(true);
    _repeatStartGroup->addButton(ui->barlineStart0, 0);
    _repeatStartGroup->addButton(ui->barlineStart1, 1);

    _repeatEndGroup = new QButtonGroup(this);
    _repeatEndGroup->setExclusive(true);
    _repeatEndGroup->addButton(ui->barlineEnd0, 0);
    _repeatEndGroup->addButton(ui->barlineEnd1, 1);
}
示例#7
0
void
MainWorkflow::clear()
{
    for ( unsigned int i = 0; i < Workflow::NbTrackType; ++i )
        m_tracks[i]->clear();
    emit cleared();
}
示例#8
0
 void clear() {
     emit cleared();
     foreach(vfile *vf, _vfiles)
         delete vf;
     _vfiles.clear();
     _foundText.clear();
 }
示例#9
0
ExLineEdit::ExLineEdit(QWidget *parent, bool fix_url)
    : QWidget(parent)
    , m_leftWidget(0)
    , m_lineEdit(new LineEdit(this, fix_url))
    , m_clearButton(0)
{
    setFocusPolicy(m_lineEdit->focusPolicy());
    setAttribute(Qt::WA_InputMethodEnabled);
    setSizePolicy(m_lineEdit->sizePolicy());
    setBackgroundRole(m_lineEdit->backgroundRole());
    setMouseTracking(true);
    setAcceptDrops(true);
    setAttribute(Qt::WA_MacShowFocusRect, true);
    QPalette p = m_lineEdit->palette();
    setPalette(p);

    // line edit
    m_lineEdit->setFrame(false);
    m_lineEdit->setFocusProxy(this);
    m_lineEdit->setAttribute(Qt::WA_MacShowFocusRect, false);
    QPalette clearPalette = m_lineEdit->palette();
    clearPalette.setBrush(QPalette::Base, QBrush(Qt::transparent));
    m_lineEdit->setPalette(clearPalette);

    // clearButton
    m_clearButton = new ClearButton(this);
    connect(m_lineEdit, SIGNAL(textChanged(const QString&)),
            m_clearButton, SLOT(textChanged(const QString&)));

    connect(m_clearButton, SIGNAL(clicked()),
            this, SLOT(cleared()));
}
示例#10
0
void Field::cleanLines(){
    int clearedCount=0;
    for(int y=_height-1;y>=0;y--){
        bool fully=true;
        for(int x=0;x<_width;x++){
            if(getReal(x,y)==NoneCell){
                fully=false;
                break;
            }
        }
        if(fully){
            for(int cy=y-1;cy>=0;cy--){
                for(int x=0;x<_width;x++){
                    set(x,cy+1,getReal(x,cy));
                }
            }
            for(int x=0;x<_width;x++){
                set(x,0,NoneCell);
            }
            y++;
            clearedCount++;
        }
    }
    emit cleared(clearedCount);
}
示例#11
0
void ReferencedData::clear()
{
    if (!mVector.isEmpty()) {
        mVector.clear();
        emit cleared(type);
    }
}
示例#12
0
void Messages::clear(void)
{
  // clear the messages
  m_messages.clear();

  // signal that the messages have been cleared
  emit cleared();
}
示例#13
0
void StackedTileLoader::clear()
{
    qDeleteAll( d->m_tilesOnDisplay );
    d->m_tilesOnDisplay.clear();
    d->m_tileCache.clear(); // clear the tile cache in physical memory

    emit cleared();
}
示例#14
0
void PlaylistModel::clear()
{
    if (!m_playlist) return;
    beginRemoveRows(QModelIndex(), 0, rowCount() - 1);
    m_playlist->clear();
    endRemoveRows();
    emit cleared();
}
示例#15
0
QgsBrowserDockWidget::QgsBrowserDockWidget( const QString& name, QWidget * parent )
    : QgsDockWidget( parent )
    , mModel( nullptr )
    , mProxyModel( nullptr )
    , mPropertiesWidgetEnabled( false )
    , mPropertiesWidgetHeight( 0 )
{
  setupUi( this );

  setWindowTitle( name );

  mBrowserView = new QgsDockBrowserTreeView( this );
  mLayoutBrowser->addWidget( mBrowserView );

  mWidgetFilter->hide();
  mLeFilter->setPlaceholderText( tr( "Type here to filter visible items..." ) );
  // icons from http://www.fatcow.com/free-icons License: CC Attribution 3.0

  QMenu* menu = new QMenu( this );
  menu->setSeparatorsCollapsible( false );
  mBtnFilterOptions->setMenu( menu );
  QAction* action = new QAction( tr( "Case Sensitive" ), menu );
  action->setData( "case" );
  action->setCheckable( true );
  action->setChecked( false );
  connect( action, SIGNAL( toggled( bool ) ), this, SLOT( setCaseSensitive( bool ) ) );
  menu->addAction( action );
  QActionGroup* group = new QActionGroup( menu );
  action = new QAction( tr( "Filter Pattern Syntax" ), group );
  action->setSeparator( true );
  menu->addAction( action );
  action = new QAction( tr( "Normal" ), group );
  action->setData( "normal" );
  action->setCheckable( true );
  action->setChecked( true );
  menu->addAction( action );
  action = new QAction( tr( "Wildcard(s)" ), group );
  action->setData( "wildcard" );
  action->setCheckable( true );
  menu->addAction( action );
  action = new QAction( tr( "Regular Expression" ), group );
  action->setData( "regexp" );
  action->setCheckable( true );
  menu->addAction( action );

  connect( mActionRefresh, SIGNAL( triggered( bool ) ), this, SLOT( refresh() ) );
  connect( mActionAddLayers, SIGNAL( triggered( bool ) ), this, SLOT( addSelectedLayers() ) );
  connect( mActionCollapse, SIGNAL( triggered( bool ) ), mBrowserView, SLOT( collapseAll() ) );
  connect( mActionShowFilter, SIGNAL( triggered( bool ) ), this, SLOT( showFilterWidget( bool ) ) );
  connect( mActionPropertiesWidget, SIGNAL( triggered( bool ) ), this, SLOT( enablePropertiesWidget( bool ) ) );
  connect( mLeFilter, SIGNAL( returnPressed() ), this, SLOT( setFilter() ) );
  connect( mLeFilter, SIGNAL( cleared() ), this, SLOT( setFilter() ) );
  connect( mLeFilter, SIGNAL( textChanged( const QString & ) ), this, SLOT( setFilter() ) );
  connect( group, SIGNAL( triggered( QAction * ) ), this, SLOT( setFilterSyntax( QAction * ) ) );
  connect( mBrowserView, SIGNAL( customContextMenuRequested( const QPoint & ) ), this, SLOT( showContextMenu( const QPoint & ) ) );
  connect( mBrowserView, SIGNAL( doubleClicked( const QModelIndex& ) ), this, SLOT( addLayerAtIndex( const QModelIndex& ) ) );
  connect( mSplitter, SIGNAL( splitterMoved( int, int ) ), this, SLOT( splitterMoved() ) );
}
示例#16
0
void AmB2ABSession::clear_other()
{
#if __GNUC__ < 3
  string cleared ("");
  other_id.assign (cleared, 0, 0);
#else
  other_id.clear();
#endif
}
KonqCombo::KonqCombo( QWidget *parent )
          : KHistoryComboBox( parent ),
            m_returnPressed( false ),
            m_permanent( false ),
	    m_pageSecurity( KonqMainWindow::NotCrypted )
{
    setLayoutDirection(Qt::LeftToRight);
    setInsertPolicy( NoInsert );
    setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Fixed ));
    setSizeAdjustPolicy( QComboBox::AdjustToMinimumContentsLength );

    Q_ASSERT( s_config );

    KConfigGroup locationBarGroup( s_config, "Location Bar" );
    setMaxCount( locationBarGroup.readEntry("Maximum of URLs in combo", 20 ));

    // We should also connect the completionBox' highlighted signal to
    // our setEditText() slot, because we're handling the signals ourselves.
    // But we're lazy and let KCompletionBox do this and simply switch off
    // handling of signals later.
    setHandleSignals( true );

    KonqComboLineEdit *edit = new KonqComboLineEdit( this );
    edit->setHandleSignals( true );
    edit->setCompletionBox( new KonqComboCompletionBox( edit ) );
    setLineEdit( edit );
    setItemDelegate( new KonqComboItemDelegate( this ) );

    connect( edit, SIGNAL(textEdited(QString)),
             this, SLOT(slotTextEdited(QString)) );

    completionBox()->setTabHandling(true); // #167135
    completionBox()->setItemDelegate( new KonqComboItemDelegate( this ) );

    // Make the lineedit consume the Qt::Key_Enter event...
    setTrapReturnKey( true );

    connect( KonqHistoryManager::kself(), SIGNAL(cleared()), SLOT(slotCleared()) );
    connect( this, SIGNAL(cleared()), SLOT(slotCleared()) );
    connect( this, SIGNAL(highlighted(int)), SLOT(slotSetIcon(int)) );
    connect( this, SIGNAL(activated(QString)),
             SLOT(slotActivated(QString)) );
}
void QmlProfilerTraceClient::clearData()
{
    d->eventTypeIds.clear();
    d->rangesInProgress.clear();
    if (d->recordedFeatures != 0) {
        d->recordedFeatures = 0;
        emit recordedFeaturesChanged(0);
    }
    emit cleared();
}
示例#19
0
void PlaylistModel::remove(int row)
{
    if (!m_playlist) return;
    beginRemoveRows(QModelIndex(), row, row);
    m_playlist->remove(row);
    endRemoveRows();
    if (m_playlist->count() == 0)
        emit cleared();
    else
        emit modified();
}
示例#20
0
/*!
	\details Create a new pQueuedStatusBar object
	\param parent The parent widget
*/
pQueuedStatusBar::pQueuedStatusBar( QWidget* parent )
	: QStatusBar( parent )
{
	mDefaultPalette = palette();
	// create pQueuedMessageWidget
	mQueuedWidget = new pQueuedMessageWidget( this );
	addWidget( mQueuedWidget, 100 );
	// connections
	connect( mQueuedWidget, SIGNAL( messageShown( const pQueuedMessage& ) ), this, SLOT( messageShown( const pQueuedMessage& ) ) );
	connect( mQueuedWidget, SIGNAL( cleared() ), this, SLOT( messageCleared() ) );
}
示例#21
0
文件: bfvm.cpp 项目: ORBAT/QtBrain
    void BfVM::clear() {
        qDebug("BfVM::clear()");
        reset();
        //m_program->clear();
        if(m_program != NULL) {
            delete[] m_program;
            m_program = NULL;
        }
        emit cleared();
#ifndef QT_NO_DEBUG
        listStates();
#endif
    }
示例#22
0
/**
 * Default constructor.
 * Allocates the data buffer with the size provided.
 */
mcl_rx_pkt::mcl_rx_pkt (INT32	max_size)
{
	this->buf = new char[max_size];
	ASSERT(this->buf);
#ifdef LDPC_FEC	/* LDPC DecodeFecStep requires that buffer be
		 * cleared (problem of last packet of a block)
		 * not required by RSE; padding of last pkt of
		 * a block cleared while copying into temp buf
		 */
	memset(this->buf, 0, max_size);
#endif
	this->buf_len = max_size;
	this->pkt_len = 0;
}
示例#23
0
void Model::clear()
{
  cleared();

  auto segs = shallow_copy(m_segments);
  m_segments.clear();
  for (auto seg : segs)
    seg->deleteLater();

  auto pts = m_points;
  m_points.clear();
  for (auto pt : pts)
    pt->deleteLater();
}
示例#24
0
void Doc_Test::cleanup()
{
    QSignalSpy spy1(m_doc, SIGNAL(clearing()));
    QSignalSpy spy2(m_doc, SIGNAL(cleared()));
    m_doc->clearContents();
    QCOMPARE(spy1.size(), 1);
    QCOMPARE(spy2.size(), 1);
    QCOMPARE(m_doc->functions().size(), 0);
    QCOMPARE(m_doc->fixtures().size(), 0);
    QCOMPARE(m_doc->fixtureGroups().size(), 0);
    QCOMPARE(m_doc->m_latestFunctionId, quint32(0));
    QCOMPARE(m_doc->m_latestFixtureId, quint32(0));
    QCOMPARE(m_doc->m_latestFixtureGroupId, quint32(0));
    QCOMPARE(m_doc->m_addresses.size(), 0);
}
示例#25
0
void Controller::createConnections()
{
  connect(_clipboard,SIGNAL(changed(QClipboard::Mode)),this,SLOT(clipboardChanged(QClipboard::Mode)));

  connect(_history,SIGNAL(added(ClipboardEntity*,int)),this,SLOT(history_itemAdded(ClipboardEntity*,int)));
  connect(_history,SIGNAL(removed(int,int)),this,SLOT(history_removed(int,int)));
  connect(_history,SIGNAL(cleared()),this,SLOT(history_cleared()));
  connect(_history,SIGNAL(locationExchanged(int,int)),this,SLOT(locationExchanged(int,int)));

  connect(_manager,SIGNAL(shown()),this,SLOT(manager_shown()));
  connect(_manager,SIGNAL(hidden()),this,SLOT(manager_hidden()));
  connect(_manager,SIGNAL(hidden()),_trayIcon,SLOT(managerHidden()));
  connect(_manager,SIGNAL(shown()),_trayIcon,SLOT(managerShown()));
  connect(_manager,SIGNAL(settingsDialogRequested()),this,SLOT(settingsWindowRequested()));
  connect(_manager,SIGNAL(itemSelected(int)),this,SLOT(itemSelected(int)));
  connect(_manager,SIGNAL(showContentRequested(ClipboardEntity*)),this,SLOT(showContent(ClipboardEntity*)));
  connect(_manager,SIGNAL(locationExchangeRequested(int,int)),this,SLOT(locationExchangeRequested(int,int)));

  connect(_trayIcon,SIGNAL(showHideManagerTriggerd()),this,SLOT(showHideManagerRequest()));
  connect(_trayIcon,SIGNAL(itemSelected(int)),this,SLOT(itemSelected(int)));
  connect(_trayIcon,SIGNAL(settingsDialogRequested()),this,SLOT(settingsWindowRequested()));
  connect(_trayIcon,SIGNAL(turnOffGenius()),this,SLOT(turnOffRequest()));
  connect(_trayIcon,SIGNAL(turnOnGenius()),this,SLOT(turnOnRequest()));
  connect(_trayIcon,SIGNAL(exitRequested()),this,SLOT(exitRequested()));
  connect(_trayIcon,SIGNAL(pause()),this,SLOT(pauseRequested()));
  connect(_trayIcon,SIGNAL(resume()),this,SLOT(resumeRequested()));

  connect(_selector,SIGNAL(closing(int)),this,SLOT(selectorClosed(int)));
  connect(_settingsWindow,SIGNAL(hiding()),this,SLOT(settingsWindow_hidden()));

  if(_openSelectorHotkey)
    connect(_openSelectorHotkey,SIGNAL(activated()),this,SLOT(openSelectorHKtriggered()));

  if(_clearHistoryHotKey)
    connect(_clearHistoryHotKey,SIGNAL(activated()),this,SLOT(clearHistoryHKTrigered()));

  if(_pasteLastHotKey)
    connect(_pasteLastHotKey,SIGNAL(activated()),this,SLOT(pasteLasteHKTrigered()));

  if(_openManagerHotKey)
    connect(_openManagerHotKey,SIGNAL(activated()),this,SLOT(openManagerHKTriggered()));

  if(_openSettingsHotKey)
    connect(_openSettingsHotKey,SIGNAL(activated()),this,SLOT(openSettingsHKTriggered()));

  if(_historyMenuHotKey)
    connect(_historyMenuHotKey,SIGNAL(activated()),this,SLOT(historyMenuHotkeyActivated()));
}
Preferences::Preferences(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Preferences)
{
    Settings settings(Settings::global());
    ui->setupUi(this);
    ui->terminalDeviceRefreshButton->setText(CFont::iconRefresh());
    ui->terminalDeviceRefreshButton->setObjectName("blueButton");
    ui->terminalDeviceRefreshButton->setEnabled(false);

    ui->terminalLabel->setText(CFont::fontAwesome(CFont::iconTerminal()) + " Terminal");

    ui->terminalDevicePinConfigSpinBox->setAttribute(Qt::WA_MacShowFocusRect, 0);
    ui->terminalDeviceLockCheckBox->setObjectName("lock");

    ui->terminalLogFile->setObjectName("unified");
    ui->terminalLogFile->setBrowseVisible(true);
    ui->terminalLogFile->setBrowseMode(QFileDialog::AnyFile, QFileDialog::AcceptSave);
    ui->terminalLogFile->lineEdit()->setText( settings.terminalLogFile() );
    ui->terminalDevicePinConfigSpinBox->setValue(
                settings.terminalDevicePinConfig().toInt()
                );

    ui->uartBaudrateComboBox->setCurrentIndex(
                ui->uartBaudrateComboBox->findText(
                    settings.uartBaudrate()
                    )
                );

    ui->uartParityComboBox->setCurrentIndex(
                ui->uartParityComboBox->findText(
                    settings.uartParity()
                    )
                );

    ui->uartStopComboBox->setCurrentIndex(
                ui->uartStopComboBox->findText(
                    settings.uartStopbits()
                    )
                );

    ui->terminalDeviceComboBox->addItem( settings.terminalDevice() );
    ui->terminalEnableAfterInstallCheckBox->setChecked( settings.terminalShowAferInstall() );
    connect(ui->terminalLogFile->lineEdit(), SIGNAL(editingFinished()), this, SLOT(terminalLogFile_editingFinished()));
    connect(ui->terminalLogFile, SIGNAL(fileDialogSelected()), this, SLOT(terminalLogFile_editingFinished()));
    connect(ui->terminalLogFile, SIGNAL(cleared()), this, SLOT(terminalLogFile_editingFinished()));

}
/*!
	\details Create a new pQueuedMessageToolBar object
	\param parent The parent widget
*/
pQueuedMessageToolBar::pQueuedMessageToolBar( QWidget* parent )
	: QToolBar( parent )
{
	setMovable( false );
	setFloatable( false );
	setAllowedAreas( Qt::TopToolBarArea );
	toggleViewAction()->setEnabled( false );
	toggleViewAction()->setVisible( false );
	mDefaultPalette = palette();
	// create pQueuedMessageWidget
	mQueuedWidget = new pQueuedMessageWidget( this );
	addWidget( mQueuedWidget );
	// connections
	connect( mQueuedWidget, SIGNAL( messageShown( const pQueuedMessage& ) ), this, SLOT( messageShown( const pQueuedMessage& ) ) );
	connect( mQueuedWidget, SIGNAL( cleared() ), this, SLOT( messageCleared() ) );
}
示例#28
0
void QgsFilterLineEdit::clearValue()
{
  switch ( mClearMode )
  {
    case ClearToNull:
      setText( mNullValue );
      selectAll();
      break;

    case ClearToDefault:
      setText( mDefaultValue );
      break;
  }

  setModified( true );
  emit cleared();
}
示例#29
0
QgsDoubleSpinBox::QgsDoubleSpinBox( QWidget *parent )
    : QDoubleSpinBox( parent )
    , mShowClearButton( true )
    , mClearValueMode( MinimumValue )
    , mCustomClearValue( 0.0 )
    , mExpressionsEnabled( true )
{
  mLineEdit = new QgsSpinBoxLineEdit();

  setLineEdit( mLineEdit );

  QSize msz = minimumSizeHint();
  setMinimumSize( msz.width() + CLEAR_ICON_SIZE + 9 + frameWidth() * 2 + 2,
                  qMax( msz.height(), CLEAR_ICON_SIZE + frameWidth() * 2 + 2 ) );

  connect( mLineEdit, SIGNAL( cleared() ), this, SLOT( clear() ) );
  connect( this, SIGNAL( valueChanged( double ) ), this, SLOT( changed( double ) ) );
}
int Velasquez::EditorScene::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QGraphicsScene::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: cleared(); break;
        case 1: backgroundColorChanged((*reinterpret_cast< const QColor(*)>(_a[1]))); break;
        case 2: itemAdded((*reinterpret_cast< QGraphicsItem*(*)>(_a[1]))); break;
        case 3: itemRemoved((*reinterpret_cast< QGraphicsItem*(*)>(_a[1]))); break;
        case 4: onSelectionChanged(); break;
        default: ;
        }
        _id -= 5;
    }
    return _id;
}