diff options
author | Timothy Pearson <[email protected]> | 2012-05-18 16:42:15 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-05-18 16:42:15 -0500 |
commit | 9dfe67333622690d2b80714ed19adcf29d10b030 (patch) | |
tree | 025b70be9447606b31a055b5084e6245334cb6dc /src/bondrealmpage.cpp | |
parent | 37acc91cacd3f5c85e3254fcfd5794fcdcbadc27 (diff) | |
download | kcmldap-9dfe67333622690d2b80714ed19adcf29d10b030.tar.gz kcmldap-9dfe67333622690d2b80714ed19adcf29d10b030.zip |
Add realm properties editor
Diffstat (limited to 'src/bondrealmpage.cpp')
-rw-r--r-- | src/bondrealmpage.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/bondrealmpage.cpp b/src/bondrealmpage.cpp index 020c5a5..80f047a 100644 --- a/src/bondrealmpage.cpp +++ b/src/bondrealmpage.cpp @@ -32,6 +32,7 @@ #include <kprocess.h> #include <klineedit.h> #include <kwizard.h> +#include <kdialogbase.h> #include "bondrealmpage.h" @@ -44,6 +45,7 @@ BondRealmPage::BondRealmPage(TQWidget *parent, const char *name ) : BondRealmPag connect(txtAdminServer, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(validateEntries())); m_parentWizard = dynamic_cast<KWizard*>(parent); + m_parentDialog = dynamic_cast<KDialogBase*>(parent); } BondRealmPage::~BondRealmPage() { @@ -59,6 +61,14 @@ void BondRealmPage::validateEntries() { m_parentWizard->nextButton()->setEnabled(false); } } + if (m_parentDialog) { + if ((txtRealmName->text() != "") && (txtKDC->text() != "") && (txtAdminServer->text() != "")) { + m_parentDialog->enableButton(KDialogBase::Ok, true); + } + else { + m_parentDialog->enableButton(KDialogBase::Ok, false); + } + } } #include "bondrealmpage.moc" |