|
From: <dhu...@us...> - 2007-01-15 06:32:36
|
Revision: 172
http://svn.sourceforge.net/qcell/?rev=172&view=rev
Author: dhubleizh
Date: 2007-01-14 22:32:33 -0800 (Sun, 14 Jan 2007)
Log Message:
-----------
- layout for buttons in SymbolConfiguration
Modified Paths:
--------------
trunk/qcell/baseheaders/simulationwindow.ui
trunk/qcell/basesources/simulationwindow.cpp
Modified: trunk/qcell/baseheaders/simulationwindow.ui
===================================================================
--- trunk/qcell/baseheaders/simulationwindow.ui 2007-01-15 01:42:48 UTC (rev 171)
+++ trunk/qcell/baseheaders/simulationwindow.ui 2007-01-15 06:32:33 UTC (rev 172)
@@ -5,8 +5,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>513</width>
- <height>301</height>
+ <width>400</width>
+ <height>300</height>
</rect>
</property>
<property name="sizePolicy" >
@@ -25,8 +25,8 @@
<rect>
<x>10</x>
<y>10</y>
- <width>490</width>
- <height>283</height>
+ <width>251</width>
+ <height>78</height>
</rect>
</property>
<property name="tabPosition" >
@@ -62,32 +62,51 @@
<attribute name="title" >
<string>Symbols Configuration</string>
</attribute>
- <widget class="QPushButton" name="addSymbol" >
- <property name="geometry" >
- <rect>
- <x>0</x>
- <y>0</y>
- <width>75</width>
- <height>23</height>
- </rect>
+ <layout class="QVBoxLayout" >
+ <property name="margin" >
+ <number>9</number>
</property>
- <property name="text" >
- <string>Add Symbol</string>
+ <property name="spacing" >
+ <number>6</number>
</property>
- </widget>
- <widget class="QPushButton" name="removeSymbol" >
- <property name="geometry" >
- <rect>
- <x>80</x>
- <y>0</y>
- <width>84</width>
- <height>23</height>
- </rect>
- </property>
- <property name="text" >
- <string>Remove Symbol</string>
- </property>
- </widget>
+ <item>
+ <layout class="QHBoxLayout" >
+ <property name="margin" >
+ <number>0</number>
+ </property>
+ <property name="spacing" >
+ <number>6</number>
+ </property>
+ <item>
+ <widget class="QPushButton" name="addSymbol" >
+ <property name="text" >
+ <string>Add Symbol</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="removeSymbol" >
+ <property name="text" >
+ <string>Remove Symbol</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <spacer>
+ <property name="orientation" >
+ <enum>Qt::Horizontal</enum>
+ </property>
+ <property name="sizeHint" >
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
+ </layout>
+ </item>
+ </layout>
</widget>
</widget>
</widget>
Modified: trunk/qcell/basesources/simulationwindow.cpp
===================================================================
--- trunk/qcell/basesources/simulationwindow.cpp 2007-01-15 01:42:48 UTC (rev 171)
+++ trunk/qcell/basesources/simulationwindow.cpp 2007-01-15 06:32:33 UTC (rev 172)
@@ -590,6 +590,7 @@
table1DMem = new QTableWidget(ui.view1D);
symbolTable = new QTableWidget(ui.symbolConfig);
+ ui.symbolConfig->layout()->addWidget(symbolTable);
symbolTable->setColumnCount(5);
symbolTable->setHorizontalHeaderItem(0, new QTableWidgetItem(tr("Value")));
symbolTable->setHorizontalHeaderItem(1, new QTableWidgetItem(tr("Symbol")));
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|