Skip to content
Snippets Groups Projects
Commit 05cf5826 authored by marco's avatar marco
Browse files

prettify file-format dialog

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2662 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 3dca7965
No related branches found
No related tags found
No related merge requests found
...@@ -36,11 +36,16 @@ FileTypeDialog::FileTypeDialog(const QString& file_name, QWidget* parent): ...@@ -36,11 +36,16 @@ FileTypeDialog::FileTypeDialog(const QString& file_name, QWidget* parent):
#endif #endif
{ {
this->setWindowTitle("File format not recognized"); this->setWindowTitle("File format not recognized");
this->setFixedSize(QSize(400, 300));
QVBoxLayout* vb=new QVBoxLayout(this); 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_ = new QTableWidget(this);
list_->setShowGrid(false);
list_->horizontalHeader()->setStretchLastSection(true); list_->horizontalHeader()->setStretchLastSection(true);
list_->setColumnCount(2); list_->setColumnCount(2);
list_->setAttribute(Qt::WA_MacSmallSize);
list_->verticalHeader()->setVisible(false); list_->verticalHeader()->setVisible(false);
list_->horizontalHeader()->setVisible(false); list_->horizontalHeader()->setVisible(false);
list_->setSelectionBehavior(QAbstractItemView::SelectRows); list_->setSelectionBehavior(QAbstractItemView::SelectRows);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment