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()); }
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; }
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()); }