-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemployedotherworkers.cpp
36 lines (32 loc) · 985 Bytes
/
employedotherworkers.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "employedotherworkers.h"
#include "ui_employedotherworkers.h"
#include "searchemployedotherworker.h"
EmployedOtherWorkers::EmployedOtherWorkers(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::EmployedOtherWorkers)
{
ui->setupUi(this);
m_pSearchEmployedOtherWorkerForm = new SearchEmployedOtherWorker(this);
}
EmployedOtherWorkers::~EmployedOtherWorkers()
{
delete ui;
delete m_pSearchEmployedOtherWorkerForm;
}
void EmployedOtherWorkers::showSearchEmployedOtherWorkerForm()
{
m_pSearchEmployedOtherWorkerForm->show();
}
void EmployedOtherWorkers::addTableWidgetRows(int counter, QString *arrayData)
{
ui->tableWidget->setRowCount(counter + 1);
for (int i = counter; i == counter; i++)
{
for (int j = 0; j < 4; j++)
{
QTableWidgetItem *pItem = new QTableWidgetItem();
pItem->setText(QString(arrayData[j]).arg(i).arg(j));
ui->tableWidget->setItem(i, j, pItem);
}
}
}