[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    Patch for kmail
From:       Laurent Montel <montel () kde ! org>
Date:       2003-08-30 20:15:42
[Download RAW message or body]

Hi,
a little patch.
It allows to "modify" a charset when we double-click on item.

Could you test it and apply it.

Thanks
regards

["kmail-double-click-in-charset-tab.patch" (text/x-diff)]

cvs server: Diffing .
Index: simplestringlisteditor.cpp
===================================================================
RCS file: /home/kde/kdepim/kmail/simplestringlisteditor.cpp,v
retrieving revision 1.4
diff -u -u -p -r1.4 simplestringlisteditor.cpp
--- simplestringlisteditor.cpp	31 Jan 2003 23:49:28 -0000	1.4
+++ simplestringlisteditor.cpp	30 Aug 2003 20:11:18 -0000
@@ -66,7 +66,7 @@ SimpleStringListEditor::SimpleStringList
 		     i18n("New entry:") : addDialogLabel )
 {
   QHBoxLayout * hlay = new QHBoxLayout( this, 0, KDialog::spacingHint() );
-  
+
   mListBox = new QListBox( this );
   hlay->addWidget( mListBox, 1 );
 
@@ -86,7 +86,7 @@ SimpleStringListEditor::SimpleStringList
     connect( mAddButton, SIGNAL(clicked()),
 	     this, SLOT(slotAdd()) );
   }
-  
+
   if ( buttons & Remove ) {
     if ( removeLabel.isEmpty() )
       mRemoveButton = new QPushButton( i18n("&Remove"), this );
@@ -109,6 +109,9 @@ SimpleStringListEditor::SimpleStringList
     vlay->addWidget( mModifyButton );
     connect( mModifyButton, SIGNAL(clicked()),
 	     this, SLOT(slotModify()) );
+    connect( mListBox, SIGNAL(doubleClicked ( QListBoxItem * )),
+	     this, SLOT(slotModify()) );
+
   }
 
   if ( buttons & Up ) {
cvs server: Diffing about
cvs server: Diffing interfaces
cvs server: Diffing pics
cvs server: Diffing profiles


_______________________________________________
KMail Developers mailing list
kmail@mail.kde.org
http://mail.kde.org/mailman/listinfo/kmail


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic