本文整理汇总了C++中removed函数的典型用法代码示例。如果您正苦于以下问题:C++ removed函数的具体用法?C++ removed怎么用?C++ removed使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了removed函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例2: removed
void Node::removeNode() {
if(b_deleted) return;
b_deleted = true;
emit removed(this);
p_icnDocument->appendDeleteList(this);
}
示例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 );
}
}
示例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 {
示例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);
}
示例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;
}
示例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);
}
示例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;
}
示例9: FieldForm
void MainWindow::addField()
{
FieldForm * fieldForm = new FieldForm(this);
fieldForms << fieldForm;
connect(fieldForm, SIGNAL(removed()), this, SLOT(removeField()));
fieldsLayout->addWidget(fieldForm);
fieldForm->show();
}
示例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()));
}
示例11:
void
SamplingItem::revive(void)
{
if (removed()) {
setRemoved(false);
my.curve->attach(my.chart);
}
}
示例12: removed
void
Echo::SimpleChat::disconnect (boost::shared_ptr<Ekiga::ChatObserver> observer)
{
observers.remove (observer);
if (observers.empty ())
removed ();
}
示例13: xmlUnlinkNode
void
Opal::Presentity::remove ()
{
xmlUnlinkNode (node);
xmlFreeNode (node);
trigger_saving ();
removed (this->shared_from_this ());
}
示例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);
}
示例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);
}