author | cniehaus <cniehaus> | 2002-09-30 13:05:45 (UTC) |
---|---|---|
committer | cniehaus <cniehaus> | 2002-09-30 13:05:45 (UTC) |
commit | b753c264b7acd26aba9f5a73c1fa0a7deb0b73a3 (patch) (unidiff) | |
tree | a5579c7242791b2602a764a781051c7f9a298be1 | |
parent | ece83520d6bf5c481275a3d4a8e792749119fa08 (diff) | |
download | opie-b753c264b7acd26aba9f5a73c1fa0a7deb0b73a3.zip opie-b753c264b7acd26aba9f5a73c1fa0a7deb0b73a3.tar.gz opie-b753c264b7acd26aba9f5a73c1fa0a7deb0b73a3.tar.bz2 |
fixed one typo
I tried to fix the layouting problem but I give up. /me is to lame
-rw-r--r-- | noncore/apps/oxygen/calcdlg.ui | 4 | ||||
-rw-r--r-- | noncore/apps/oxygen/dataTable.cpp | 10 | ||||
-rw-r--r-- | noncore/apps/oxygen/dataTable.h | 3 | ||||
-rw-r--r-- | noncore/apps/oxygen/datawidgetui.cpp | 1 | ||||
-rw-r--r-- | noncore/apps/oxygen/psewidget.cpp | 1 |
5 files changed, 15 insertions, 4 deletions
diff --git a/noncore/apps/oxygen/calcdlg.ui b/noncore/apps/oxygen/calcdlg.ui index a8ed170..c817a47 100644 --- a/noncore/apps/oxygen/calcdlg.ui +++ b/noncore/apps/oxygen/calcdlg.ui | |||
@@ -11,7 +11,7 @@ | |||
11 | <rect> | 11 | <rect> |
12 | <x>0</x> | 12 | <x>0</x> |
13 | <y>0</y> | 13 | <y>0</y> |
14 | <width>241</width> | 14 | <width>237</width> |
15 | <height>318</height> | 15 | <height>318</height> |
16 | </rect> | 16 | </rect> |
17 | </property> | 17 | </property> |
@@ -76,7 +76,7 @@ | |||
76 | </property> | 76 | </property> |
77 | <property stdset="1"> | 77 | <property stdset="1"> |
78 | <name>text</name> | 78 | <name>text</name> |
79 | <string>chemical Formula</string> | 79 | <string>Chemical Formula</string> |
80 | </property> | 80 | </property> |
81 | </widget> | 81 | </widget> |
82 | <widget> | 82 | <widget> |
diff --git a/noncore/apps/oxygen/dataTable.cpp b/noncore/apps/oxygen/dataTable.cpp index 98d3bd8..82b425e 100644 --- a/noncore/apps/oxygen/dataTable.cpp +++ b/noncore/apps/oxygen/dataTable.cpp | |||
@@ -43,7 +43,6 @@ OxydataWidget::OxydataWidget(QWidget *parent) : QWidget(parent) | |||
43 | middle->setFont( bf ); | 43 | middle->setFont( bf ); |
44 | 44 | ||
45 | DataTable = new OxydataTable( 9,2, this ); | 45 | DataTable = new OxydataTable( 9,2, this ); |
46 | //DataTable->setColumnWidth ( 1 , ( parent->width())-10 ); | ||
47 | setTable(); | 46 | setTable(); |
48 | 47 | ||
49 | qgrid->addWidget( hbox,0,0 ); | 48 | qgrid->addWidget( hbox,0,0 ); |
@@ -83,7 +82,16 @@ void OxydataWidget::setTable() const | |||
83 | DataTable->setText( 6,0, tr( "Density" )) ; | 82 | DataTable->setText( 6,0, tr( "Density" )) ; |
84 | DataTable->setText( 7,0, tr( "Boilingpoint" ) ); | 83 | DataTable->setText( 7,0, tr( "Boilingpoint" ) ); |
85 | DataTable->setText( 8,0, tr( "Meltingpoint" ) ); | 84 | DataTable->setText( 8,0, tr( "Meltingpoint" ) ); |
85 | } | ||
86 | |||
87 | void OxydataWidget::setLayout() | ||
88 | { | ||
89 | #warning this is not working and I have no idea why! | ||
90 | // DataTable->setColumnWidth ( 0 , this->width()/2 ); | ||
91 | // DataTable->setColumnWidth ( 1 , this->width()/2 ); | ||
86 | 92 | ||
93 | DataTable->setColumnWidth ( 0 , 110 ); | ||
94 | DataTable->setColumnWidth ( 1 , 110 ); | ||
87 | } | 95 | } |
88 | 96 | ||
89 | OxydataTable::OxydataTable(int numRows, int numCols, QWidget *parent, | 97 | OxydataTable::OxydataTable(int numRows, int numCols, QWidget *parent, |
diff --git a/noncore/apps/oxygen/dataTable.h b/noncore/apps/oxygen/dataTable.h index a4a3b18..f2eb71d 100644 --- a/noncore/apps/oxygen/dataTable.h +++ b/noncore/apps/oxygen/dataTable.h | |||
@@ -34,10 +34,11 @@ class OxydataWidget : public QWidget | |||
34 | OxydataWidget(QWidget *parent=0); | 34 | OxydataWidget(QWidget *parent=0); |
35 | 35 | ||
36 | QLabel *left, *middle, *right; | 36 | QLabel *left, *middle, *right; |
37 | void setLayout(); | ||
37 | 38 | ||
38 | private: | 39 | private: |
39 | OxydataTable *DataTable; | ||
40 | void setTable() const; | 40 | void setTable() const; |
41 | OxydataTable *DataTable; | ||
41 | 42 | ||
42 | public slots: | 43 | public slots: |
43 | void setElement( int ); | 44 | void setElement( int ); |
diff --git a/noncore/apps/oxygen/datawidgetui.cpp b/noncore/apps/oxygen/datawidgetui.cpp index c7afa32..99c4fd7 100644 --- a/noncore/apps/oxygen/datawidgetui.cpp +++ b/noncore/apps/oxygen/datawidgetui.cpp | |||
@@ -45,6 +45,7 @@ dataWidgetUI::dataWidgetUI() : QWidget() | |||
45 | OxydataWidget *oxyDW = new OxydataWidget(this); | 45 | OxydataWidget *oxyDW = new OxydataWidget(this); |
46 | connect ( dataCombo, SIGNAL( activated(int) ), oxyDW, SLOT( setElement(int) ) ); | 46 | connect ( dataCombo, SIGNAL( activated(int) ), oxyDW, SLOT( setElement(int) ) ); |
47 | oxyDW->setElement( 0 ); | 47 | oxyDW->setElement( 0 ); |
48 | oxyDW->setLayout(); | ||
48 | 49 | ||
49 | qgrid->addWidget( dataCombo, 0,0); | 50 | qgrid->addWidget( dataCombo, 0,0); |
50 | qgrid->addWidget( oxyDW , 1,0 ); | 51 | qgrid->addWidget( oxyDW , 1,0 ); |
diff --git a/noncore/apps/oxygen/psewidget.cpp b/noncore/apps/oxygen/psewidget.cpp index ba9b71a..18b41c3 100644 --- a/noncore/apps/oxygen/psewidget.cpp +++ b/noncore/apps/oxygen/psewidget.cpp | |||
@@ -49,6 +49,7 @@ PSEWidget::PSEWidget() : QWidget() | |||
49 | 49 | ||
50 | oxyDW = new OxydataWidget(this); | 50 | oxyDW = new OxydataWidget(this); |
51 | oxyDW->setElement( 0 ); | 51 | oxyDW->setElement( 0 ); |
52 | oxyDW->setLayout(); | ||
52 | 53 | ||
53 | vlay->addLayout( grid ); | 54 | vlay->addLayout( grid ); |
54 | vlay->addWidget( oxyDW ); | 55 | vlay->addWidget( oxyDW ); |