[Uml-devel] kdesdk/umbrello/umbrello/dialogs
Laurent Montel
montel at kde.org
Thu Dec 18 02:17:01 UTC 2003
CVS commit by mlaurent:
Enable/disable ok button when name is empty
M +7 -0 umlattributedialog.cpp 1.12
M +1 -0 umlattributedialog.h 1.4
M +11 -2 umloperationdialog.cpp 1.22
M +4 -2 umloperationdialog.h 1.6
--- kdesdk/umbrello/umbrello/dialogs/umlattributedialog.cpp #1.11:1.12
@@ -126,4 +126,11 @@ void UMLAttributeDialog::setupDialog() {
m_pNameLE->setFocus();
+ connect( m_pNameLE, SIGNAL( textChanged ( const QString & ) ), SLOT( slotNameChanged( const QString & ) ) );
+ slotNameChanged(m_pNameLE->text() );
+}
+
+void UMLAttributeDialog::slotNameChanged( const QString &_text )
+{
+ enableButtonOK( !_text.isEmpty() );
}
--- kdesdk/umbrello/umbrello/dialogs/umlattributedialog.h #1.3:1.4
@@ -74,4 +74,5 @@ public slots:
*/
void slotOk();
+ void slotNameChanged( const QString & );
};
--- kdesdk/umbrello/umbrello/dialogs/umloperationdialog.cpp #1.21:1.22
@@ -178,6 +178,15 @@ void UMLOperationDialog::setupDialog() {
m_pNameLE->setFocus();
+ connect( m_pNameLE, SIGNAL( textChanged ( const QString & ) ), SLOT( slotNameChanged( const QString & ) ) );
+ slotNameChanged(m_pNameLE->text() );
+
}
+void UMLOperationDialog::slotNameChanged( const QString &_text )
+{
+ enableButtonOK( !_text.isEmpty() );
+}
+
+
void UMLOperationDialog::slotParmRightButtonPressed(QListBoxItem *item, const QPoint &p) {
ListPopupMenu::Menu_Type type = ListPopupMenu::mt_Undefined;
--- kdesdk/umbrello/umbrello/dialogs/umloperationdialog.h #1.5:1.6
@@ -115,4 +115,6 @@ public slots:
*/
void slotOk();
+ void slotNameChanged( const QString & );
+
};
More information about the umbrello-devel
mailing list