您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ valueChanged函数代码示例

51自学网 2021-06-03 09:33:08
  C++
这篇教程C++ valueChanged函数代码示例写得很实用,希望能帮到您。

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

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

示例1: QDialog

EditPlacemarkDialog::EditPlacemarkDialog( GeoDataPlacemark *placemark,                                          const QHash<qint64, OsmPlacemarkData> *relations,                                          QWidget *parent ) :    QDialog( parent ),    d( new Private( placemark ) ){    d->setupUi( this );    // Store initial style so that it can be restored if the 'Cancel' button is pressed.    d->m_initialStyle = *placemark->style();    d->m_initialVisualCategory = placemark->visualCategory();    d->m_hadInitialOsmData = placemark->hasOsmData();    if ( d->m_hadInitialOsmData ) {        d->m_initialOsmData = placemark->osmData();    }    // If the placemark has just been created, assign    it a default name.    if ( placemark->name().isNull() ) {        placemark->setName( tr("Untitled Placemark") );    }    // Setup id, name, icon link and latitude/longitude values.    d->m_header->setId( placemark->id() );    d->m_initialId = placemark->id();    d->m_header->setName( placemark->name() );    d->m_initialName = placemark->name();    d->m_isPlacemarkVisible->setChecked( placemark->isVisible() );    d->m_initialIsPlacemarkVisible = placemark->isVisible();    d->m_header->setIconLink( placemark->style()->iconStyle().iconPath() );    d->m_header->setTargetId( placemark->targetId() );    d->m_initialTargetId = placemark->targetId();    MarbleWidget* marbleWidget = dynamic_cast<MarbleWidget*>( parent );    if( marbleWidget != 0 ) {        const AngleUnit defaultAngleUnit = marbleWidget->defaultAngleUnit();        const GeoDataCoordinates::Notation notation =            (defaultAngleUnit == DecimalDegree) ? GeoDataCoordinates::Decimal :            (defaultAngleUnit == DMSDegree) ?     GeoDataCoordinates::DMS :            /* else, UTM */                       GeoDataCoordinates::UTM;        d->m_header->setNotation( notation );    }    connect( d->m_header, SIGNAL(valueChanged()), this, SLOT(                 updateTextAnnotation()) );    d->m_formattedTextWidget->setText( placemark->description() );    d->m_initialDescription = placemark->description();    d->m_initialDescriptionIsCDATA = placemark->descriptionIsCDATA();    d->m_isBalloonVisible->setChecked( placemark->isBalloonVisible() );    d->m_initialIsBaloonVisible = placemark->isBalloonVisible();    d->m_header->setLatitude( placemark->coordinate().latitude( GeoDataCoordinates::Degree ) );    d->m_header->setLongitude( placemark->coordinate().longitude( GeoDataCoordinates::Degree ) );    d->m_initialCoords = GeoDataCoordinates( d->m_header->longitude(),                                             d->m_header->latitude(),                                             0,                                             GeoDataCoordinates::Degree );    // There's no point showing Relations and Tags tabs if the editor was not    // loaded from the annotate plugin ( loaded from tourWidget.. )    if ( relations ) {        // Adding the osm tag editor widget tab        d->m_osmTagEditorWidget = new OsmTagEditorWidget( placemark, this );        d->tabWidget->addTab( d->m_osmTagEditorWidget, tr( "Tags" ) );        QObject::connect( d->m_osmTagEditorWidget, SIGNAL( placemarkChanged( GeoDataFeature* ) ),                          this, SLOT( updateTextAnnotation() ) );        // Adding the osm relation editor widget tab        d->m_osmRelationManagerWidget = new OsmRelationManagerWidget( placemark, relations, this );        d->tabWidget->addTab( d->m_osmRelationManagerWidget, tr( "Relations" ) );        QObject::connect( d->m_osmRelationManagerWidget, SIGNAL( relationCreated( const OsmPlacemarkData& ) ),                          this, SIGNAL( relationCreated( const OsmPlacemarkData& ) ) );    }    // Adding the elevation widget tab    d->m_elevationWidget = new Ui::ElevationWidget;    QWidget *elevationTab = new QWidget;    d->m_elevationWidget->setupUi( elevationTab );    d->tabWidget->addTab( elevationTab, tr("Elevation") );    qreal altitude = d->m_placemark->coordinate().altitude();    MarbleLocale *locale = MarbleGlobal::getInstance()->locale();    if ( altitude == 0.0 ) {        switch ( locale->measurementSystem() ) {        case MarbleLocale::MetricSystem:            d->m_elevationUnit = MarbleLocale::Meter;            break;        case MarbleLocale::ImperialSystem:            d->m_elevationUnit = MarbleLocale::Foot;            break;        case MarbleLocale::NauticalSystem:            d->m_elevationUnit = MarbleLocale::NauticalMile;            break;        }        d->m_elevationWidget->elevationSpinBox->setSuffix( locale->unitAbbreviation((d->m_elevationUnit)) );    } else {        qreal convertedAltitude;        const MarbleLocale::MeasurementSystem currentSystem = locale->measurementSystem();        locale->meterToTargetUnit( altitude, currentSystem, convertedAltitude, d->m_elevationUnit );//.........这里部分代码省略.........
开发者ID:KDE,项目名称:marble,代码行数:101,


示例2: ContentsWidget

ConfigurationContentsWidget::ConfigurationContentsWidget(Window *window) : ContentsWidget(window),	m_model(new QStandardItemModel(this)),	m_ui(new Ui::ConfigurationContentsWidget){	m_ui->setupUi(this);	QSettings defaults(QLatin1String(":/schemas/options.ini"), QSettings::IniFormat, this);	const QStringList groups = defaults.childGroups();	for (int i = 0; i < groups.count(); ++i)	{		QStandardItem *groupItem = new QStandardItem(Utils::getIcon(QLatin1String("inode-directory")), groups.at(i));		defaults.beginGroup(groups.at(i));		const QStringList keys = defaults.childGroups();		for (int j = 0; j < keys.count(); ++j)		{			const QString key = QStringLiteral("%1/%2").arg(groups.at(i)).arg(keys.at(j));			const QString type = defaults.value(QStringLiteral("%1/type").arg(keys.at(j))).toString();			const QVariant defaultValue = SettingsManager::getDefaultValue(key);			const QVariant value = SettingsManager::getValue(key);			QList<QStandardItem*> optionItems;			optionItems.append(new QStandardItem(keys.at(j)));			optionItems.append(new QStandardItem(type));			optionItems.append(new QStandardItem(value.toString()));			optionItems[2]->setData(QSize(-1, 30), Qt::SizeHintRole);			optionItems[2]->setData(key, Qt::UserRole);			optionItems[2]->setData(type, (Qt::UserRole + 1));			optionItems[2]->setData(((type == "enumeration") ? defaults.value(QStringLiteral("%1/choices").arg(keys.at(j))).toStringList() : QVariant()), (Qt::UserRole + 2));			if (value != defaultValue)			{				QFont font = optionItems[0]->font();				font.setBold(true);				optionItems[0]->setFont(font);			}			groupItem->appendRow(optionItems);		}		defaults.endGroup();		m_model->appendRow(groupItem);	}	QStringList labels;	labels << tr("Name") << tr("Type") << tr("Value");	m_model->setHorizontalHeaderLabels(labels);	m_model->sort(0);	m_ui->configurationView->setModel(m_model);	m_ui->configurationView->setItemDelegate(new ItemDelegate(this));	m_ui->configurationView->setItemDelegateForColumn(2, new OptionDelegate(false, this));	m_ui->configurationView->header()->setTextElideMode(Qt::ElideRight);	connect(SettingsManager::getInstance(), SIGNAL(valueChanged(QString,QVariant)), this, SLOT(optionChanged(QString,QVariant)));	connect(m_ui->configurationView->selectionModel(), SIGNAL(currentChanged(QModelIndex,QModelIndex)), this, SLOT(currentChanged(QModelIndex,QModelIndex)));	connect(m_ui->filterLineEdit, SIGNAL(textChanged(QString)), this, SLOT(filterConfiguration(QString)));}
开发者ID:AlexTalker,项目名称:otter,代码行数:63,


示例3: QWidget

UserVariableOptionsWidget::UserVariableOptionsWidget(UserVariable* userVariable, QWidget *parent)    : QWidget(parent)    , userVariable(userVariable){    QGridLayout *layout = new QGridLayout(this);    layout->setColumnStretch(1, 1);    setLayout(layout);    QLabel *nameLabel = new QLabel(i18n("Name:"), this);    nameLabel->setAlignment(Qt::AlignRight);    layout->addWidget(nameLabel, 0, 0);    QHBoxLayout *nameLayout = new QHBoxLayout();    nameEdit = new QComboBox(this);    nameEdit->setObjectName(QLatin1String("nameEdit"));    nameEdit->setMinimumContentsLength(10);    nameLabel->setBuddy(nameEdit);    connect(nameEdit, SIGNAL(currentIndexChanged(QString)), this, SLOT(nameChanged()));    nameLayout->addWidget(nameEdit);    newButton = new QPushButton(i18n("New"), this);    connect(newButton, SIGNAL(clicked()), this, SLOT(newClicked()));    nameLayout->addWidget(newButton);    deleteButton = new QPushButton(i18n("Delete"), this);    deleteButton->setObjectName("DeleteButton");    connect(deleteButton, SIGNAL(clicked()), this, SLOT(deleteClicked()));    nameLayout->addWidget(deleteButton);    layout->addLayout(nameLayout, 0, 1);    QLabel *typeLabel = new QLabel(i18n("Format:"), this);    typeLabel->setAlignment(Qt::AlignRight);    layout->addWidget(typeLabel, 1, 0);    typeEdit = new QComboBox(this);    typeEdit->setObjectName(QLatin1String("typeEdit"));    typeLabel->setBuddy(typeEdit);    typeEdit->addItem(i18n("String"), QLatin1String("string"));    typeEdit->addItem(i18n("Boolean"), QLatin1String("boolean"));    typeEdit->addItem(i18n("Float"), QLatin1String("float"));    typeEdit->addItem(i18n("Percentage"), QLatin1String("percentage"));    typeEdit->addItem(i18n("Currency"), QLatin1String("currency"));    typeEdit->addItem(i18n("Date"), QLatin1String("date"));    typeEdit->addItem(i18n("Time"), QLatin1String("time"));    typeEdit->addItem(i18n("Formula"), QLatin1String("formula"));    typeEdit->addItem(i18n("Void"), QLatin1String("void"));    typeEdit->setCurrentIndex(qMax(0, typeEdit->findData(variableManager()->userType(userVariable->name()))));    connect(typeEdit, SIGNAL(currentIndexChanged(QString)), this, SLOT(typeChanged()));    layout->addWidget(typeEdit, 1, 1);    QLabel *valueLabel = new QLabel(i18n("Value:"), this);    valueLabel->setAlignment(Qt::AlignRight);    layout->addWidget(valueLabel, 2, 0);    valueEdit = new QLineEdit(this);    valueEdit->setObjectName(QLatin1String("valueEdit"));    valueLabel->setBuddy(valueEdit);    valueEdit->setText(variableManager()->value(userVariable->name()));    connect(valueEdit, SIGNAL(textChanged(QString)), this, SLOT(valueChanged()));    layout->addWidget(valueEdit, 2, 1);    updateNameEdit();}
开发者ID:abhishekmurthy,项目名称:Calligra,代码行数:61,


示例4: QTreeView

PlaylistView::PlaylistView(QWidget* parent)    : QTreeView(parent),      app_(nullptr),      style_(new PlaylistProxyStyle(style())),      playlist_(nullptr),      header_(new PlaylistHeader(Qt::Horizontal, this, this)),      setting_initial_header_layout_(false),      upgrading_from_qheaderview_(false),      read_only_settings_(true),      upgrading_from_version_(-1),      background_image_type_(Default),      previous_background_image_opacity_(0.0),      fade_animation_(new QTimeLine(1000, this)),      last_height_(-1),      last_width_(-1),      force_background_redraw_(false),      glow_enabled_(true),      currently_glowing_(false),      glow_intensity_step_(0),      rating_delegate_(nullptr),      inhibit_autoscroll_timer_(new QTimer(this)),      inhibit_autoscroll_(false),      currently_autoscrolling_(false),      row_height_(-1),      currenttrack_play_(":currenttrack_play.png"),      currenttrack_pause_(":currenttrack_pause.png"),      cached_current_row_row_(-1),      drop_indicator_row_(-1),      drag_over_(false),      dynamic_controls_(new DynamicPlaylistControls(this)) {  setHeader(header_);  header_->setMovable(true);  setStyle(style_);  setMouseTracking(true);  connect(header_, SIGNAL(sectionResized(int, int, int)), SLOT(SaveGeometry()));  connect(header_, SIGNAL(sectionMoved(int, int, int)), SLOT(SaveGeometry()));  connect(header_, SIGNAL(sortIndicatorChanged(int, Qt::SortOrder)),          SLOT(SaveGeometry()));  connect(header_, SIGNAL(SectionVisibilityChanged(int, bool)),          SLOT(SaveGeometry()));  connect(header_, SIGNAL(sectionResized(int, int, int)),          SLOT(InvalidateCachedCurrentPixmap()));  connect(header_, SIGNAL(sectionMoved(int, int, int)),          SLOT(InvalidateCachedCurrentPixmap()));  connect(header_, SIGNAL(SectionVisibilityChanged(int, bool)),          SLOT(InvalidateCachedCurrentPixmap()));  connect(header_, SIGNAL(StretchEnabledChanged(bool)), SLOT(SaveSettings()));  connect(header_, SIGNAL(StretchEnabledChanged(bool)),          SLOT(StretchChanged(bool)));  connect(header_, SIGNAL(MouseEntered()), SLOT(RatingHoverOut()));  inhibit_autoscroll_timer_->setInterval(kAutoscrollGraceTimeout * 1000);  inhibit_autoscroll_timer_->setSingleShot(true);  connect(inhibit_autoscroll_timer_, SIGNAL(timeout()),          SLOT(InhibitAutoscrollTimeout()));  horizontalScrollBar()->installEventFilter(this);  verticalScrollBar()->installEventFilter(this);  setAlternatingRowColors(true);  setAttribute(Qt::WA_MacShowFocusRect, false);  dynamic_controls_->hide();#ifdef Q_OS_DARWIN  setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);#endif  // For fading  connect(fade_animation_, SIGNAL(valueChanged(qreal)),          SLOT(FadePreviousBackgroundImage(qreal)));  fade_animation_->setDirection(QTimeLine::Backward);  // 1.0 -> 0.0}
开发者ID:Gu1,项目名称:Clementine,代码行数:74,


示例5: sliderRange

void ScrollBar::catchValueChanged(int value){    double min, max;    sliderRange(value, min, max);    Q_EMIT valueChanged(orientation(), min, max);}
开发者ID:PrincetonPAVE,项目名称:old_igvc,代码行数:6,


示例6: valueChanged

void QPolarCoordinateEdit::sendPhi(double x){ emit valueChanged(QPointF(x, m_theta->value())); }
开发者ID:kkaushalp,项目名称:aphid,代码行数:2,


示例7: byte2degree

void OrientationWidget::setValue(int value){	byte2degree(value);	emit valueChanged(value);	update();}
开发者ID:brehonia,项目名称:deling,代码行数:6,


示例8: deregisterPickingObjects

void Z3DPunctaFilter::prepareData(){  if (!m_dataIsInvalid)    return;  deregisterPickingObjects(getPickingManager());  // convert puncta to format that glsl can use  m_specularAndShininess.clear();  m_pointAndRadius.clear();  //m_sourceColorMapper.clear();  int xMin = std::numeric_limits<int>::max();  int xMax = std::numeric_limits<int>::min();  int yMin = std::numeric_limits<int>::max();  int yMax = std::numeric_limits<int>::min();  int zMin = std::numeric_limits<int>::max();  int zMax = std::numeric_limits<int>::min();  for (size_t i=0; i<m_punctaList.size(); i++) {    if (m_useSameSizeForAllPuncta.get())      m_pointAndRadius.push_back(glm::vec4(m_punctaList[i]->x(), m_punctaList[i]->y(), m_punctaList[i]->z(), 2.f));    else      m_pointAndRadius.push_back(glm::vec4(m_punctaList[i]->x(), m_punctaList[i]->y(), m_punctaList[i]->z(), m_punctaList[i]->radius()));    if (m_punctaList[i]->x() > xMax)      xMax = static_cast<int>(std::ceil(m_punctaList[i]->x()));    if (m_punctaList[i]->x() < xMin)      xMin = static_cast<int>(std::floor(m_punctaList[i]->x()));    if (m_punctaList[i]->y() > yMax)      yMax = static_cast<int>(std::ceil(m_punctaList[i]->y()));    if (m_punctaList[i]->y() < yMin)      yMin = static_cast<int>(std::floor(m_punctaList[i]->y()));    if (m_punctaList[i]->z() > zMax)      zMax = static_cast<int>(std::ceil(m_punctaList[i]->z()));    if (m_punctaList[i]->z() < zMin)      zMin = static_cast<int>(std::floor(m_punctaList[i]->z()));    m_specularAndShininess.push_back(glm::vec4(m_punctaList[i]->maxIntensity()/255.f,                                               m_punctaList[i]->maxIntensity()/255.f,                                               m_punctaList[i]->maxIntensity()/255.f,                                               m_punctaList[i]->maxIntensity()/2.f));  }  //for (size_t i=0; i<m_origPunctaList.size(); ++i)    //m_sourceColorMapper.insert(std::pair<QString, size_t>(m_origPunctaList[i]->source(), 0));  m_xCut.setRange(xMin, xMax);  m_xCut.set(glm::ivec2(xMin, xMax));  m_yCut.setRange(yMin, yMax);  m_yCut.set(glm::ivec2(yMin, yMax));  m_zCut.setRange(zMin, zMax);  m_zCut.set(glm::ivec2(zMin, zMax));  //  std::map<QString,size_t>::iterator it;  //  size_t index = 0;  //  size_t numOfPrevColor = m_colorsForDifferentSource.size();  //  for (it = m_sourceColorMapper.begin(); it != m_sourceColorMapper.end(); it++) {  //    m_sourceColorMapper[it->first] = index++;  //    if (index > numOfPrevColor) {  //      QString guiname = QString("Source %1 Color").arg(index);  //      m_colorsForDifferentSource.push_back(new ZVec4Parameter(guiname, glm::vec4(  //                                                                ZRandomInstance.randReal<float>(),  //                                                                ZRandomInstance.randReal<float>(),  //                                                                ZRandomInstance.randReal<float>(),  //                                                                1.f)));  //      m_colorsForDifferentSource[index-1]->setStyle("COLOR");  //      connect(m_colorsForDifferentSource[index-1], SIGNAL(valueChanged()), this, SLOT(prepareColor()));  //    }  //  }  //  if (m_widgetsGroup) {  //    for (size_t i=0; i<m_colorsForDifferentSourceWidgetsGroup.size(); i++) {  //      delete m_colorsForDifferentSourceWidgetsGroup[i];  //    }  //    m_colorsForDifferentSourceWidgetsGroup.clear();  //  }  //  if (numOfPrevColor < index) {  //    for (size_t i=numOfPrevColor; i<m_colorsForDifferentSource.size(); i++) {  //      addParameter(m_colorsForDifferentSource[i]);  //    }  //  } else if (numOfPrevColor > index) {  //    for (size_t i=index; i<m_colorsForDifferentSource.size(); i++) {  //      removeParameter(m_colorsForDifferentSource[i]);  //      delete m_colorsForDifferentSource[i];  //    }  //    m_colorsForDifferentSource.resize(index);  //  }  bool needUpdateWidget = false;  QList<QString> allSources;  for (size_t i=0; i<m_origPunctaList.size(); ++i) {    int idx = allSources.indexOf(m_origPunctaList[i]->source());    if (idx == -1) {      allSources.push_back(m_origPunctaList[i]->source());      idx = allSources.size() - 1;    }    QString guiname = QString("Source %1 Color").arg(idx + 1);    if (m_sourceColorMapper.find(m_origPunctaList[i]->source()) == m_sourceColorMapper.end()) {      m_sourceColorMapper[m_origPunctaList[i]->source()] =          new ZVec4Parameter(guiname, glm::vec4(ZRandomInstance.randReal<float>(),                                                ZRandomInstance.randReal<float>(),                                                ZRandomInstance.randReal<float>(),                                                1.f));      m_sourceColorMapper[m_origPunctaList[i]->source()]->setStyle("COLOR");      connect(m_sourceColorMapper[m_origPunctaList[i]->source()], SIGNAL(valueChanged()),//.........这里部分代码省略.........
开发者ID:Vaa3D,项目名称:vaa3d_tools,代码行数:101,


示例9: emit

void PathWidgetWithLabel::slotButton(){    m_value = QFileDialog::getExistingDirectory();    m_edit->setText( m_value.absolutePath() );    emit( valueChanged( m_value, m_id ) );}
开发者ID:yangguang-ecnu,项目名称:fibernavigator2,代码行数:6,


示例10: valueChanged

void FrequencyRange::setValue(double value) {    if(m_value != value) {        m_value = value;        valueChanged(m_value);    }}
开发者ID:jkalweit,项目名称:whistle-board,代码行数:6,


示例11: valueChanged

void EditInstrument::on_buttonOk_pressed()      {      valueChanged();//TODO      *instr = *lt;      }
开发者ID:aeliot,项目名称:MuseScore,代码行数:5,


示例12: valueChanged

voidBoolParameter::onCheckBoxChanged(bool on){  _value = on;  emit valueChanged();}
开发者ID:hoojao,项目名称:gmic,代码行数:6,


示例13: setValue

 void setValue(const CAmount& value) {     lineEdit()->setText(BitcoinUnits::format(currentUnit, value, false, BitcoinUnits::separatorAlways));     emit valueChanged(); }
开发者ID:Waterloodown,项目名称:guldencoin2,代码行数:5,


示例14: QWidget

SynthControl::SynthControl(QWidget* parent)   : QWidget(parent, Qt::Dialog)      {      setupUi(this);      _score = 0;      setWindowFlags(Qt::Tool);//      setWindowFlags(this->windowFlags() & ~Qt::WindowContextHelpButtonHint);      int idx = 0;      for (Synthesizer* s : synti->synthesizer()) {            if (strcmp(s->name(), "Aeolus") == 0)    // no gui for aeolus                  continue;            tabWidget->insertTab(idx++, s->gui(), tr(s->name()));            s->gui()->synthesizerChanged();            connect(s->gui(), SIGNAL(valueChanged()), SLOT(setDirty()));            }      // effectA        combo box      // effectStackA   widget stack      effectA->clear();      for (Effect* e : synti->effectList(0)) {            effectA->addItem(tr(e->name()));            EffectGui* gui = e->gui();            if (gui) {                  effectStackA->addWidget(gui);                  connect(gui, SIGNAL(valueChanged()), SLOT(setDirty()));                  }            }      effectB->clear();      for (Effect* e : synti->effectList(1)) {            effectB->addItem(tr(e->name()));            EffectGui* gui = e->gui();            if (gui) {                  effectStackB->addWidget(gui);                  connect(gui, SIGNAL(valueChanged()), SLOT(setDirty()));                  }            }      if (!useFactorySettings) {            QSettings settings;            settings.beginGroup("SynthControl");            resize(settings.value("size", QSize(746, 268)).toSize());            move(settings.value("pos", QPoint(10, 10)).toPoint());            tabWidget->setCurrentIndex(settings.value("tab", 0).toInt());            settings.endGroup();            }      else            tabWidget->setCurrentIndex(0);      metronome->setDefaultAction(getAction("metronome"));      mgain->setValue(seq->metronomeGain());      updateGui();      storeButton->setEnabled(false);      recallButton->setEnabled(false);      changeTuningButton->setEnabled(false);      enablePlay = new EnablePlayForWidget(this);      connect(effectA,      SIGNAL(currentIndexChanged(int)), SLOT(effectAChanged(int)));      connect(effectB,      SIGNAL(currentIndexChanged(int)), SLOT(effectBChanged(int)));      connect(gain,         SIGNAL(valueChanged(double,int)), SLOT(gainChanged(double,int)));      connect(mgain,        SIGNAL(valueChanged(double,int)), SLOT(metronomeGainChanged(double,int)));      connect(masterTuning, SIGNAL(valueChanged(double)),     SLOT(masterTuningChanged(double)));      connect(changeTuningButton, SIGNAL(clicked()),          SLOT(changeMasterTuning()));      connect(loadButton,   SIGNAL(clicked()),                SLOT(loadButtonClicked()));      connect(saveButton,   SIGNAL(clicked()),                SLOT(saveButtonClicked()));      connect(storeButton,  SIGNAL(clicked()),                SLOT(storeButtonClicked()));      connect(recallButton, SIGNAL(clicked()),                SLOT(recallButtonClicked()));      connect(gain,         SIGNAL(valueChanged(double,int)), SLOT(setDirty()));      }
开发者ID:Angeldude,项目名称:MuseScore,代码行数:72,


示例15: StackableWidget

VideoFormatTypeForm::VideoFormatTypeForm(VideoFormatType *videoFormat,                                         QEbuMainWindow *mainWindow,                                         QWidget *parent) :    StackableWidget(mainWindow, parent){    m_op = (videoFormat) ? Edit : Add;    if (!videoFormat)        m_videoFormat = new VideoFormatType;    else        m_videoFormat = videoFormat;    //Layout    QHBoxLayout *mainHLayout = new QHBoxLayout;    QVBoxLayout *vl = new QVBoxLayout;    {        QFormLayout *fl = new QFormLayout;        m_editVideoFormatId = new QLineEdit;        fl->addRow(tr("Video Format Id"), m_editVideoFormatId);        m_editVideoFormatName = new QLineEdit;        fl->addRow(tr("Video Format Name"), m_editVideoFormatName);        m_editVideoFormatDefinition = new QLineEdit;        fl->addRow(tr("Video Format Definition"), m_editVideoFormatDefinition);        vl->addLayout(fl);    }    {        QGridLayout *gl = new QGridLayout;        m_spinRegionDelimX = new QUnsignedSpinBox;        m_spinRegionDelimX->setRange(qEbuLimits::getMinUInt(), qEbuLimits::getMaxUInt());        m_checkRegionDelimX = new QCheckBox(tr("Region Delim X"));        gl->addWidget(m_checkRegionDelimX, 0, 0);        gl->addWidget(m_spinRegionDelimX, 0, 1);        QObject::connect(m_spinRegionDelimX, SIGNAL(valueChanged()),                         this, SLOT(regionDelimXChanged()));        m_spinRegionDelimY = new QUnsignedSpinBox;        m_spinRegionDelimY->setRange(qEbuLimits::getMinUInt(), qEbuLimits::getMaxUInt());        m_checkRegionDelimY = new QCheckBox(tr("Region Delim Y"));        gl->addWidget(m_checkRegionDelimY, 1, 0);        gl->addWidget(m_spinRegionDelimY, 1, 1);        QObject::connect(m_spinRegionDelimY, SIGNAL(valueChanged()),                         this, SLOT(regionDelimYChanged()));        m_editWidth = new LengthTypeEditBox(m_videoFormat->width());        m_editWidth->setLabel(tr("Width"));        gl->addWidget(m_editWidth, 2, 0, 1, 2);        m_editHeight = new LengthTypeEditBox(m_videoFormat->height());        m_editHeight->setLabel(tr("Heigth"));        gl->addWidget(m_editHeight, 3, 0, 1, 2);        vl->addLayout(gl);    }    {        QFormLayout *fl = new QFormLayout;        m_buttonAspectRatio = new QPushButton(">>");        fl->addRow(tr("Aspect Ratio"), m_buttonAspectRatio);        QObject::connect(m_buttonAspectRatio, SIGNAL(toggled(bool)),                         this, SLOT(aspectRatioChecked(bool)));        m_buttonVideoEncoding = new QPushButton(">>");        fl->addRow(tr("Video Encoding"), m_buttonVideoEncoding);        QObject::connect(m_buttonVideoEncoding, SIGNAL(toggled(bool)),                         this, SLOT(videoEncodingChecked(bool)));        m_buttonVideoTrack = new QPushButton(">>");        fl->addRow(tr("Video Track"), m_buttonVideoTrack);        QObject::connect(m_buttonVideoTrack, SIGNAL(toggled(bool)),                         this, SLOT(videoTrackTypeChecked(bool)));        m_buttonTechnicalAttributes = new QPushButton(">>");        fl->addRow(tr("Technical Attributes"), m_buttonTechnicalAttributes);        QObject::connect(m_buttonTechnicalAttributes, SIGNAL(toggled(bool)),                         this, SLOT(technicalAttributesChecked(bool)));        vl->addLayout(fl);        QButtonGroup *group = new QButtonGroup(this);        m_buttonAspectRatio->setCheckable(true);        group->addButton(m_buttonAspectRatio);        m_buttonVideoEncoding->setCheckable(true);        group->addButton(m_buttonVideoEncoding);        m_buttonVideoTrack->setCheckable(true);        group->addButton(m_buttonVideoTrack);        m_buttonTechnicalAttributes->setCheckable(true);        group->addButton(m_buttonTechnicalAttributes);    }    mainHLayout->addLayout(vl);    // Add list view on the right    m_listView = new ListView();    QObject::connect(m_listView->buttonAdd(), SIGNAL(clicked()),                     this, SLOT(addClicked()));    QObject::connect(m_listView->buttonEdit(), SIGNAL(clicked()),                     this, SLOT(editClicked()));    QObject::connect(m_listView->buttonRemove(), SIGNAL(clicked()),                     this, SLOT(removeClicked()));    mainHLayout->addWidget(m_listView);    this->setLayout(mainHLayout);    //Event filter    m_textDocumentation->setText(tr("A description of video characteristics of the resource to provide technical information such as colour, greyscale or black and white colour schemes, frame rate, sampling rate, scanning format, encoding, track configuration."));    m_editVideoFormatId->installEventFilter(this);    m_editVideoFormatDefinition->installEventFilter(this);    m_editVideoFormatName->installEventFilter(this);    m_spinRegionDelimX->installEventFilter(this);//.........这里部分代码省略.........
开发者ID:Nazardo,项目名称:QEbu,代码行数:101,


示例16: valueChanged

void MidiPanKnob::valueChange()      {      emit valueChanged(_value + 64.0f, _id);      update();      }
开发者ID:33akash,项目名称:MuseScore,代码行数:5,


示例17: KisConfigWidget

KisPhongBumpmapConfigWidget::KisPhongBumpmapConfigWidget(const KisPaintDeviceSP dev, QWidget *parent, Qt::WFlags f)                            : KisConfigWidget(parent, f)                            , m_device(dev){    Q_ASSERT(m_device);    m_page = new KisPhongBumpmapWidget(this);    KisSizeGroup *matPropLabelsGroup = new KisSizeGroup(this);    matPropLabelsGroup->addWidget(m_page->lblAmbientReflectivity);    matPropLabelsGroup->addWidget(m_page->lblDiffuseReflectivity);    matPropLabelsGroup->addWidget(m_page->lblSpecularReflectivity);    matPropLabelsGroup->addWidget(m_page->lblSpecularShinyExp);    // Connect widgets to each other    connect(m_page->azimuthDial1, SIGNAL(valueChanged(int)), m_page->azimuthSpinBox1, SLOT(setValue(int)));    connect(m_page->azimuthDial2, SIGNAL(valueChanged(int)), m_page->azimuthSpinBox2, SLOT(setValue(int)));    connect(m_page->azimuthDial3, SIGNAL(valueChanged(int)), m_page->azimuthSpinBox3, SLOT(setValue(int)));    connect(m_page->azimuthDial4, SIGNAL(valueChanged(int)), m_page->azimuthSpinBox4, SLOT(setValue(int)));    connect(m_page->azimuthSpinBox1, SIGNAL(valueChanged(int)), m_page->azimuthDial1, SLOT(setValue(int)));    connect(m_page->azimuthSpinBox2, SIGNAL(valueChanged(int)), m_page->azimuthDial2, SLOT(setValue(int)));    connect(m_page->azimuthSpinBox3, SIGNAL(valueChanged(int)), m_page->azimuthDial3, SLOT(setValue(int)));    connect(m_page->azimuthSpinBox4, SIGNAL(valueChanged(int)), m_page->azimuthDial4, SLOT(setValue(int)));    //Let widgets warn the preview of when they are updated    connect(m_page->azimuthDial1, SIGNAL(valueChanged(int)), SIGNAL(sigConfigurationItemChanged()));    connect(m_page->azimuthDial2, SIGNAL(valueChanged(int)), SIGNAL(sigConfigurationItemChanged()));    connect(m_page->azimuthDial3, SIGNAL(valueChanged(int)), SIGNAL(sigConfigurationItemChanged()));    connect(m_page->azimuthDial4, SIGNAL(valueChanged(int)), SIGNAL(sigConfigurationItemChanged()));            connect(m_page->lightKColorCombo1, SIGNAL(currentIndexChanged(int)), SIGNAL(sigConfigurationItemChanged()));    connect(m_page->lightKColorCombo2, SIGNAL(currentIndexChanged(int)), SIGNAL(sigConfigurationItemChanged()));    connect(m_page->lightKColorCombo3, SIGNAL(currentIndexChanged(int)), SIGNAL(sigConfigurationItemChanged()));    connect(m_page->lightKColorCombo4, SIGNAL(currentIndexChanged(int)), SIGNAL(sigConfigurationItemChanged()));        connect(m_page->inclinationSpinBox1, SIGNAL(valueChanged(int)), SIGNAL(sigConfigurationItemChanged()));    connect(m_page->inclinationSpinBox2, SIGNAL(valueChanged(int)), SIGNAL(sigConfigurationItemChanged()));    connect(m_page->inclinationSpinBox3, SIGNAL(valueChanged(int)), SIGNAL(sigConfigurationItemChanged()));    connect(m_page->inclinationSpinBox4, SIGNAL(valueChanged(int)), SIGNAL(sigConfigurationItemChanged()));    connect(m_page->useNormalMap, SIGNAL(toggled(bool)), SIGNAL(sigConfigurationItemChanged()));    connect(m_page->diffuseReflectivityGroup, SIGNAL(toggled(bool)), SIGNAL(sigConfigurationItemChanged()));    connect(m_page->specularReflectivityGroup, SIGNAL(toggled(bool)), SIGNAL(sigConfigurationItemChanged()));        connect(m_page->ambientReflectivityKisDoubleSliderSpinBox, SIGNAL(valueChanged(qreal)), SIGNAL(sigConfigurationItemChanged()));    connect(m_page->diffuseReflectivityKisDoubleSliderSpinBox, SIGNAL(valueChanged(qreal)), SIGNAL(sigConfigurationItemChanged()));    connect(m_page->specularReflectivityKisDoubleSliderSpinBox, SIGNAL(valueChanged(qreal)), SIGNAL(sigConfigurationItemChanged()));    connect(m_page->shinynessExponentKisSliderSpinBox, SIGNAL(valueChanged(int)), SIGNAL(sigConfigurationItemChanged()));        connect(m_page->heightChannelComboBox, SIGNAL(currentIndexChanged(int)), SIGNAL(sigConfigurationItemChanged()));        connect(m_page->lightSourceGroupBox1, SIGNAL(toggled(bool)), SIGNAL(sigConfigurationItemChanged()));    connect(m_page->lightSourceGroupBox2, SIGNAL(toggled(bool)), SIGNAL(sigConfigurationItemChanged()));    connect(m_page->lightSourceGroupBox3, SIGNAL(toggled(bool)), SIGNAL(sigConfigurationItemChanged()));    connect(m_page->lightSourceGroupBox4, SIGNAL(toggled(bool)), SIGNAL(sigConfigurationItemChanged()));    QVBoxLayout *l = new QVBoxLayout(this);    Q_CHECK_PTR(l);    l->addWidget(m_page);    /* fill in the channel chooser */    QList<KoChannelInfo *> channels = m_device->colorSpace()->channels();    for (quint8 ch = 0; ch < m_device->colorSpace()->colorChannelCount(); ch++)        m_page->heightChannelComboBox->addItem(channels.at(ch)->name());        connect(m_page->useNormalMap, SIGNAL(toggled(bool)), this, SLOT(slotDisableHeightChannelCombobox(bool) ) );}
开发者ID:ChrisJong,项目名称:krita,代码行数:70,


示例18: AND

//.........这里部分代码省略.........        _item->setDefaultType(ItemLineEdit::cGeneralPurchased | ItemLineEdit::cActive);      }    }    else    {      ErrorReporter::error(QtCriticalMsg, this, tr("Error Retrieving Purchase Order Item Information"),                           purchaseet, __FILE__, __LINE__);      return UndefinedError;    }  }  param = pParams.value("poitem_id", &valid);  if (valid)  {    _poitemid = param.toInt();    _pocharView->setId(_poitemid);    purchaseet.prepare( "SELECT pohead_number, pohead_id "               "FROM pohead, poitem "               "WHERE ( (pohead_id=poitem_pohead_id) "               " AND (poitem_id=:poitem_id) );" );    purchaseet.bindValue(":poitem_id", param.toInt());    purchaseet.exec();    if (purchaseet.first())    {      _poNumber->setText(purchaseet.value("pohead_number").toString());	  _poheadid = purchaseet.value("pohead_id").toInt();    }    populate();    sCalculateTax();  }  // connect here and not in the .ui to avoid timing issues at initialization  connect(_unitPrice, SIGNAL(valueChanged()), this, SLOT(sPopulateExtPrice()));  param = pParams.value("mode", &valid);  if (valid)  {    if (param.toString() == "new")    {      _mode = cNew;      _save->setEnabled(false);      purchaseet.exec("SELECT NEXTVAL('poitem_poitem_id_seq') AS poitem_id;");      if (purchaseet.first())      {        _poitemid = purchaseet.value("poitem_id").toInt();        _pocharView->setId(_poitemid);      }      else      {        ErrorReporter::error(QtCriticalMsg, this, tr("Error Retrieving Purchase Order Item Information"),                             purchaseet, __FILE__, __LINE__);        return UndefinedError;      }      if(_parentwo != -1)      {        purchaseet.prepare("SELECT wo_number"                  "  FROM womatl JOIN wo ON (wo_id=womatl_wo_id)"                  " WHERE (womatl_id=:parentwo); ");        purchaseet.bindValue(":parentwo", _parentwo);        purchaseet.exec();        if(purchaseet.first())        {          _so->setText(purchaseet.value("wo_number").toString());
开发者ID:szuke,项目名称:qt-client,代码行数:67,


示例19: SSY_TRACE_IN

// ----------------------------------------------------------------------------------// CSSYChannel::SetPropertyL()// ----------------------------------------------------------------------------------//    void CSSYChannel::SetPropertyL( const TSensrvChannelId aChannelId,                                    const TSensrvProperty& aProperty )    {    SSY_TRACE_IN();    SSY_TRACE( EExtended, "ORIENTATIONSSY:ChannelId %d", iChannelInfo.iChannelId );     if ( ChannelId() != aChannelId )        {        SSY_TRACE( EError, "ORIENTATIONSSY:ERROR: SetPropertyL wrong channelId!" );        User::Leave( KErrArgument );        }    TBool valueChanged( ETrue );    RSensrvChannelList affectedChannels;    TInt valueInt( 0 );    // try first common sensor properties    TInt ret = iSensorProperties->SetProperty( aProperty, affectedChannels );    if ( ret == KErrNotFound )        {        // then try the channel properties        ret = iChannelProperties->SetProperty( aProperty, affectedChannels );                }    if ( ret != KErrNone && ret != KErrAlreadyExists )        {        SSY_TRACE( EError, "ORIENTATIONSSY:ERROR: Property is not supported or it's readonly: 0x%x ", aProperty.GetPropertyId() );        User::Leave( KErrNotSupported );        }    if ( ret == KErrAlreadyExists )        {        // client tried to set the same value that the property already has, lets just return without doing anything        // but informing the "change" via the callback        valueChanged = EFalse;        }    // do something if the value was really changed    if ( valueChanged )        {        aProperty.GetValue( valueInt );        // These are ReadOnly values, cannot change these        if ( ( aProperty.GetPropertyId() == KSensrvPropIdDataRate ) ||               ( aProperty.GetPropertyId() == KSensrvPropIdAvailability ) ||                ( aProperty.GetPropertyId() == KSensrvPropIdMeasureRange ) ||              ( aProperty.GetPropertyId() == KSensrvPropIdChannelDataFormat ) ||              ( aProperty.GetPropertyId() == KSensrvPropIdChannelAccuracy ) )            {            SSY_TRACE( EError, "ORIENTATIONSSY:ERROR: Setting the property is not supported: 0x%x ", aProperty.GetPropertyId() );            User::Leave( KErrNotSupported );            }        }    // we call the callback function to inform that property was changed, even if it was not actually changed    iCallback->PropertyChanged( iChannelInfo.iChannelId, affectedChannels, aProperty );    affectedChannels.Reset();    SSY_TRACE_OUT();    }
开发者ID:cdaffara,项目名称:symbiandump-os1,代码行数:66,


示例20: XDialog

purchaseOrderItem::purchaseOrderItem(QWidget* parent, const char* name, bool modal, Qt::WindowFlags fl)    : XDialog(parent, name, modal, fl){  XSqlQuery purchasepurchaseOrderItem;  setupUi(this);#ifndef Q_OS_MAC  _vendorItemNumberList->setMaximumWidth(25);#else  _listPrices->setMinimumWidth(60);#endif  _vendid = -1;  _preferredWarehouseid = -1;  _invVendUOMRatio = 1;  _minimumOrder = 0;  _orderMultiple = 0;  _maxCost = 0.0;  _dropship = false;  _costmethod = "";  _captive = false;  connect(_ordered, SIGNAL(editingFinished()), this, SLOT(sDeterminePrice()));  connect(_inventoryItem, SIGNAL(toggled(bool)), this, SLOT(sInventoryItemToggled(bool)));  connect(_item, SIGNAL(privateIdChanged(int)), this, SLOT(sFindWarehouseItemsites(int)));  connect(_item, SIGNAL(newId(int)), this, SLOT(sPopulateItemInfo(int)));  connect(_warehouse, SIGNAL(newID(int)), this, SLOT(sPopulateItemsiteInfo()));  connect(_save, SIGNAL(clicked()), this, SLOT(sSave()));  connect(_vendorItemNumberList, SIGNAL(clicked()), this, SLOT(sVendorItemNumberSearch()));  connect(_notesButton, SIGNAL(toggled(bool)), this, SLOT(sHandleButtons()));  connect(_listPrices, SIGNAL(clicked()), this, SLOT(sVendorListPrices()));  connect(_taxLit, SIGNAL(leftClickedURL(QString)), this, SLOT(sTaxDetail()));  // new slot added for tax url //  connect(_extendedPrice, SIGNAL(valueChanged()), this, SLOT(sCalculateTax()));  // new slot added for price //  connect(_freight, SIGNAL(valueChanged()), this, SLOT(sCalculateTax()));  // new slot added for line freight //  connect(_taxtype, SIGNAL(newID(int)), this, SLOT(sCalculateTax()));            // new slot added for taxtype //  _bomRevision->setMode(RevisionLineEdit::Use);  _bomRevision->setType("BOM");  _booRevision->setMode(RevisionLineEdit::Use);  _booRevision->setType("BOO");  _parentwo = -1;  _parentso = -1;  _itemsrcid = -1;  _taxzoneid = -1;   //  _taxzoneid  added //  _orderQtyCache = -1;  _overriddenUnitPrice = false;  _ordered->setValidator(omfgThis->qtyVal());  _project->setType(ProjectLineEdit::PurchaseOrder);  if(!_metrics->boolean("UseProjects"))    _project->hide();  _itemchar = new QStandardItemModel(0, 2, this);  _itemchar->setHeaderData( 0, Qt::Horizontal, tr("Name"), Qt::DisplayRole);  _itemchar->setHeaderData( 1, Qt::Horizontal, tr("Value"), Qt::DisplayRole);  _itemcharView->setModel(_itemchar);  ItemCharacteristicDelegate * delegate = new ItemCharacteristicDelegate(this);  _itemcharView->setItemDelegate(delegate);  _pocharView->setType("PI");  _minOrderQty->setValidator(omfgThis->qtyVal());  _orderQtyMult->setValidator(omfgThis->qtyVal());  _received->setValidator(omfgThis->qtyVal());  _invVendorUOMRatio->setValidator(omfgThis->ratioVal());  purchasepurchaseOrderItem.exec("SELECT DISTINCT itemsrc_manuf_name FROM itemsrc ORDER BY 1;");  for (int i = 0; purchasepurchaseOrderItem.next(); i++)    _manufName->append(i, purchasepurchaseOrderItem.value("itemsrc_manuf_name").toString());  _manufName->setId(-1);  //If not multi-warehouse hide whs control  if (!_metrics->boolean("MultiWhs"))  {    _warehouseLit->hide();    _warehouse->hide();  }  //If not Revision Control, hide controls  if (!_metrics->boolean("RevControl"))   _tab->removeTab(_tab->indexOf(_revision));     adjustSize();    //TO DO: Implement later  _taxRecoverable->hide();}
开发者ID:szuke,项目名称:qt-client,代码行数:90,


示例21: valueChanged

/* The following is a necessity, because Q_Object does not do well with multiple inheritances */void ExtcapArgument::onStringChanged(QString){    emit valueChanged();}
开发者ID:linshimiao,项目名称:wireshark,代码行数:5,


示例22: XWidget

cashReceipt::cashReceipt(QWidget* parent, const char* name, Qt::WFlags fl)    : XWidget(parent, name, fl){  setupUi(this);  connect(_close, SIGNAL(clicked()), this, SLOT(close()));  connect(_save, SIGNAL(clicked()), this, SLOT(sSave()));  connect(_cust, SIGNAL(newId(int)), this, SLOT(sPopulateCustomerInfo(int)));  connect(_received, SIGNAL(editingFinished()), this, SLOT(sUpdateBalance()));  connect(_applyToBalance, SIGNAL(clicked()), this, SLOT(sApplyToBalance()));  connect(_apply, SIGNAL(clicked()), this, SLOT(sApply()));  connect(_applyLineBalance, SIGNAL(clicked()), this, SLOT(sApplyLineBalance()));  connect(_add, SIGNAL(clicked()), this, SLOT(sAdd()));  connect(_edit, SIGNAL(clicked()), this, SLOT(sEdit()));  connect(_delete, SIGNAL(clicked()), this, SLOT(sDelete()));  connect(_clear, SIGNAL(clicked()), this, SLOT(sClear()));  connect(_searchDocNum, SIGNAL(textChanged(const QString&)), this, SLOT(sSearchDocNumChanged()));  connect(_applied, SIGNAL(valueChanged()), this, SLOT(sUpdateBalance()));  connect(_miscDistribs, SIGNAL(valueChanged()), this, SLOT(sUpdateBalance()));  connect(_received, SIGNAL(valueChanged()), this, SLOT(sUpdateBalance()));  connect(_received, SIGNAL(idChanged(int)), this, SLOT(sFillApplyList()));  connect(_received, SIGNAL(idChanged(int)), this, SLOT(sFillMiscList()));  connect(_received, SIGNAL(effectiveChanged(const QDate&)), this, SLOT(sFillApplyList()));  connect(_received, SIGNAL(effectiveChanged(const QDate&)), this, SLOT(sFillMiscList()));  connect(_received, SIGNAL(idChanged(int)), this, SLOT(sChangeCurrency(int)));  connect(_distDate, SIGNAL(newDate(QDate)), this, SLOT(sDateChanged()));  connect(_applDate, SIGNAL(newDate(QDate)), this, SLOT(sDateChanged()));  connect(_credits, SIGNAL(toggled(bool)), this, SLOT(sFillApplyList()));  if (!_metrics->boolean("CCAccept") || !_privileges->check("ProcessCreditCards"))  {    _tab->removeTab(_tab->indexOf(_creditCardTab));  }  else  {    connect(_newCC, SIGNAL(clicked()), this, SLOT(sNewCreditCard()));    connect(_editCC, SIGNAL(clicked()), this, SLOT(sEditCreditCard()));    connect(_viewCC, SIGNAL(clicked()), this, SLOT(sViewCreditCard()));    connect(_upCC, SIGNAL(clicked()), this, SLOT(sMoveUp()));    connect(_downCC, SIGNAL(clicked()), this, SLOT(sMoveDown()));    connect(_fundsType, SIGNAL(activated(int)), this, SLOT(setCreditCard()));  }  QButtonGroup * bg = new QButtonGroup(this);  bg->addButton(_balCreditMemo);  bg->addButton(_balCustomerDeposit);  _applied->clear();  _CCCVV->setValidator(new QIntValidator(100, 9999, this));  _cust->setType(CLineEdit::ActiveCustomers);  _bankaccnt->setType(XComboBox::ARBankAccounts);  _salescat->setType(XComboBox::SalesCategoriesActive);  _aropen->addColumn(tr("Doc. Type"), -1,              Qt::AlignCenter, true, "doctype");  _aropen->addColumn(tr("Doc. #"),    _orderColumn,    Qt::AlignCenter, true, "aropen_docnumber");  _aropen->addColumn(tr("Ord. #"),    _orderColumn,    Qt::AlignCenter, true, "aropen_ordernumber");  _aropen->addColumn(tr("Doc. Date"), _dateColumn,     Qt::AlignCenter, true, "aropen_docdate");  _aropen->addColumn(tr("Due Date"),  _dateColumn,     Qt::AlignCenter, true, "aropen_duedate");  _aropen->addColumn(tr("Balance"),   _bigMoneyColumn, Qt::AlignRight,  true, "balance");  _aropen->addColumn(tr("Currency"),  _currencyColumn, Qt::AlignLeft,  !omfgThis->singleCurrency(), "balance_curr");  _aropen->addColumn(tr("Applied"),   _bigMoneyColumn, Qt::AlignRight,  true, "applied");  _aropen->addColumn(tr("Currency"),  _currencyColumn, Qt::AlignLeft,  !omfgThis->singleCurrency(), "applied_curr");  _aropen->addColumn(tr("Discount"),  _moneyColumn,    Qt::AlignRight , true, "discount" );  _aropen->addColumn(tr("All Pending"),_moneyColumn,   Qt::AlignRight,  true, "pending");  _aropen->addColumn(tr("Currency"),  _currencyColumn, Qt::AlignLeft,  !omfgThis->singleCurrency(), "pending_curr");  _cashrcptmisc->addColumn(tr("Account #"), _itemColumn,     Qt::AlignCenter, true, "account");  _cashrcptmisc->addColumn(tr("Notes"),     -1,              Qt::AlignLeft,  true, "firstline");  _cashrcptmisc->addColumn(tr("Amount"),    _bigMoneyColumn, Qt::AlignRight, true, "cashrcptmisc_amount");  _cc->addColumn(tr("Sequence"),_itemColumn, Qt::AlignLeft, true, "ccard_seq");  _cc->addColumn(tr("Type"),    _itemColumn, Qt::AlignLeft, true, "type");  _cc->addColumn(tr("Number"),  _itemColumn, Qt::AlignRight,true, "f_number");  _cc->addColumn(tr("Active"),  _itemColumn, Qt::AlignLeft, true, "ccard_active");  _cc->addColumn(tr("Name"),    _itemColumn, Qt::AlignLeft, true, "ccard_name");  _cc->addColumn(tr("Expiration Date"),  -1, Qt::AlignLeft, true, "expiration");  for (unsigned int i = 0; i < sizeof(_fundsTypes) / sizeof(_fundsTypes[1]); i++)  {    // only show credit card funds types if the user can process cc transactions    if (! _fundsTypes[i].cc ||        (_fundsTypes[i].cc && _metrics->boolean("CCAccept") &&         _privileges->check("ProcessCreditCards")) )      _fundsType->append(i, tr(_fundsTypes[i].full), _fundsTypes[i].abbr);  }  if (!_metrics->boolean("CCAccept") || ! _privileges->check("ProcessCreditCards"))    _tab->removeTab(_tab->indexOf(_creditCardTab));  if(_metrics->boolean("HideApplyToBalance"))    _applyToBalance->hide();  if(_metrics->boolean("EnableCustomerDeposits"))    _balCustomerDeposit->setChecked(true);  else  {   _applyBalLit->hide();   _balCreditMemo->hide();   _balCustomerDeposit->hide();//.........这里部分代码省略.........
开发者ID:Fortyseven,项目名称:qt-client,代码行数:101,



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


C++ valueObject函数代码示例
C++ valueAt函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。