void TransactionFilterWidget::currentDateChanged(const QDate &olddate, const QDate &newdate) { if(olddate == to_date) { dateToEdit->blockSignals(true); dateToEdit->setDate(newdate); dateToEdit->blockSignals(false); toChanged(newdate); } }
void ConversionItem::setTo(const QString &to) { if (d.to == to) return; qimsysDebugIn() << to; d.to = to; emit toChanged(d.to); qimsysDebugOut(); }
void DateSelector::setTo(const QDate &date) { if (m_to == date) return; m_to = date; Q_EMIT toChanged(); }
void QQuickAnimator::setTo(qreal to) { Q_D(QQuickAnimator); if (to == d->to) return; d->isToDefined = true; d->to = to; Q_EMIT toChanged(d->to); }
void QQuickTransition::setToState(const QString &t) { Q_D(QQuickTransition); if (t == d->toState) return; d->toState = t; emit toChanged(); }
DelPages::DelPages( QWidget* parent, int currentPage, int maxPage ) : QDialog( parent ) { setWindowTitle( tr( "Delete Pages" ) ); setModal(true); setWindowIcon(loadIcon("AppIcon.png")); dialogLayout = new QVBoxLayout( this ); dialogLayout->setSpacing( 5 ); dialogLayout->setMargin( 10 ); fromToLayout = new QHBoxLayout; fromToLayout->setSpacing( 5 ); fromToLayout->setMargin( 5 ); fromLabel = new QLabel( tr( "Delete From:" ), this ); fromToLayout->addWidget( fromLabel ); fromPageData = new QSpinBox(this ); fromPageData->setMinimum(1); fromPageData->setMaximum(maxPage); fromPageData->setValue( currentPage ); fromToLayout->addWidget( fromPageData ); toLabel = new QLabel( this ); toLabel->setText( tr( "to:" ) ); fromToLayout->addWidget( toLabel ); toPageData = new QSpinBox( this ); toPageData->setMinimum(1); toPageData->setMaximum(maxPage); toPageData->setValue( currentPage ); fromToLayout->addWidget( toPageData ); dialogLayout->addLayout( fromToLayout ); okCancelLayout = new QHBoxLayout; okCancelLayout->setSpacing( 5 ); okCancelLayout->setMargin( 0 ); QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); okCancelLayout->addItem( spacer ); okButton = new QPushButton( CommonStrings::tr_OK, this ); okButton->setDefault( true ); okCancelLayout->addWidget(okButton); cancelButton = new QPushButton( CommonStrings::tr_Cancel, this ); cancelButton->setDefault( false ); okCancelLayout->addWidget(cancelButton); dialogLayout->addLayout( okCancelLayout ); setMaximumSize(sizeHint()); // signals and slots connections connect( okButton, SIGNAL( clicked() ), this, SLOT( accept() ) ); connect( cancelButton, SIGNAL( clicked() ), this, SLOT( reject() ) ); connect( fromPageData, SIGNAL( editingFinished() ), this, SLOT( fromChanged() ) ); connect( toPageData, SIGNAL( editingFinished() ), this, SLOT( toChanged() ) ); }