13 * |
13 * |
14 * You should have received a copy of the GNU General Public License |
14 * You should have received a copy of the GNU General Public License |
15 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 */ |
16 */ |
17 #include "CalibrateiSpindel.h" |
17 #include "CalibrateiSpindel.h" |
18 #include "../ui/ui_CalibrateiSpindel.h" |
|
19 #include "global.h" |
18 #include "global.h" |
20 #include "Utils.h" |
19 #include "Utils.h" |
21 #include "MainWindow.h" |
20 #include "MainWindow.h" |
22 |
21 |
23 |
22 |
27 QSqlQuery query; |
26 QSqlQuery query; |
28 |
27 |
29 #ifdef DEBUG_MONITOR |
28 #ifdef DEBUG_MONITOR |
30 qDebug() << "CalibrateiSpindel record:" << id; |
29 qDebug() << "CalibrateiSpindel record:" << id; |
31 #endif |
30 #endif |
32 ui->setupUi(this); |
|
33 this->recno = id; |
|
34 setWindowFlags(Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint); |
|
35 setWindowTitle(tr("BMSapp - Calibrate iSpindel")); |
|
36 |
31 |
37 connect(parent, SIGNAL(updateiSpindel(QString)), this, SLOT(refreshiSpindel(QString))); |
32 gridLayout = new QGridLayout(this); |
38 emit refreshTable(); |
33 gridLayout->setObjectName(QString::fromUtf8("gridLayout")); |
|
34 tableCalData = new QTableWidget(this); |
|
35 tableCalData->setObjectName(QString::fromUtf8("tableCalData")); |
|
36 tableCalData->setEnabled(true); |
|
37 QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Expanding); |
|
38 sizePolicy.setHorizontalStretch(0); |
|
39 sizePolicy.setVerticalStretch(0); |
|
40 tableCalData->setSizePolicy(sizePolicy); |
|
41 tableCalData->setMinimumSize(QSize(1024, 0)); |
|
42 gridLayout->addWidget(tableCalData, 0, 0, 1, 1); |
|
43 |
|
44 // ui->setupUi(this); |
|
45 // this->recno = id; |
|
46 // setWindowFlags(Qt::Window | Qt::WindowTitleHint | Qt::CustomizeWindowHint); |
|
47 // setWindowTitle(tr("BMSapp - Calibrate iSpindel")); |
|
48 |
|
49 // connect(parent, SIGNAL(updateiSpindel(QString)), this, SLOT(refreshiSpindel(QString))); |
|
50 // emit refreshTable(); |
39 } |
51 } |
40 |
52 |
41 |
53 |
42 void CalibrateiSpindel::refreshTable() |
54 void CalibrateiSpindel::refreshTable() |
43 { |
55 { |