void tst_IdentityInterface::caption()
{
    QScopedPointer<IdentityInterface> identity(new IdentityInterface);
    QSignalSpy spy(identity.data(), SIGNAL(captionChanged()));
    identity->setCaption(QString(QLatin1String("test-caption")));
    QCOMPARE(spy.count(), 1);
    QCOMPARE(identity->caption(), QString(QLatin1String("test-caption")));
}
Exemple #2
0
void VCWidget::setCaption(QString caption)
{
    if (m_caption == caption)
        return;

    m_caption = caption;
    setDocModified();
    emit captionChanged(caption);
}
Exemple #3
0
RKCaughtX11Window::RKCaughtX11Window (RKGraphicsDevice* rkward_device, int device_number) : RKMDIWindow (0, X11Window) {
	RK_TRACE (MISC);

	commonInit (device_number);
	rk_native_device = rkward_device;
	xembed_container->setFixedSize (rk_native_device->viewPort ()->size ());
	resize (xembed_container->size ());
	rk_native_device->viewPort ()->setParent (xembed_container);
	connect (rkward_device, SIGNAL (captionChanged(QString)), this, SLOT (setCaption(QString)));
	connect (rkward_device, SIGNAL (goingInteractive(bool,QString)), this, SLOT (deviceInteractive(bool,QString)));
	stop_interaction->setVisible (true);
	stop_interaction->setEnabled (false);
	setCaption (rkward_device->viewPort ()->windowTitle ());

	QTimer::singleShot (0, this, SLOT (doEmbed()));
}
/**
Sets caption
*/
void cwFileDialogHelper::setCaption(QString caption) {
    if(Caption != caption) {
        Caption = caption;
        emit captionChanged();
    }
}
Exemple #5
0
void AuroraeClient::captionChange()
{
    emit captionChanged();
}
void medAbstractParameter::setCaption(const QString & caption)
{
    d->caption = caption;
    emit captionChanged(d->caption);
}
Exemple #7
0
		populateTree();
		this->connectUI();
}

// -----------------------------------------------------------------------------
CardEditor::~CardEditor() {

}
// -----------------------------------------------------------------------------
void CardEditor::connectUI() {
	connect(ui.cardList,SIGNAL(clicked(const QModelIndex&)), this, SLOT(treeItemClicked(const QModelIndex&)));
	connect(ui.buttonReset, SIGNAL(clicked()), this, SLOT(resetChanges()));
	connect(ui.buttonApply, SIGNAL(clicked()), this, SLOT(applyChanges()));
	connect(ui.dropDownCardType, SIGNAL(activated(int)),this,SLOT(changeCardType()));
	connect(ui.textCardCaption, SIGNAL(textChanged()), this, SLOT(captionChanged()));
	connect(ui.spinRequirements, SIGNAL(valueChanged(int)), this, SLOT(requirementsChanged()));
	connect(ui.editCardName, SIGNAL(textChanged(QString)), this, SLOT(nameChanged()));

	// Validate Values on change
	connect(ui.tableResources, SIGNAL(itemChanged( QTableWidgetItem* )), this, SLOT(validateValues()));
	connect(ui.tableModifiers, SIGNAL(itemChanged( QTableWidgetItem* )), this, SLOT(validateValues()));

	// Connect Change Listener
	connect(ui.editCardName, SIGNAL(editingFinished()), this, SLOT(somethingChanged()));
	connect(ui.spinDamageOpponent, SIGNAL(valueChanged(int)), this, SLOT(somethingChanged()));
	connect(ui.spinDamageSelf, SIGNAL(valueChanged(int)), this, SLOT(somethingChanged()));
	connect(ui.checkAddTurn, SIGNAL(clicked()), this, SLOT(somethingChanged()));
	connect(ui.checkDiscard, SIGNAL(clicked()), this, SLOT(somethingChanged()));
	connect(ui.checkNotDiscardable, SIGNAL(clicked()), this, SLOT(somethingChanged()));
	connect(ui.tableResources, SIGNAL(itemDoubleClicked( QTableWidgetItem* )), this, SLOT(somethingChanged()));