summaryrefslogtreecommitdiffabout
path: root/kmicromail/composemail.cpp
Side-by-side diff
Diffstat (limited to 'kmicromail/composemail.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--kmicromail/composemail.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/kmicromail/composemail.cpp b/kmicromail/composemail.cpp
index 3231b45..7b609fc 100644
--- a/kmicromail/composemail.cpp
+++ b/kmicromail/composemail.cpp
@@ -150,13 +150,20 @@ ComposeMail::ComposeMail( Settings *sett, QWidget *parent, const char *name, boo
return;
}
connect( smtpAccountBox, SIGNAL( activated(int) ), SLOT( fillValues(int) ) );
connect( SaveSigButton, SIGNAL( clicked() ), SLOT( saveSig()) );
if ( smtpAccountBox->count())
fillValues(0);
-
+#ifdef DESKTOP_VERSION
+ if ( QApplication::desktop()->width() <= 800 ) {
+ resize( QApplication::desktop()->size() );
+ } else
+ resize( 800, 600 );
+ if ( QApplication::desktop()->width() >= 640 )
+ senderNameEdit->setFixedWidth( 200 );
+#endif
}
void ComposeMail::fillSettings()
{
if ( QApplication::desktop()->width() < 320 )
fromBox->setMaximumWidth( 100 );