From 05cf58264e50313cc0cc504a55d091914c6a1bc8 Mon Sep 17 00:00:00 2001
From: marco <marco@5a81b35b-ba03-0410-adc8-b2c5c5119f08>
Date: Fri, 20 Aug 2010 07:21:39 +0000
Subject: [PATCH] prettify file-format dialog

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2662 5a81b35b-ba03-0410-adc8-b2c5c5119f08
---
 modules/gui/src/file_type_dialog.cc | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/modules/gui/src/file_type_dialog.cc b/modules/gui/src/file_type_dialog.cc
index ac9dd54ab..320e10186 100644
--- a/modules/gui/src/file_type_dialog.cc
+++ b/modules/gui/src/file_type_dialog.cc
@@ -36,11 +36,16 @@ FileTypeDialog::FileTypeDialog(const QString& file_name, QWidget* parent):
 #endif
 {
   this->setWindowTitle("File format not recognized");
+  this->setFixedSize(QSize(400, 300));
   QVBoxLayout* vb=new QVBoxLayout(this);
-  label_ = new QLabel("The file format could not be recognized, please select the type of the file from the list:");
+  label_ = new QLabel("The file format could not be recognized, "
+                      "please select the type of the file from the list:");
+  label_->setWordWrap(true);
   list_ = new QTableWidget(this);
+  list_->setShowGrid(false);
   list_->horizontalHeader()->setStretchLastSection(true);
   list_->setColumnCount(2);
+  list_->setAttribute(Qt::WA_MacSmallSize);
   list_->verticalHeader()->setVisible(false);
   list_->horizontalHeader()->setVisible(false);
   list_->setSelectionBehavior(QAbstractItemView::SelectRows);
-- 
GitLab