[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdeplayground-admin/kextprocess/lib
From: Martijn Klingens <klingens () kde ! org>
Date: 2005-04-07 20:00:17
Message-ID: 20050407200017.31EF3646 () office ! kde ! org
[Download RAW message or body]
CVS commit by mklingens:
Save all properties and not just the one I used for testing when developing
the propery editing API
M +14 -0 sshstepconfigwidget.cpp 1.3
M +2 -0 sshstepconfigwidget.h 1.3
M +14 -0 sustepconfigwidget.cpp 1.2
M +4 -0 sustepconfigwidget.h 1.2
--- kdeplayground-admin/kextprocess/lib/sshstepconfigwidget.cpp #1.2:1.3
@@ -60,4 +60,6 @@ SSHStepConfigWidget::SSHStepConfigWidget
layout->addWidget( label, 1, 0 );
layout->addWidget( edit, 1, 1 );
+ connect( edit, SIGNAL( textChanged( const QString & ) ),
+ this, SLOT( slotUsernameChanged( const QString & ) ) );
label = new QLabel( i18n( "&Password:" ), this );
@@ -67,4 +69,6 @@ SSHStepConfigWidget::SSHStepConfigWidget
layout->addWidget( label, 2, 0 );
layout->addWidget( edit, 2, 1 );
+ connect( edit, SIGNAL( textChanged( const QString & ) ),
+ this, SLOT( slotPasswordChanged( const QString & ) ) );
layout->addItem( new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ), 3, 0 );
@@ -76,4 +80,14 @@ void SSHStepConfigWidget::slotHostnameCh
}
+void SSHStepConfigWidget::slotUsernameChanged( const QString &newText )
+{
+ emit propertyChanged( "username", newText );
+}
+
+void SSHStepConfigWidget::slotPasswordChanged( const QString &newText )
+{
+ emit propertyChanged( "password", newText );
+}
+
} // namespace
--- kdeplayground-admin/kextprocess/lib/sshstepconfigwidget.h #1.2:1.3
@@ -36,4 +36,6 @@ public:
private slots:
void slotHostnameChanged( const QString &newText );
+ void slotUsernameChanged( const QString &newText );
+ void slotPasswordChanged( const QString &newText );
private:
--- kdeplayground-admin/kextprocess/lib/sustepconfigwidget.cpp #1.1:1.2
@@ -52,4 +52,6 @@ SuStepConfigWidget::SuStepConfigWidget(
layout->addWidget( label, 0, 0 );
layout->addWidget( edit, 0, 1 );
+ connect( edit, SIGNAL( textChanged( const QString & ) ),
+ this, SLOT( slotUsernameChanged( const QString & ) ) );
label = new QLabel( i18n( "&Password:" ), this );
@@ -59,8 +61,20 @@ SuStepConfigWidget::SuStepConfigWidget(
layout->addWidget( label, 1, 0 );
layout->addWidget( edit, 1, 1 );
+ connect( edit, SIGNAL( textChanged( const QString & ) ),
+ this, SLOT( slotPasswordChanged( const QString & ) ) );
layout->addItem( new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ), 2, 0 );
}
+void SuStepConfigWidget::slotUsernameChanged( const QString &newText )
+{
+ emit propertyChanged( "username", newText );
+}
+
+void SuStepConfigWidget::slotPasswordChanged( const QString &newText )
+{
+ emit propertyChanged( "password", newText );
+}
+
} // namespace
--- kdeplayground-admin/kextprocess/lib/sustepconfigwidget.h #1.1:1.2
@@ -34,4 +34,8 @@ public:
~SuStepConfigWidget();
+private slots:
+ void slotUsernameChanged( const QString &newText );
+ void slotPasswordChanged( const QString &newText );
+
private:
class Private;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic