author | cniehaus <cniehaus> | 2002-11-20 21:01:34 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-11-20 21:01:34 (UTC) |
commit | 19cec7475afb19b9a3096a5e01a87ae80690ce21 (patch) (unidiff) | |
tree | 31462f9c562e98d0bd90fdbda8e5da7c86a5b767 | |
parent | 285affa7c824482953eb82417e9e5c2f7f9e0058 (diff) | |
download | opie-19cec7475afb19b9a3096a5e01a87ae80690ce21.zip opie-19cec7475afb19b9a3096a5e01a87ae80690ce21.tar.gz opie-19cec7475afb19b9a3096a5e01a87ae80690ce21.tar.bz2 |
why the hell is my layout not working?
-rw-r--r-- | noncore/apps/oxygen/TODO | 6 | ||||
-rw-r--r-- | noncore/apps/oxygen/dataTable.cpp | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/noncore/apps/oxygen/TODO b/noncore/apps/oxygen/TODO index c81fc26..32acfcd 100644 --- a/noncore/apps/oxygen/TODO +++ b/noncore/apps/oxygen/TODO | |||
@@ -1,18 +1,16 @@ | |||
1 | TODO: | 1 | TODO: |
2 | 2 | ||
3 | small things: | 3 | small things: |
4 | * there are bug in the layouting of the table | 4 | * there are bug in the layouting of the table |
5 | * Elementar symbols should be small enough to fit the boxes | 5 | * Elementar symbols should be small enough to fit the boxes |
6 | (font problem?) | 6 | (font problem?) |
7 | 7 | ||
8 | |||
9 | big things: | 8 | big things: |
10 | * backport the conversions from Kalzium (http://edu.kde.org/kalzium) | 9 | * backport the conversions from Kalzium (http://edu.kde.org/kalzium) |
11 | * backport more dataset from Kalzium | 10 | * backport more dataset from Kalzium |
12 | * make the colors confiurable | 11 | * make the colors configurable |
13 | * graphical analysation (KalziumGraph.cpp/h) | ||
14 | * make elements sortable by their attributes (e.g. density) | 12 | * make elements sortable by their attributes (e.g. density) |
15 | * graph of attribute (e.g. ionisationenergie) vs atomnumber? | 13 | * graph of attribute (e.g. ionisationenergie) vs atomnumber? |
16 | 14 | ||
17 | wishes: | 15 | wishes: |
18 | * add radio active decay \ No newline at end of file | 16 | * add radio active decay |
diff --git a/noncore/apps/oxygen/dataTable.cpp b/noncore/apps/oxygen/dataTable.cpp index 82b425e..16aa462 100644 --- a/noncore/apps/oxygen/dataTable.cpp +++ b/noncore/apps/oxygen/dataTable.cpp | |||
@@ -77,34 +77,34 @@ void OxydataWidget::setTable() const | |||
77 | DataTable->setText( 1,0, tr( "Block" )) ; | 77 | DataTable->setText( 1,0, tr( "Block" )) ; |
78 | DataTable->setText( 2,0, tr( "Group" )) ; | 78 | DataTable->setText( 2,0, tr( "Group" )) ; |
79 | DataTable->setText( 3,0, tr( "Electronegativity" )) ; | 79 | DataTable->setText( 3,0, tr( "Electronegativity" )) ; |
80 | DataTable->setText( 4,0, tr( "Atomic radius" )) ; | 80 | DataTable->setText( 4,0, tr( "Atomic radius" )) ; |
81 | DataTable->setText( 5,0, tr( "Ionizationenergie" )) ; | 81 | DataTable->setText( 5,0, tr( "Ionizationenergie" )) ; |
82 | DataTable->setText( 6,0, tr( "Density" )) ; | 82 | DataTable->setText( 6,0, tr( "Density" )) ; |
83 | DataTable->setText( 7,0, tr( "Boilingpoint" ) ); | 83 | DataTable->setText( 7,0, tr( "Boilingpoint" ) ); |
84 | DataTable->setText( 8,0, tr( "Meltingpoint" ) ); | 84 | DataTable->setText( 8,0, tr( "Meltingpoint" ) ); |
85 | } | 85 | } |
86 | 86 | ||
87 | void OxydataWidget::setLayout() | 87 | 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 | DataTable->setColumnWidth ( 0 , 110 ); | 93 | //X DataTable->setColumnWidth ( 0 , 110 ); |
94 | DataTable->setColumnWidth ( 1 , 110 ); | 94 | //X DataTable->setColumnWidth ( 1 , 110 ); |
95 | } | 95 | } |
96 | 96 | ||
97 | OxydataTable::OxydataTable(int numRows, int numCols, QWidget *parent, | 97 | OxydataTable::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 | 100 | ||
101 | for (int zeile = 0; zeile < numRows; zeile++) | 101 | for (int zeile = 0; zeile < numRows; zeile++) |
102 | for ( int spalte = 0; spalte < numCols; spalte++ ) | 102 | for ( int spalte = 0; spalte < numCols; spalte++ ) |
103 | { | 103 | { |
104 | OxydataQTI *testus = new OxydataQTI (this, OxydataQTI::Never, "hm" ); | 104 | OxydataQTI *testus = new OxydataQTI (this, OxydataQTI::Never, "hm" ); |
105 | setItem(zeile, spalte, (QTableItem*)testus); | 105 | setItem(zeile, spalte, (QTableItem*)testus); |
106 | } | 106 | } |
107 | 107 | ||
108 | 108 | ||
109 | this->setShowGrid( false ); | 109 | this->setShowGrid( false ); |
110 | this->setHScrollBarMode(QScrollView::AlwaysOff); | 110 | this->setHScrollBarMode(QScrollView::AlwaysOff); |