From 291055cf9de2eb8ed45c9efe05934b2dcf144bf6 Mon Sep 17 00:00:00 2001 From: Guido Ranzuglia granzuglia Date: Thu, 4 Mar 2010 10:40:36 +0000 Subject: [PATCH] changed CustomDialog title --- src/meshlab/customDialog.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/meshlab/customDialog.cpp b/src/meshlab/customDialog.cpp index a1fd84de0..fb960ceaa 100644 --- a/src/meshlab/customDialog.cpp +++ b/src/meshlab/customDialog.cpp @@ -31,7 +31,6 @@ using namespace vcg; CustomDialog::CustomDialog(RichParameterSet& curparset, RichParameterSet& defparset, QWidget * parent) :QDialog(parent),curParSet(curparset),defParSet(defparset) { - //this->setWindowTitle(tr("Globals")); setModal(false); closebut = new QPushButton("Close",this); //QVBoxLayout* layout = new QVBoxLayout(parent); @@ -39,22 +38,13 @@ CustomDialog::CustomDialog(RichParameterSet& curparset, RichParameterSet& defpar setLayout(layout); tw = new QTableWidget(curParSet.paramList.size(),2,this); updateSettings(); - //int totlen = 0; - /*for (unsigned int jj =0; jj < 2;++jj) - { - tw->setColumnWidth(jj,maxlen[jj]); - totlen += maxlen[jj]; - } - - - setMinimumWidth(totlen);*/ int totlen = tw->columnWidth(0) + tw->columnWidth(1) + this->frameSize().width(); setMinimumWidth(totlen); layout->addWidget(tw,0,0,1,5); layout->addWidget(closebut,1,4,1,1); connect(tw,SIGNAL(itemDoubleClicked(QTableWidgetItem* )),this,SLOT(openSubDialog(QTableWidgetItem*))); connect(closebut,SIGNAL(clicked()),this,SLOT(close())); - this->setWindowTitle(tr("Globals")); + this->setWindowTitle(tr("Global Parameters Window")); } void CustomDialog::openSubDialog( QTableWidgetItem* itm )