[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdebase/khelpcenter
From: Laurent Montel <montel () kde ! org>
Date: 2005-02-10 22:01:17
Message-ID: 20050210220117.616DF1D1CF () office ! kde ! org
[Download RAW message or body]
CVS commit by mlaurent:
Disable/Enable ok button
M +9 -1 kcmhelpcenter.cpp 1.33
M +1 -1 kcmhelpcenter.h 1.9
--- kdebase/khelpcenter/kcmhelpcenter.cpp #1.32:1.33
@@ -41,5 +41,5 @@
#include <kmessagebox.h>
#include <klistview.h>
-
+#include <klineedit.h>
#include <qlayout.h>
#include <qpushbutton.h>
@@ -74,4 +74,11 @@ IndexDirDialog::IndexDirDialog( QWidget
mIndexUrlRequester->setURL( Prefs::indexDirectory() );
+ connect(mIndexUrlRequester->lineEdit(),SIGNAL(textChanged ( const QString & )), \
this, SLOT(slotUrlChanged( const QString &))); + slotUrlChanged( \
mIndexUrlRequester->lineEdit()->text()); +}
+
+void IndexDirDialog::slotUrlChanged( const QString &_url)
+{
+ enableButtonOK( !_url.isEmpty() );
}
--- kdebase/khelpcenter/kcmhelpcenter.h #1.8:1.9
@@ -54,5 +54,5 @@ class IndexDirDialog : public KDialogBas
protected slots:
void slotOk();
-
+ void slotUrlChanged( const QString &_url);
private:
KURLRequester *mIndexUrlRequester;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic