Exemplo n.º 1
0
CapabilityWizard::CapabilityWizard(QWidget* parent, const QLCChannel* channel)
	: QDialog(parent)
{
	Q_ASSERT(channel != NULL);
	m_channel = channel;

	setupUi(this);
	slotCreateCapabilities();

	QSettings settings;
	QVariant var = settings.value(KSettingsGeometry);
	if (var.isValid() == true)
		restoreGeometry(var.toByteArray());
}
Exemplo n.º 2
0
int CapabilityWizard::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QDialog::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: slotCreateCapabilities(); break;
        default: ;
        }
        _id -= 1;
    }
    return _id;
}
Exemplo n.º 3
0
CapabilityWizard::CapabilityWizard(QWidget* parent, const QLCChannel* channel)
    : QDialog(parent)
{
    Q_ASSERT(channel != NULL);
    m_channel = channel;

    setupUi(this);

    QAction* action = new QAction(this);
    action->setShortcut(QKeySequence(QKeySequence::Close));
    connect(action, SIGNAL(triggered(bool)), this, SLOT(reject()));
    addAction(action);

    m_nameEdit->setValidator(CAPS_VALIDATOR(this));
    slotCreateCapabilities();

    QSettings settings;
    QVariant var = settings.value(KSettingsGeometry);
    if (var.isValid() == true)
        restoreGeometry(var.toByteArray());
}