[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenetwork/kppp
From: Laurent Montel <montel () kde ! org>
Date: 2004-10-14 9:45:58
Message-ID: 20041014094558.7E19516CEC () office ! kde ! org
[Download RAW message or body]
CVS commit by mlaurent:
Disable/enable ok button
Backport ?
M +2 -2 general.h 1.43
M +7 -2 modems.cpp 1.4
M +1 -0 modems.h 1.2
--- kdenetwork/kppp/general.h #1.42:1.43
@@ -62,5 +62,5 @@ public:
ModemWidget(QWidget *parent=0, bool isnewmodem=true, const char *name=0);
bool save();
-
+ QLineEdit *connectName() const { return connectname_l;}
private slots:
--- kdenetwork/kppp/modems.cpp #1.3:1.4
@@ -223,5 +222,7 @@ int ModemsWidget::doTab(){
modem1 = new ModemWidget(tabWindow->addPage( i18n("&Device"), i18n("Serial \
Device")), isnewmodem ); modem2 = new ModemWidget2(tabWindow->addPage( \
i18n("&Modem"), i18n("Modem Settings"))); + connect ( modem1->connectName(), \
SIGNAL(textChanged ( const QString & )), this, SLOT(modemNameChanged(const QString & \
)));
+ modemNameChanged(modem1->connectName()->text());
int result = 0;
bool ok = false;
@@ -246,4 +247,8 @@ int ModemsWidget::doTab(){
}
+void ModemsWidget::modemNameChanged(const QString & text)
+{
+ tabWindow->enableButtonOK( !text.isEmpty() );
+}
QString ModemsWidget::prettyPrintVolume(unsigned int n) {
--- kdenetwork/kppp/modems.h #1.1:1.2
@@ -56,4 +56,5 @@ private slots:
void deletemodem();
void slotListBoxSelect(int);
+ void modemNameChanged(const QString &);
private:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic