changeset 18:b07c934ea9cb

Some changes in the layout. But only little. git-svn-id: svn://svn.code.sf.net/p/universalindent/code/trunk@175 59b1889a-e5ac-428c-b0c7-476e01d41282
author thomas_-_s <thomas_-_s@59b1889a-e5ac-428c-b0c7-476e01d41282>
date Sat, 27 Jan 2007 17:58:59 +0000
parents fd0c7d392b76
children be33bab8312c
files src/indenthandler.cpp
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/indenthandler.cpp	Sat Jan 27 17:57:00 2007 +0000
+++ b/src/indenthandler.cpp	Sat Jan 27 17:58:59 2007 +0000
@@ -41,12 +41,13 @@
 
 	// create vertical layout box, into which the toolbox will be added
 	vboxLayout = new QVBoxLayout(this);
+	vboxLayout->setMargin(2);
 
 	// create a toolbox and set its resize behavior
 	toolBox = new QToolBox(this);
 	toolBox->setObjectName(QString::fromUtf8("toolBox"));
-	toolBox->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
-	toolBox->setMaximumSize(QSize(16777215, 16777215));
+	//toolBox->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
+	//toolBox->setMaximumSize(QSize(16777215, 16777215));
 	// insert the toolbox into the vlayout
 	vboxLayout->addWidget(toolBox);
 
@@ -438,7 +439,7 @@
 }
 
 /*!
-    Opens and parses the indenter ini file that is declarde by \a iniFilePath.
+    Opens and parses the indenter ini file that is declared by \a iniFilePath.
  */
 void IndentHandler::readIndentIniFile(QString iniFilePath) {
     Q_ASSERT_X( !iniFilePath.isEmpty(), "readIndentIniFile", "iniFilePath is empty" );
@@ -484,6 +485,7 @@
 
         toolBoxPage.page = new QWidget();
         toolBoxPage.page->setObjectName(categoryName);
+		toolBoxPage.page->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
         toolBoxPage.vboxLayout = new QVBoxLayout(toolBoxPage.page);
         toolBoxPage.vboxLayout->setSpacing(6);
         toolBoxPage.vboxLayout->setMargin(9);