summaryrefslogtreecommitdiffabout
path: root/kmicromail/editaccounts.cpp
authorzautrix <zautrix>2005-02-03 10:48:05 (UTC)
committer zautrix <zautrix>2005-02-03 10:48:05 (UTC)
commitfb6753570dc90e936b4e89092554ab012e946a56 (patch) (side-by-side diff)
tree6d3ae5c866f0bbb99f0b6bc8194d04d2c7681ff9 /kmicromail/editaccounts.cpp
parente0fce8c0f108e054cb6e4e4767affd04b398da45 (diff)
downloadkdepimpi-fb6753570dc90e936b4e89092554ab012e946a56.zip
kdepimpi-fb6753570dc90e936b4e89092554ab012e946a56.tar.gz
kdepimpi-fb6753570dc90e936b4e89092554ab012e946a56.tar.bz2
mail fixes
Diffstat (limited to 'kmicromail/editaccounts.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/editaccounts.cpp19
1 files changed, 17 insertions, 2 deletions
diff --git a/kmicromail/editaccounts.cpp b/kmicromail/editaccounts.cpp
index 48c3963..8253c91 100644
--- a/kmicromail/editaccounts.cpp
+++ b/kmicromail/editaccounts.cpp
@@ -21,2 +21,3 @@
#include <klocale.h>
+#include <kfiledialog.h>
@@ -481,3 +482,9 @@ SMTPconfig::SMTPconfig( SMTPaccount *account, QWidget *parent, const char *name,
fillValues();
-
+ QIconSet icon;
+ //icon = SmallIcon("fileexport");
+ icon = SmallIcon("fileopen");
+ SignaturButton->setText("");
+ SignaturButton->setIconSet (icon ) ;
+ SignaturButton->setMaximumSize ( SignaturButton->sizeHint().height()+4,SignaturButton->sizeHint().height()) ;
+ connect( SignaturButton, SIGNAL( clicked() ), this, SLOT( chooseSig() ) );
connect( ComboBox1, SIGNAL( activated(int) ), SLOT( slotConnectionToggle(int) ) );
@@ -490,3 +497,9 @@ SMTPconfig::SMTPconfig( SMTPaccount *account, QWidget *parent, const char *name,
}
-
+void SMTPconfig::chooseSig()
+{
+ QString lnk = KFileDialog::getOpenFileName( "", "Choose Signatur File", this );
+ if ( !lnk.isEmpty() ) {
+ SignaturEdit->setText( lnk );
+ }
+}
void SMTPconfig::slotConnectionToggle( int index )
@@ -518,2 +531,3 @@ void SMTPconfig::fillValues()
passLine->setText( data->getPassword() );
+ SignaturEdit->setText( data->getSigFile() );
}
@@ -529,2 +543,3 @@ void SMTPconfig::accept()
data->setPassword( passLine->text() );
+ data->setSigFile( SignaturEdit->text() );