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

C++ sClose函数代码示例

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

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



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

示例1: XWidget

itemGroup::itemGroup(QWidget* parent, const char* name, Qt::WFlags fl)
    : XWidget(parent, name, fl)
{
  setupUi(this);

  connect(_new, SIGNAL(clicked()), this, SLOT(sNew()));
  connect(_delete, SIGNAL(clicked()), this, SLOT(sDelete()));
  connect(_newParent, SIGNAL(clicked()), this, SLOT(sNewParent()));
  connect(_deleteParent, SIGNAL(clicked()), this, SLOT(sDeleteParent()));
  connect(_save, SIGNAL(clicked()), this, SLOT(sSave()));
  connect(_close, SIGNAL(clicked()), this, SLOT(sClose()));
  connect(_name, SIGNAL(editingFinished()), this, SLOT(sCheck()));

  _itemgrpitem->addColumn(tr("Name"),        _itemColumn,  Qt::AlignLeft, true, "item_number" );
  _itemgrpitem->addColumn(tr("Description"), -1,           Qt::AlignLeft, true, "item_descrip" );

  _itemgrpparent->addColumn(tr("Name"),        _itemColumn,  Qt::AlignLeft, true, "itemgrp_name" );
  _itemgrpparent->addColumn(tr("Description"), -1,           Qt::AlignLeft, true, "itemgrp_descrip" );
}
开发者ID:NemoDevel,项目名称:qt-client,代码行数:19,代码来源:itemGroup.cpp


示例2: XDialog

/*
 *  Constructs a hotkeys as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The dialog will by default be modeless, unless you set 'modal' to
 *  true to construct a modal dialog.
 */
hotkeys::hotkeys(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
    : XDialog(parent, name, modal, fl)
{
  setupUi(this);

  // signals and slots connections
  connect(_new, SIGNAL(clicked()), this, SLOT(sNew()));
  connect(_edit, SIGNAL(clicked()), this, SLOT(sEdit()));
  connect(_delete, SIGNAL(clicked()), this, SLOT(sDelete()));
  connect(_close, SIGNAL(clicked()), this, SLOT(sClose()));
  connect(_hotkey, SIGNAL(valid(bool)), _edit, SLOT(setEnabled(bool)));
  connect(_hotkey, SIGNAL(valid(bool)), _delete, SLOT(setEnabled(bool)));
  connect(_hotkey, SIGNAL(itemSelected(int)), _edit, SLOT(animateClick()));

  _dirty = false;

  _hotkey->addColumn(tr("Keystroke"), _itemColumn, Qt::AlignLeft );
  _hotkey->addColumn(tr("Action"),    -1,          Qt::AlignLeft );
  _hotkey->addColumn("key",           0,           Qt::AlignLeft );

  sFillList();
}
开发者ID:ChristopherCotnoir,项目名称:qt-client,代码行数:29,代码来源:hotkeys.cpp


示例3: XDialog

invoiceList::invoiceList(QWidget* parent, const char* name, bool modal, Qt::WFlags fl)
  : XDialog(parent, name, modal, fl)
{
  setupUi(this);

  // signals and slots connections
  connect(_close, SIGNAL(clicked()), this, SLOT(sClose()));
  connect(_select, SIGNAL(clicked()), this, SLOT(sSelect()));
  connect(_invoice, SIGNAL(itemSelected(int)), this, SLOT(sSelect()));
  connect(_cust, SIGNAL(newId(int)), this, SLOT(sFillList()));
  connect(_dates, SIGNAL(updated()), this, SLOT(sFillList()));

  QDate today(omfgThis->dbDate());
  _dates->setEndDate(today);
  _dates->setStartDate(today.addMonths(-1));

  _invoice->addColumn(tr("Invoice #"),    _orderColumn, Qt::AlignRight, true, "invchead_invcnumber" );
  _invoice->addColumn(tr("Invoice Date"), _dateColumn,  Qt::AlignCenter, true, "invchead_invcdate" );
  _invoice->addColumn(tr("S/O #"),        _orderColumn, Qt::AlignRight, true, "invchead_ordernumber"  );
  _invoice->addColumn(tr("Ship Date"),    _dateColumn,  Qt::AlignCenter, true, "invchead_shipdate" );
  _invoice->addColumn(tr("Cust. P/O #"),  -1,           Qt::AlignLeft, true, "invchead_ponumber"   );
}
开发者ID:Dinesh-Ramakrishnan,项目名称:qt-client,代码行数:22,代码来源:invoiceList.cpp


示例4: XDialog

apOpenItem::apOpenItem(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
    : XDialog(parent, name, modal, fl)
{
  setupUi(this);

  connect(_docDate,        SIGNAL(newDate(const QDate&)),          this, SLOT(sPopulateDueDate()));
  connect(_buttonBox,      SIGNAL(accepted()),                     this, SLOT(sSave()));
  connect(_buttonBox,      SIGNAL(rejected()),                     this, SLOT(sClose()));
  connect(_terms,          SIGNAL(newID(int)),                     this, SLOT(sPopulateDueDate()));
  connect(_vend,           SIGNAL(newId(int)),                     this, SLOT(sPopulateVendInfo(int)));
  connect(_amount,         SIGNAL(editingFinished()),              this, SLOT(sDetermineTaxAmount()));
  connect(_taxzone,        SIGNAL(newID(int)),                     this, SLOT(sDetermineTaxAmount()));
  connect(_taxLit,         SIGNAL(leftClickedURL(const QString&)), this, SLOT(sTaxDetail()));
  connect(_docNumber,      SIGNAL(textEdited(QString)),            this, SLOT(sReleaseNumber()));
  connect(_usePrepaid,     SIGNAL(toggled(bool)),                  this, SLOT(sToggleAccount()));
  connect(_amount,         SIGNAL(valueChanged()),                 this, SLOT(sCalcBalance()));

  _cAmount = 0.0;
  _apopenid = -1;
  _seqiss = 0;

  _docType->append(0, tr("Credit Memo"), "C");
  _docType->append(1, tr("Debit Memo"),  "D");
  _docType->append(2, tr("Voucher"),     "V");

  _apapply->addColumn( tr("Type"),        _dateColumn, Qt::AlignCenter,true, "doctype");
  _apapply->addColumn( tr("Doc. #"),               -1, Qt::AlignLeft,  true, "docnumber");
  _apapply->addColumn( tr("Apply Date"),  _dateColumn, Qt::AlignCenter,true, "apapply_postdate");
  _apapply->addColumn( tr("Amount"),     _moneyColumn, Qt::AlignRight, true, "apapply_amount");
  _apapply->addColumn( tr("Currency"),_currencyColumn, Qt::AlignLeft,  !omfgThis->singleCurrency(), "currabbr");

  _printOnPost->setVisible(false);

  _terms->setType(XComboBox::APTerms);
  _journalNumber->setEnabled(false);

  _accntId->setType(GLCluster::cRevenue | GLCluster::cExpense);
  sToggleAccount();
}
开发者ID:dwatson78,项目名称:qt-client,代码行数:39,代码来源:apOpenItem.cpp


示例5: XDialog

editOwners::editOwners(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
    : XDialog(parent, name, modal, fl)
{
  XSqlQuery editeditOwners;
  setupUi(this);

  connect(_close,	SIGNAL(clicked()),	this,	SLOT(sClose()));
  connect(_query,	SIGNAL(clicked()),	this,	SLOT(sFillList()));
  connect(_modify,  	SIGNAL(clicked()),	this,	SLOT(sModify()));
  connect(_modifyAll,   SIGNAL(clicked()),      this,   SLOT(sModifyAll()));
  connect(_list, 	SIGNAL(itemClicked(QTreeWidgetItem*, int)),	this, 	SLOT(sItemClicked()));

  _list->addColumn(tr("Type"),    _statusColumn,  Qt::AlignCenter, true, "type_name");
  _list->addColumn(tr("Name"),              100,  Qt::AlignLeft,   true, "name");
  _list->addColumn(tr("Description"),        -1,  Qt::AlignLeft,   true, "description");
  _list->addColumn(tr("Owner"),     _userColumn,  Qt::AlignLeft,   true, "owner_username");

  _modify->setEnabled(false);
  _modifyAll->setEnabled(false);

  _newOwner->setType(UsernameLineEdit::UsersActive);

  _first = true;

  editeditOwners.prepare("SELECT usr_id "
	    "FROM usr "
	    "WHERE (usr_username=getEffectiveXtUser());");
  editeditOwners.exec();
  if (editeditOwners.first())
  {
    _owner->setId(editeditOwners.value("usr_id").toInt());
  }  
  else if (editeditOwners.lastError().type() != QSqlError::NoError)
  {
    systemError(this, editeditOwners.lastError().databaseText(), __FILE__, __LINE__);
    reject();
  }
}
开发者ID:ChristopherCotnoir,项目名称:qt-client,代码行数:38,代码来源:editOwners.cpp


示例6: XDialog

applyAPCreditMemo::applyAPCreditMemo(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)
    : XDialog(parent, name, modal, fl)
{
  setupUi(this);

  connect(_apply,          SIGNAL(clicked()), this, SLOT(sApply()));
  connect(_applyToBalance, SIGNAL(clicked()), this, SLOT(sApplyBalance()));
  connect(_available, SIGNAL(idChanged(int)), this, SLOT(sPriceGroup()));
  connect(_clear,          SIGNAL(clicked()), this, SLOT(sClear()));
  connect(_buttonBox,      SIGNAL(accepted()), this, SLOT(sPost()));
  connect(_buttonBox,      SIGNAL(rejected()), this, SLOT(sClose()));

  _buttonBox->button(QDialogButtonBox::Save)->setText(tr("Post"));

  _captive = false;

  _apopen->addColumn(tr("Doc. Type"),   _docTypeColumn,  Qt::AlignCenter,true, "doctype");
  _apopen->addColumn(tr("Doc. Number"), -1,              Qt::AlignCenter,true, "apopen_docnumber");
  _apopen->addColumn(tr("Doc. Date"),   _dateColumn,     Qt::AlignCenter,true, "apopen_docdate");
  _apopen->addColumn(tr("Due Date"),    _dateColumn,     Qt::AlignCenter,true, "apopen_duedate");
  _apopen->addColumn(tr("Open"),        _moneyColumn,    Qt::AlignRight, true, "openamount");
  _apopen->addColumn(tr("Currency"),    _currencyColumn, Qt::AlignLeft,  true, "opencurrabbr");
  _apopen->addColumn(tr("Applied"),     _moneyColumn,    Qt::AlignRight, true, "apcreditapply_amount");
  _apopen->addColumn(tr("Currency"),    _currencyColumn, Qt::AlignLeft,  true, "appliedcurrabbr");

  if (_privileges->check("ApplyAPMemos"))
      connect(_apopen, SIGNAL(valid(bool)), _apply, SLOT(setEnabled(bool)));
  if (omfgThis->singleCurrency())
  {
    _apopen->hideColumn("opencurrabbr");
    _apopen->hideColumn("appliedcurrabbr");
  }

  _vend->setReadOnly(true);
  sPriceGroup();
  adjustSize();
}
开发者ID:ChristopherCotnoir,项目名称:qt-client,代码行数:37,代码来源:applyAPCreditMemo.cpp


示例7: XDialog

user::user(QWidget* parent, const char * name, Qt::WindowFlags fl)
    : XDialog(parent, name, fl)
{
    setupUi(this);

    _authCache     = false;
    _cUsername     = "";
    _crmacctid     = -1;
    _inTransaction = false;
    _mode          = cView;

    connect(_close, SIGNAL(clicked()), this, SLOT(sClose()));
    connect(_crmacct, SIGNAL(clicked()),   this,     SLOT(sCrmAccount()));
    connect(_save, SIGNAL(clicked()), this, SLOT(sSave()));
    connect(_add, SIGNAL(clicked()), this, SLOT(sAdd()));
    connect(_addAll, SIGNAL(clicked()), this, SLOT(sAddAll()));
    connect(_revoke, SIGNAL(clicked()), this, SLOT(sRevoke()));
    connect(_revokeAll, SIGNAL(clicked()), this, SLOT(sRevokeAll()));
    connect(_module, SIGNAL(activated(const QString&)), this, SLOT(sModuleSelected(const QString&)));
    connect(_granted, SIGNAL(itemSelected(int)), this, SLOT(sRevoke()));
    connect(_available, SIGNAL(itemSelected(int)), this, SLOT(sAdd()));
    connect(_username, SIGNAL(editingFinished()), this, SLOT(sCheck()));
    connect(_enhancedAuth, SIGNAL(toggled(bool)), this, SLOT(sEnhancedAuthUpdate()));
    connect(_grantedGroup, SIGNAL(itemSelected(int)), this, SLOT(sRevokeGroup()));
    connect(_availableGroup, SIGNAL(itemSelected(int)), this, SLOT(sAddGroup()));
    connect(_addGroup, SIGNAL(clicked()), this, SLOT(sAddGroup()));
    connect(_revokeGroup, SIGNAL(clicked()), this, SLOT(sRevokeGroup()));
    connect(_grantedSite, SIGNAL(itemSelected(int)), this, SLOT(sRevokeSite()));
    connect(_availableSite, SIGNAL(itemSelected(int)), this, SLOT(sAddSite()));
    connect(_addSite, SIGNAL(clicked()), this, SLOT(sAddSite()));
    connect(_revokeSite, SIGNAL(clicked()), this, SLOT(sRevokeSite()));

    _available->addColumn("Available Privileges", -1, Qt::AlignLeft);
    _available->addColumn("Description", -1, Qt::AlignLeft);
    _granted->addColumn("Granted Privileges", -1, Qt::AlignLeft);
    _granted->addColumn("Description", -1, Qt::AlignLeft);

    _availableGroup->addColumn("Available Roles", -1, Qt::AlignLeft);
    _availableGroup->addColumn("Description", -1, Qt::AlignLeft);
    _grantedGroup->addColumn("Granted Roles", -1, Qt::AlignLeft);
    _grantedGroup->addColumn("Description", -1, Qt::AlignLeft);

    _availableSite->addColumn("Available Sites", -1, Qt::AlignLeft);
    _grantedSite->addColumn("Granted Sites",      -1, Qt::AlignLeft);

    _locale->setType(XComboBox::Locales);

    XSqlQuery modq;
    modq.exec( "SELECT DISTINCT priv_module FROM priv ORDER BY priv_module;" );
    for (int i = 0; modq.next(); i++)
        _module->append(i, modq.value("priv_module").toString());

    if(_evaluation == true)
    {
        _enhancedAuth->setEnabled(false);
        _passwd->setEnabled(false);
        _verify->setEnabled(false);
    }

    if (!_metrics->boolean("MultiWhs"))
        _tab->removeTab(_tab->indexOf(_siteTab));
}
开发者ID:chengzhou,项目名称:qt-client,代码行数:62,代码来源:user.cpp



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C++ sCopy函数代码示例发布时间:2022-05-30
下一篇:
C++ sCheck函数代码示例发布时间: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