summaryrefslogtreecommitdiffabout
path: root/kmicromail/viewmailbase.cpp
Side-by-side diff
Diffstat (limited to 'kmicromail/viewmailbase.cpp') (more/less context) (show whitespace changes)
-rw-r--r--kmicromail/viewmailbase.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/kmicromail/viewmailbase.cpp b/kmicromail/viewmailbase.cpp
index 3a41ba0..3bb964e 100644
--- a/kmicromail/viewmailbase.cpp
+++ b/kmicromail/viewmailbase.cpp
@@ -3,8 +3,9 @@
#include <qlistview.h>
#include <qaction.h>
#include <qlabel.h>
#include <qvbox.h>
+#include <qapplication.h>
#include <qtoolbar.h>
#include <qmenubar.h>
#include <kiconloader.h>
@@ -71,12 +72,14 @@ ViewMailBase::ViewMailBase(QWidget *parent, const char *name, WFlags fl)
QVBox *view = new QVBox(this);
setCentralWidget(view);
attachments = new QListView(view);
- attachments->setMinimumHeight(90);
- attachments->setMaximumHeight(90);
+ int fixh = 100;
+ if ( QApplication::desktop()->width() > 320 )
+ fixh = 200;
+ attachments->setFixedHeight(fixh);
attachments->setAllColumnsShowFocus(true);
- attachments->addColumn("Mime Type", 60);
+ attachments->addColumn("Mime Type", fixh-30);
attachments->addColumn(i18n("Description"), 100);
attachments->addColumn(i18n("Filename"), 80);
attachments->addColumn(i18n("Size"), 80);
attachments->setSorting(-1);