-
Notifications
You must be signed in to change notification settings - Fork 1
/
form.cpp
43 lines (41 loc) · 1.06 KB
/
form.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
37
38
39
40
41
42
43
#include "form.h"
#include "ui_form.h"
Form::Form(QWidget *parent) :
QWidget(parent),
ui(new Ui::Form)
{
ui->setupUi(this);
}
Form::~Form()
{
delete ui;
}
void Form::print(QString a, QStringList lista)
{
//hailtiin ur dung hevleh
ui->listWidget->clear();
QRegExp regExp(a, Qt::CaseInsensitive, QRegExp::Wildcard);
ui->listWidget->addItems(lista.filter(regExp));
}
void Form::printSize(QStringList list)
{
//hemjeeger haisan ur dung hevleh
ui->listWidget->clear();
ui->listWidget->addItems(list);
}
void Form::statusChange(QString a, int protocolcount)
{
ui->label->setText(QString::fromUtf8("Нийт: ") +
QString::number(protocolcount) +
QString::fromUtf8(" ") +
a +
QString::fromUtf8(" пакет баригдсан"));
}
void Form::searchChange(QString a, int sizesearch)
{
ui->label->setText(a + QString::fromUtf8(" Хэмжээтэй пакет: ") + QString::number(sizesearch));
}
void Form::ipsearch()
{
ui->label->setText("");
}