[rkward-cvs] rkward/rkward/dataeditor editlabelsdialog.cpp,1.3,1.4

Thomas Friedrichsmeier tfry at users.sourceforge.net
Thu Apr 6 19:50:41 UTC 2006


Update of /cvsroot/rkward/rkward/rkward/dataeditor
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10298

Modified Files:
	editlabelsdialog.cpp 
Log Message:
Fixes to factor level dialog

Index: editlabelsdialog.cpp
===================================================================
RCS file: /cvsroot/rkward/rkward/rkward/dataeditor/editlabelsdialog.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** editlabelsdialog.cpp	6 Apr 2006 19:40:46 -0000	1.3
--- editlabelsdialog.cpp	6 Apr 2006 19:50:39 -0000	1.4
***************
*** 40,48 ****
  
  	setNumCols (2);
- 	verticalHeader ()->setLabel (0, i18n ("Index"));
- 	verticalHeader ()->setLabel (1, i18n ("Label"));
- 	setColumnReadOnly (0, true);
- 
  	setNumRows (storage->count () + 1);
  }
  
--- 40,49 ----
  
  	setNumCols (2);
  	setNumRows (storage->count () + 1);
+ 	horizontalHeader ()->setLabel (0, i18n ("Index"));
+ 	horizontalHeader ()->setLabel (1, i18n ("Label"));
+ 	verticalHeader ()->hide ();
+ 	setLeftMargin (0);
+ 	setColumnReadOnly (0, true);
  }
  
***************
*** 134,137 ****
--- 135,140 ----
  	RK_ASSERT (!tted);
  
+ 	if (col < 1) return 0;
+ 
  	if (row >= numTrueRows ()) {
  		insertRows (numRows (), 1);
***************
*** 163,167 ****
  
  	QVBoxLayout *mainvbox = new QVBoxLayout (this, KDialog::marginHint (), KDialog::spacingHint ());
! 	QLabel *label = new QLabel (i18n ("Levels can be assigned only to consecutive integers starting with 1. To remove levels at the end of the list, just set them to empty."), this);
  	label->setAlignment (Qt::AlignAuto | Qt::AlignVCenter | Qt::ExpandTabs | Qt::WordBreak);
  	mainvbox->addWidget (label);
--- 166,170 ----
  
  	QVBoxLayout *mainvbox = new QVBoxLayout (this, KDialog::marginHint (), KDialog::spacingHint ());
! 	QLabel *label = new QLabel (i18n ("Levels can be assigned only to consecutive integers starting with 1 (the index column is read only). To remove levels at the end of the list, just set them to empty."), this);
  	label->setAlignment (Qt::AlignAuto | Qt::AlignVCenter | Qt::ExpandTabs | Qt::WordBreak);
  	mainvbox->addWidget (label);





More information about the rkward-tracker mailing list