summaryrefslogtreecommitdiff
path: root/noncore/apps
Unidiff
Diffstat (limited to 'noncore/apps') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/oxygen/calcdlg.ui58
-rw-r--r--noncore/apps/oxygen/dataTable.cpp2
2 files changed, 40 insertions, 20 deletions
diff --git a/noncore/apps/oxygen/calcdlg.ui b/noncore/apps/oxygen/calcdlg.ui
index 51bf334..60d312d 100644
--- a/noncore/apps/oxygen/calcdlg.ui
+++ b/noncore/apps/oxygen/calcdlg.ui
@@ -2,68 +2,84 @@
2<class>CalcDlg</class> 2<class>CalcDlg</class>
3<widget> 3<widget>
4 <class>QWidget</class> 4 <class>QWidget</class>
5 <property stdset="1"> 5 <property stdset="1">
6 <name>name</name> 6 <name>name</name>
7 <cstring>CalcDlg</cstring> 7 <cstring>CalcDlg</cstring>
8 </property> 8 </property>
9 <property stdset="1"> 9 <property stdset="1">
10 <name>geometry</name> 10 <name>geometry</name>
11 <rect> 11 <rect>
12 <x>0</x> 12 <x>0</x>
13 <y>0</y> 13 <y>0</y>
14 <width>237</width> 14 <width>323</width>
15 <height>318</height> 15 <height>380</height>
16 </rect> 16 </rect>
17 </property> 17 </property>
18 <widget> 18 <property stdset="1">
19 <name>caption</name>
20 <string>CalcDlg</string>
21 </property>
22 <property>
23 <name>layoutMargin</name>
24 </property>
25 <property>
26 <name>layoutSpacing</name>
27 </property>
28 <grid>
29 <property stdset="1">
30 <name>margin</name>
31 <number>-1</number>
32 </property>
33 <property stdset="1">
34 <name>spacing</name>
35 <number>-1</number>
36 </property>
37 <widget row="0" column="0" >
19 <class>QTabWidget</class> 38 <class>QTabWidget</class>
20 <property stdset="1"> 39 <property stdset="1">
21 <name>name</name> 40 <name>name</name>
22 <cstring>TabWidget3</cstring> 41 <cstring>TabWidget3</cstring>
23 </property> 42 </property>
24 <property stdset="1"> 43 <property>
25 <name>geometry</name> 44 <name>layoutMargin</name>
26 <rect> 45 </property>
27 <x>0</x> 46 <property>
28 <y>0</y> 47 <name>layoutSpacing</name>
29 <width>240</width>
30 <height>320</height>
31 </rect>
32 </property> 48 </property>
33 <widget> 49 <widget>
34 <class>QWidget</class> 50 <class>QWidget</class>
35 <property stdset="1"> 51 <property stdset="1">
36 <name>name</name> 52 <name>name</name>
37 <cstring>tab</cstring> 53 <cstring>tab</cstring>
38 </property> 54 </property>
39 <attribute> 55 <attribute>
40 <name>title</name> 56 <name>title</name>
41 <string>Molecular Weight</string> 57 <string>Molecular Weight</string>
42 </attribute> 58 </attribute>
59 <vbox>
60 <property stdset="1">
61 <name>margin</name>
62 <number>-1</number>
63 </property>
64 <property stdset="1">
65 <name>spacing</name>
66 <number>-1</number>
67 </property>
43 <widget> 68 <widget>
44 <class>QLayoutWidget</class> 69 <class>QLayoutWidget</class>
45 <property stdset="1"> 70 <property stdset="1">
46 <name>name</name> 71 <name>name</name>
47 <cstring>Layout6</cstring> 72 <cstring>Layout6</cstring>
48 </property> 73 </property>
49 <property stdset="1">
50 <name>geometry</name>
51 <rect>
52 <x>0</x>
53 <y>0</y>
54 <width>230</width>
55 <height>290</height>
56 </rect>
57 </property>
58 <vbox> 74 <vbox>
59 <property stdset="1"> 75 <property stdset="1">
60 <name>margin</name> 76 <name>margin</name>
61 <number>0</number> 77 <number>0</number>
62 </property> 78 </property>
63 <property stdset="1"> 79 <property stdset="1">
64 <name>spacing</name> 80 <name>spacing</name>
65 <number>6</number> 81 <number>6</number>
66 </property> 82 </property>
67 <widget> 83 <widget>
68 <class>QLabel</class> 84 <class>QLabel</class>
69 <property stdset="1"> 85 <property stdset="1">
@@ -154,16 +170,18 @@
154 <class>QMultiLineEdit</class> 170 <class>QMultiLineEdit</class>
155 <property stdset="1"> 171 <property stdset="1">
156 <name>name</name> 172 <name>name</name>
157 <cstring>anal_display</cstring> 173 <cstring>anal_display</cstring>
158 </property> 174 </property>
159 <property stdset="1"> 175 <property stdset="1">
160 <name>readOnly</name> 176 <name>readOnly</name>
161 <bool>true</bool> 177 <bool>true</bool>
162 </property> 178 </property>
163 </widget> 179 </widget>
164 </vbox> 180 </vbox>
165 </widget> 181 </widget>
182 </vbox>
166 </widget> 183 </widget>
167 </widget> 184 </widget>
185 </grid>
168</widget> 186</widget>
169</UI> 187</UI>
diff --git a/noncore/apps/oxygen/dataTable.cpp b/noncore/apps/oxygen/dataTable.cpp
index 48e2b20..798230a 100644
--- a/noncore/apps/oxygen/dataTable.cpp
+++ b/noncore/apps/oxygen/dataTable.cpp
@@ -88,24 +88,26 @@ void OxydataWidget::setLayout()
88{ 88{
89#warning this is not working and I have no idea why! 89#warning this is not working and I have no idea why!
90// DataTable->setColumnWidth ( 0 , this->width()/2 ); 90// DataTable->setColumnWidth ( 0 , this->width()/2 );
91// DataTable->setColumnWidth ( 1 , this->width()/2 ); 91// DataTable->setColumnWidth ( 1 , this->width()/2 );
92 92
93//X DataTable->setColumnWidth ( 0 , 110 ); 93//X DataTable->setColumnWidth ( 0 , 110 );
94//X DataTable->setColumnWidth ( 1 , 110 ); 94//X DataTable->setColumnWidth ( 1 , 110 );
95} 95}
96 96
97OxydataTable::OxydataTable(int numRows, int numCols, QWidget *parent, 97OxydataTable::OxydataTable(int numRows, int numCols, QWidget *parent,
98 const char *name) : QTable(numRows, numCols,parent, name) 98 const char *name) : QTable(numRows, numCols,parent, name)
99{ 99{
100 setColumnStretchable( 0, true );
101 setColumnStretchable( 1, true );
100 102
101 for (int zeile = 0; zeile < numRows; zeile++) 103 for (int zeile = 0; zeile < numRows; zeile++)
102 for ( int spalte = 0; spalte < numCols; spalte++ ) 104 for ( int spalte = 0; spalte < numCols; spalte++ )
103 { 105 {
104 OxydataQTI *testus = new OxydataQTI (this, OxydataQTI::Never, "hm" ); 106 OxydataQTI *testus = new OxydataQTI (this, OxydataQTI::Never, "hm" );
105 setItem(zeile, spalte, (QTableItem*)testus); 107 setItem(zeile, spalte, (QTableItem*)testus);
106 } 108 }
107 109
108 110
109 this->setShowGrid( false ); 111 this->setShowGrid( false );
110 this->setHScrollBarMode(QScrollView::AlwaysOff); 112 this->setHScrollBarMode(QScrollView::AlwaysOff);
111 this->horizontalHeader()->hide(); 113 this->horizontalHeader()->hide();