• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C++ removed函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中removed函数的典型用法代码示例。如果您正苦于以下问题:C++ removed函数的具体用法?C++ removed怎么用?C++ removed使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了removed函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: qWarning

void AccountInterfacePrivate::setAccount(Accounts::Account *acc)
{
    if (!acc) {
        qWarning() << "AccountInterface: setAccount() called with null account! Aborting operation.";
        return;
    }

    if (account) {
        qWarning() << "AccountInterface: setAccount() called but account already set! Aborting operation.";
        return;
    }

    account = acc;

    // connect up our signals.
    connect(account, SIGNAL(enabledChanged(QString,bool)), this, SLOT(enabledHandler(QString,bool)));
    connect(account, SIGNAL(displayNameChanged(QString)), this, SLOT(displayNameChangedHandler()));
    connect(account, SIGNAL(synced()), this, SLOT(handleSynced()));
    connect(account, SIGNAL(removed()), this, SLOT(invalidate()));
    connect(account, SIGNAL(destroyed()), this, SLOT(invalidate()));

    // first time read from db.  we should be in Initializing state to begin with.
    // QueuedConnection to ensure that clients have a chance to connect to state changed signals.
    QMetaObject::invokeMethod(this, "asyncQueryInfo", Qt::QueuedConnection);
}
开发者ID:martinjones,项目名称:nemo-qml-plugins,代码行数:25,代码来源:accountinterface.cpp


示例2: removed

void Node::removeNode() {
	if(b_deleted) return;

	b_deleted = true;
	emit removed(this);
	p_icnDocument->appendDeleteList(this);
}
开发者ID:zoltanp,项目名称:ktechlab-0.3,代码行数:7,代码来源:node.cpp


示例3: qDebug

void Q3LocalFs::operationRemove( Q3NetworkOperation *op )
{
#ifdef QLOCALFS_DEBUG
    qDebug( "Q3LocalFs: operationRemove" );
#endif
    op->setState( StInProgress );
    QString name = Q3Url( op->arg( 0 ) ).path();
    bool deleted = false;

    dir = QDir( url()->path() );

    QFileInfo fi( dir, name );
    if ( fi.isDir() ) {
	if ( dir.rmdir( name ) )
	    deleted = true;
    }

    if ( deleted || dir.remove( name ) ) {
	op->setState( StDone );
	emit removed( op );
	emit finished( op );
    } else {
	QString msg = tr( "Could not remove file or directory\n%1" ).arg( name );
	op->setState( StFailed );
	op->setProtocolDetail( msg );
	op->setErrorCode( (int)ErrRemove );
	emit finished( op );
    }
}
开发者ID:husninazer,项目名称:qt,代码行数:29,代码来源:q3localfs.cpp


示例4: QMainWindow

SimApp::SimApp(QWidget *parent, Qt::WFlags f)
    : QMainWindow(parent, f), view(0), notification(0),
      hasStk(false), simToolkitAvailable(false), eventList(0), failLabel(0),
      commandOutsideMenu(false), idleModeMsgId(-1), hasSustainedDisplayText(false)
{
    status = new QValueSpaceObject("/Telephony/Status", this);

    setWindowTitle(tr("SIM Applications"));
    stack = new QStackedWidget(this);
    stack->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ) );
    setCentralWidget(stack);

    stk = new QSimToolkit( QString(), this );
    iconReader = 0;

    connect(stk, SIGNAL(command(QSimCommand)),
            this, SLOT(simCommand(QSimCommand)));
    connect(stk, SIGNAL(beginFailed()), this, SLOT(beginFailed()));

    QSimInfo *simInfo = new QSimInfo(QString(), this);
    connect(simInfo, SIGNAL(removed()), this, SLOT(simRemoved()));

#ifndef QTOPIA_TEST
    waitDlg = UIFactory::createDialog( "DelayedWaitDialog", this );
    if ( waitDlg ) {
        QMetaObject::invokeMethod( waitDlg, "setText", Qt::DirectConnection, 
                Q_ARG(QString, tr( "Waiting for response..." ) ) );
        QMetaObject::invokeMethod( waitDlg, "setDelay", Qt::DirectConnection, Q_ARG(int, 500 ) );
    } else {
开发者ID:Camelek,项目名称:qtmoko,代码行数:29,代码来源:simapp.cpp


示例5: QStackedWidget

EditWidget::EditWidget(QWidget *parent, Model * newmod )
    : QStackedWidget(parent)
{
    this->setMaximumWidth(230);
    this->setMinimumWidth(230);
stateWidget = new StateWidget(this, newmod);
    this->addWidget(stateWidget);//,tr("State"));
transWidget = new TransWidget(this, newmod);
    this->addWidget(transWidget);//, tr("Transition"));
subtaskWidget = new SubtaskWidget(this, newmod);
    this->addWidget(subtaskWidget);//, tr("Subtasks"));
this->addWidget(new QWidget());

    connect(this, SIGNAL(currentChanged(int)), this, SLOT(refreshWidget(int)));

    connect(subtaskWidget, SIGNAL(added(QString)), (RESpecTa *)this->parentWidget(), SLOT(SubtaskAdded(QString)));
    connect(subtaskWidget, SIGNAL(changed(QString,QString)), (RESpecTa *)this->parentWidget(), SLOT(SubtaskChanged(QString, QString)));
    connect(subtaskWidget, SIGNAL(removed(QString)), (RESpecTa *)this->parentWidget(), SLOT(SubtaskRemoved(QString)));
    connect(subtaskWidget, SIGNAL(reportError(QString)), this, SLOT(forwardError(QString)));

    //connect (stateWidget, SIGNAL(InsertState(BaseState*)), (RESpecTa *)this->parentWidget(),SLOT(InsertState(BaseState*)));
    connect (stateWidget, SIGNAL(ReplaceState(BaseState * , BaseState * )), (RESpecTa *)this->parentWidget(),SLOT(ReplaceState(BaseState * , BaseState * )));
    connect (stateWidget, SIGNAL(reportError(QString)), this, SLOT(forwardError(QString)));

    //connect (transWidget, SIGNAL(insertTransition(std::pair<QString,QString>)), (RESpecTa *)this->parentWidget(),SLOT(insertTransition(std::pair<QString,QString>)));
    connect (transWidget, SIGNAL(reportError(QString)), this, SLOT(forwardError(QString)));

    connect((RESpecTa *)this->parentWidget(), SIGNAL(refreshWidgets()), this, SLOT(refreshAllWidgets()));
    connect((RESpecTa *)this->parentWidget(), SIGNAL(SignalDeleted()), this, SLOT(SignalDeleted()));
    this->setCurrentIndex(3);
}
开发者ID:twiniars,项目名称:RESpecTa,代码行数:31,代码来源:editWidget.cpp


示例6: QLatin1String

bool QNetworkManagerSettingsConnection::setConnections()
{
    if(!isValid() )
        return false;

    bool allOk = false;
    if(!nmConnection.connect(d->service, d->path,
                             QLatin1String(NM_DBUS_IFACE_SETTINGS_CONNECTION), QLatin1String("Updated"),
                             this, SIGNAL(updated(QNmSettingsMap)))) {
        allOk = true;
    } else {
        QDBusError error = nmConnection.lastError();
    }

    delete nmDBusHelper;
    nmDBusHelper = new QNmDBusHelper(this);
    connect(nmDBusHelper, SIGNAL(pathForSettingsRemoved(QString)),
            this,SIGNAL(removed(QString)));

    if (!nmConnection.connect(d->service, d->path,
                              QLatin1String(NM_DBUS_IFACE_SETTINGS_CONNECTION), QLatin1String("Removed"),
                              nmDBusHelper, SIGNAL(slotSettingsRemoved()))) {
        allOk = true;
    }

    return allOk;
}
开发者ID:fluxer,项目名称:katie,代码行数:27,代码来源:qnetworkmanagerservice.cpp


示例7: QWidget

CategoriesPage::CategoriesPage(Nepomuk::WebExtractorConfig* cfg, QWidget * parent):
    QWidget(parent),
    m_config(cfg),
    m_categoryEdited(false)
{
    this->setupUi(this);
    this->query_edit_widget->hide();
    this->query_prefix_edit->hide();
    this->plugins_selector = new PluginSelector(this);
    this->verticalLayout->insertWidget(0, this->plugins_selector);
    m_oldDelegate = this->plugins_selector->selectedView()->itemDelegate();
    m_newDelegate = new CategoryPluginItemDelegate(this->plugins_selector->selectedView(), this);
    this->plugins_selector->selectedView()->setItemDelegate(m_newDelegate);
    //this->plugins_selector->selectedListWidget()->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
    connect(this->query_edit, SIGNAL(textChanged()), this, SLOT(setCategoryChanged()));
    connect(this->query_prefix_edit, SIGNAL(textChanged()), this, SLOT(setCategoryChanged()));
    connect(this->interval_spinbox, SIGNAL(valueChanged(int)), this, SLOT(setCategoryChanged()));
    connect(this->plugins_selector, SIGNAL(added()), this, SLOT(setCategoryChanged()));
    connect(this->plugins_selector, SIGNAL(removed()), this, SLOT(setCategoryChanged()));
    connect(this->plugins_selector, SIGNAL(movedUp()), this, SLOT(setCategoryChanged()));
    connect(this->plugins_selector, SIGNAL(movedDown()), this, SLOT(setCategoryChanged()));
    connect(enabled_categories_listwidget, SIGNAL(currentItemChanged(QListWidgetItem*, QListWidgetItem*)),
            SLOT(switchCategory(QListWidgetItem*, QListWidgetItem*)));

    connect(Nepomuk::CategoriesPool::self(), SIGNAL(categoriesChanged()),
            this, SLOT(reloadAvailableCategoriesList()));

    // Initialize machine
    m_machine = new QStateMachine();
    s1 = new QState();
    s2 = new QState();
    s3 = new QState();

    s1->addTransition(manageButton, SIGNAL(clicked()), s2);
    s2->addTransition(returnButton, SIGNAL(clicked()), s1);

    m_machine->addState(s1);
    m_machine->addState(s2);
    m_machine->setInitialState(s1);

    connect(s1, SIGNAL(entered()), this, SLOT(reloadEnabledCategoriesList()));
    connect(s2, SIGNAL(exited()), this, SLOT(syncEnabledCategoriesList()));
    s1->assignProperty(stackedWidget, "currentIndex", 0);
    s2->assignProperty(stackedWidget, "currentIndex", 1);

    // Initialize validator
    m_catvalidator = new CategoryNameValidator(this);

    // Inilialize buttons
    this->add_button->setGuiItem(KStandardGuiItem::add());
    this->add_button->setText(QString());
    this->remove_button->setGuiItem(KStandardGuiItem::remove());
    this->remove_button->setText(QString());
    connect(this->add_button, SIGNAL(clicked()), this, SLOT(addButton()));

    // no need to query endless numbers of results when we only want to create a query
    Nepomuk::Query::Query baseQuery;
    baseQuery.setLimit(10);
    queryBuilder->setBaseQuery(baseQuery);
}
开发者ID:KDE,项目名称:nepomuk-web-extractor,代码行数:60,代码来源:CategoriesPage.cpp


示例8: switch

int QwtPicker::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) {
        switch (_id) {
        case 0: activated((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 1: selected((*reinterpret_cast< const QPolygon(*)>(_a[1]))); break;
        case 2: appended((*reinterpret_cast< const QPoint(*)>(_a[1]))); break;
        case 3: moved((*reinterpret_cast< const QPoint(*)>(_a[1]))); break;
        case 4: removed((*reinterpret_cast< const QPoint(*)>(_a[1]))); break;
        case 5: changed((*reinterpret_cast< const QPolygon(*)>(_a[1]))); break;
        case 6: setEnabled((*reinterpret_cast< bool(*)>(_a[1]))); break;
        default: ;
        }
        _id -= 7;
    }
#ifndef QT_NO_PROPERTIES
      else if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< bool*>(_v) = isEnabled(); break;
        case 1: *reinterpret_cast< ResizeMode*>(_v) = resizeMode(); break;
        case 2: *reinterpret_cast< DisplayMode*>(_v) = trackerMode(); break;
        case 3: *reinterpret_cast< QPen*>(_v) = trackerPen(); break;
        case 4: *reinterpret_cast< QFont*>(_v) = trackerFont(); break;
        case 5: *reinterpret_cast< RubberBand*>(_v) = rubberBand(); break;
        case 6: *reinterpret_cast< QPen*>(_v) = rubberBandPen(); break;
        }
        _id -= 7;
    } else if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: setEnabled(*reinterpret_cast< bool*>(_v)); break;
        case 1: setResizeMode(*reinterpret_cast< ResizeMode*>(_v)); break;
        case 2: setTrackerMode(*reinterpret_cast< DisplayMode*>(_v)); break;
        case 3: setTrackerPen(*reinterpret_cast< QPen*>(_v)); break;
        case 4: setTrackerFont(*reinterpret_cast< QFont*>(_v)); break;
        case 5: setRubberBand(*reinterpret_cast< RubberBand*>(_v)); break;
        case 6: setRubberBandPen(*reinterpret_cast< QPen*>(_v)); break;
        }
        _id -= 7;
    } else if (_c == QMetaObject::ResetProperty) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 7;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}
开发者ID:lolsborn,项目名称:RovDash,代码行数:59,代码来源:moc_qwt_picker.cpp


示例9: FieldForm

void MainWindow::addField()
{
	FieldForm * fieldForm = new FieldForm(this);
	fieldForms << fieldForm;
	connect(fieldForm, SIGNAL(removed()), this, SLOT(removeField()));
	fieldsLayout->addWidget(fieldForm);
	fieldForm->show();
}
开发者ID:Voker57,项目名称:qposter,代码行数:8,代码来源:mainwindow.cpp


示例10: QObject

EditStringListWrapper::EditStringListWrapper(const QString &objectName, KEditListBox *parent)
    : QObject(parent), parent(parent)
{
    setObjectName(objectName);
    connect(parent, SIGNAL(added(QString)), this, SLOT(stringListChanged()));
    connect(parent, SIGNAL(removed(QString)), this, SLOT(stringListChanged()));
    connect(parent, SIGNAL(changed()), this, SLOT(stringListChanged()));
}
开发者ID:GuLinux,项目名称:Touche,代码行数:8,代码来源:RunCommandConfig.cpp


示例11:

void
SamplingItem::revive(void)
{
    if (removed()) {
	setRemoved(false);
	my.curve->attach(my.chart);
    }
}
开发者ID:Aconex,项目名称:pcp,代码行数:8,代码来源:sampling.cpp


示例12: removed

void
Echo::SimpleChat::disconnect (boost::shared_ptr<Ekiga::ChatObserver> observer)
{
  observers.remove (observer);

  if (observers.empty ())
    removed ();
}
开发者ID:Klom,项目名称:ekiga,代码行数:8,代码来源:echo-simple.cpp


示例13: xmlUnlinkNode

void
Opal::Presentity::remove ()
{
  xmlUnlinkNode (node);
  xmlFreeNode (node);

  trigger_saving ();
  removed (this->shared_from_this ());
}
开发者ID:GNOME,项目名称:ekiga,代码行数:9,代码来源:opal-presentity.cpp


示例14: in

void CValuables::remove(const hacc::TIDList & idList)
{
    HACC_DB->exec("delete from valuables where id in (" + tools::convert::idListToString(idList) + ")");
    foreach(hacc::TDBID id, idList)
    {
        //! \todo проследить, чтобы удалились перемещения
        detachTags(id);
        emit removed(id);
    }
开发者ID:Sheridan,项目名称:HAcc,代码行数:9,代码来源:cvaluables.cpp


示例15: can_change_right

bool User::can_change_right(AdminRights r, const UserPtr& who) const {
    if (!who || who->removed() || removed()) {
        return false;
    }
    if (who != self() && has_permission(SUPER_RIGHTS_CHANGER)) {
        return false;
    }
    return who->has_permission(SUPER_RIGHTS_CHANGER);
}
开发者ID:starius,项目名称:thechess,代码行数:9,代码来源:User.cpp


示例16: xmlUnlinkNode

void
Opal::Presentity::remove ()
{
  xmlUnlinkNode (node);
  xmlFreeNode (node);

  trigger_saving ();
  removed ();
}
开发者ID:UIKit0,项目名称:ekiga,代码行数:9,代码来源:opal-presentity.cpp


示例17: removed

void Plugin::remove()
{
    if (!d->removed) {
        d->removed = !QFile::exists(absolutePath()) || QFile::remove(absolutePath());
        if (d->removed) {
            emit removed();
        }
    }
}
开发者ID:project-renard-survey,项目名称:utopia-documents-mirror,代码行数:9,代码来源:plugin.cpp


示例18: streamLocker

void ViBufferStream::remove(qint64 position, int length)
{
    QMutexLocker streamLocker(&mStreamMutex);
    if(mBuffer->remove(position, length))
    {
        streamLocker.unlock();
        removed(position, length);
    }
}
开发者ID:EQ4,项目名称:Visore,代码行数:9,代码来源:vibufferstream.cpp


示例19: connect

//-------------------------------------------------------------------------------------------------
void BachKeywordView::enableCallbacks()
{
	if ( m_CallbacksEnabled )
		return;
    connect( BachKeyword::table(), SIGNAL( updated( Record, Record ) ), mKeywordsModel, SLOT( updated( Record ) ) );
    connect( BachKeywordMap::table(), SIGNAL( added( RecordList ) ), SLOT( refresh() ) );
    connect( BachKeywordMap::table(), SIGNAL( removed( RecordList ) ), SLOT( refresh() ) );
    m_CallbacksEnabled = true;
}
开发者ID:EntityFXCode,项目名称:arsenalsuite,代码行数:10,代码来源:BachKeywordView.cpp


示例20: xmlUnlinkNode

void
OPENLDAP::Book::remove ()
{
  xmlUnlinkNode (node);
  xmlFreeNode (node);

  trigger_saving ();
  removed (this->shared_from_this ());
}
开发者ID:GNOME,项目名称:ekiga,代码行数:9,代码来源:ldap-book.cpp



注:本文中的removed函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ removeentry函数代码示例发布时间:2022-05-30
下一篇:
C++ remove_tmp_directory函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap