hlp:桂林国际齿轮泵代码
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,246 @@
|
||||
/****************************************************************************
|
||||
** Meta object code from reading C++ file 'PicEdit.h'
|
||||
**
|
||||
** Created by: The Qt Meta Object Compiler version 63 (Qt 4.8.5)
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost!
|
||||
*****************************************************************************/
|
||||
|
||||
#include "../PicEdit.h"
|
||||
#if !defined(Q_MOC_OUTPUT_REVISION)
|
||||
#error "The header file 'PicEdit.h' doesn't include <QObject>."
|
||||
#elif Q_MOC_OUTPUT_REVISION != 63
|
||||
#error "This file was generated using the moc from 4.8.5. It"
|
||||
#error "cannot be used with the include files from this version of Qt."
|
||||
#error "(The moc has changed too much.)"
|
||||
#endif
|
||||
|
||||
QT_BEGIN_MOC_NAMESPACE
|
||||
static const uint qt_meta_data_PicEdit[] = {
|
||||
|
||||
// content:
|
||||
6, // revision
|
||||
0, // classname
|
||||
0, 0, // classinfo
|
||||
45, 14, // methods
|
||||
0, 0, // properties
|
||||
0, 0, // enums/sets
|
||||
0, 0, // constructors
|
||||
0, // flags
|
||||
4, // signalCount
|
||||
|
||||
// signals: signature, parameters, type, tag, flags
|
||||
11, 9, 8, 8, 0x05,
|
||||
41, 8, 8, 8, 0x05,
|
||||
65, 8, 8, 8, 0x05,
|
||||
84, 8, 8, 8, 0x05,
|
||||
|
||||
// slots: signature, parameters, type, tag, flags
|
||||
104, 8, 8, 8, 0x08,
|
||||
123, 118, 8, 8, 0x08,
|
||||
148, 8, 8, 8, 0x08,
|
||||
162, 8, 8, 8, 0x08,
|
||||
189, 8, 8, 8, 0x08,
|
||||
217, 8, 8, 8, 0x08,
|
||||
253, 244, 8, 8, 0x08,
|
||||
275, 8, 8, 8, 0x08,
|
||||
306, 8, 8, 8, 0x08,
|
||||
336, 8, 8, 8, 0x08,
|
||||
362, 8, 8, 8, 0x08,
|
||||
390, 8, 8, 8, 0x08,
|
||||
420, 8, 8, 8, 0x08,
|
||||
449, 8, 8, 8, 0x08,
|
||||
477, 8, 8, 8, 0x08,
|
||||
511, 509, 8, 8, 0x08,
|
||||
551, 8, 8, 8, 0x08,
|
||||
581, 8, 8, 8, 0x08,
|
||||
604, 8, 8, 8, 0x08,
|
||||
625, 8, 8, 8, 0x08,
|
||||
653, 8, 8, 8, 0x08,
|
||||
673, 8, 8, 8, 0x08,
|
||||
701, 8, 8, 8, 0x08,
|
||||
720, 8, 8, 8, 0x08,
|
||||
754, 750, 8, 8, 0x08,
|
||||
800, 794, 8, 8, 0x08,
|
||||
844, 8, 8, 8, 0x08,
|
||||
878, 8, 8, 8, 0x08,
|
||||
912, 8, 8, 8, 0x08,
|
||||
948, 8, 8, 8, 0x08,
|
||||
983, 8, 8, 8, 0x08,
|
||||
997, 8, 8, 8, 0x08,
|
||||
1031, 8, 8, 8, 0x08,
|
||||
1064, 8, 8, 8, 0x08,
|
||||
1094, 750, 8, 8, 0x08,
|
||||
1122, 1116, 8, 8, 0x08,
|
||||
1149, 1147, 8, 8, 0x08,
|
||||
1177, 1175, 8, 8, 0x08,
|
||||
1195, 8, 8, 8, 0x08,
|
||||
1229, 8, 8, 8, 0x08,
|
||||
1276, 1262, 8, 8, 0x09,
|
||||
|
||||
0 // eod
|
||||
};
|
||||
|
||||
static const char qt_meta_stringdata_PicEdit[] = {
|
||||
"PicEdit\0\0,\0openCurrentFile(QString,bool)\0"
|
||||
"zkEditEnStatus(QString)\0setMainTabNow(int)\0"
|
||||
"setMainTabEdit(int)\0ondlgDrawOK()\0"
|
||||
"auth\0updateAuthorization(int)\0"
|
||||
"cursorFlash()\0on_pushButtonEnd_pressed()\0"
|
||||
"on_pushButtonHome_pressed()\0"
|
||||
"on_pushButtonNew_pressed()\0fileName\0"
|
||||
"EditCurrFile(QString)\0"
|
||||
"on_pushButtonEnlarge_pressed()\0"
|
||||
"on_pushButtonReduce_pressed()\0"
|
||||
"on_pushButtonUp_pressed()\0"
|
||||
"on_pushButtonLeft_pressed()\0"
|
||||
"on_pushButtonEnsure_pressed()\0"
|
||||
"on_pushButtonRight_pressed()\0"
|
||||
"on_pushButtonDown_pressed()\0"
|
||||
"on_checkBoxDrawGridEn_clicked()\0i\0"
|
||||
"on_spinBoxHeightPoint_valueChanged(int)\0"
|
||||
"on_pushButtonSaveAs_clicked()\0"
|
||||
"onSaveAS_FIle_select()\0onSave_File_reject()\0"
|
||||
"on_pushButtonOpen_clicked()\0"
|
||||
"onOpenFIle_select()\0on_pushButtonSave_clicked()\0"
|
||||
"enableSaveButton()\0on_pushButtonImport_clicked()\0"
|
||||
"txt\0on_lineEditInputTxt_textEdited(QString)\0"
|
||||
"index\0on_comboBoxLattice_currentIndexChanged(int)\0"
|
||||
"on_pushButtonStartInput_clicked()\0"
|
||||
"on_pushButtonDeleteChar_clicked()\0"
|
||||
"on_radioButtonCharCurrent_clicked()\0"
|
||||
"on_radioButtonDotCurrent_clicked()\0"
|
||||
"showKeybord()\0on_pushButtonInsertVari_pressed()\0"
|
||||
"on_pushButtonCharSpace_pressed()\0"
|
||||
"on_pushButtonZKEdit_pressed()\0"
|
||||
"ChinaProview(QString)\0txt,m\0"
|
||||
"onFileOpen(QString,bool)\0s\0"
|
||||
"printThisFileNow(QString)\0n\0"
|
||||
"onChangeFont(int)\0on_pushButtonInsertMode_pressed()\0"
|
||||
"on_checkBoxControlChar_clicked()\0"
|
||||
"fileName,Flag\0onSaveASFile(QString,bool)\0"
|
||||
};
|
||||
|
||||
void PicEdit::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
Q_ASSERT(staticMetaObject.cast(_o));
|
||||
PicEdit *_t = static_cast<PicEdit *>(_o);
|
||||
switch (_id) {
|
||||
case 0: _t->openCurrentFile((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
|
||||
case 1: _t->zkEditEnStatus((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 2: _t->setMainTabNow((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 3: _t->setMainTabEdit((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 4: _t->ondlgDrawOK(); break;
|
||||
case 5: _t->updateAuthorization((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 6: _t->cursorFlash(); break;
|
||||
case 7: _t->on_pushButtonEnd_pressed(); break;
|
||||
case 8: _t->on_pushButtonHome_pressed(); break;
|
||||
case 9: _t->on_pushButtonNew_pressed(); break;
|
||||
case 10: _t->EditCurrFile((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 11: _t->on_pushButtonEnlarge_pressed(); break;
|
||||
case 12: _t->on_pushButtonReduce_pressed(); break;
|
||||
case 13: _t->on_pushButtonUp_pressed(); break;
|
||||
case 14: _t->on_pushButtonLeft_pressed(); break;
|
||||
case 15: _t->on_pushButtonEnsure_pressed(); break;
|
||||
case 16: _t->on_pushButtonRight_pressed(); break;
|
||||
case 17: _t->on_pushButtonDown_pressed(); break;
|
||||
case 18: _t->on_checkBoxDrawGridEn_clicked(); break;
|
||||
case 19: _t->on_spinBoxHeightPoint_valueChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 20: _t->on_pushButtonSaveAs_clicked(); break;
|
||||
case 21: _t->onSaveAS_FIle_select(); break;
|
||||
case 22: _t->onSave_File_reject(); break;
|
||||
case 23: _t->on_pushButtonOpen_clicked(); break;
|
||||
case 24: _t->onOpenFIle_select(); break;
|
||||
case 25: _t->on_pushButtonSave_clicked(); break;
|
||||
case 26: _t->enableSaveButton(); break;
|
||||
case 27: _t->on_pushButtonImport_clicked(); break;
|
||||
case 28: _t->on_lineEditInputTxt_textEdited((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 29: _t->on_comboBoxLattice_currentIndexChanged((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 30: _t->on_pushButtonStartInput_clicked(); break;
|
||||
case 31: _t->on_pushButtonDeleteChar_clicked(); break;
|
||||
case 32: _t->on_radioButtonCharCurrent_clicked(); break;
|
||||
case 33: _t->on_radioButtonDotCurrent_clicked(); break;
|
||||
case 34: _t->showKeybord(); break;
|
||||
case 35: _t->on_pushButtonInsertVari_pressed(); break;
|
||||
case 36: _t->on_pushButtonCharSpace_pressed(); break;
|
||||
case 37: _t->on_pushButtonZKEdit_pressed(); break;
|
||||
case 38: _t->ChinaProview((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 39: _t->onFileOpen((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
|
||||
case 40: _t->printThisFileNow((*reinterpret_cast< QString(*)>(_a[1]))); break;
|
||||
case 41: _t->onChangeFont((*reinterpret_cast< int(*)>(_a[1]))); break;
|
||||
case 42: _t->on_pushButtonInsertMode_pressed(); break;
|
||||
case 43: _t->on_checkBoxControlChar_clicked(); break;
|
||||
case 44: _t->onSaveASFile((*reinterpret_cast< QString(*)>(_a[1])),(*reinterpret_cast< bool(*)>(_a[2]))); break;
|
||||
default: ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const QMetaObjectExtraData PicEdit::staticMetaObjectExtraData = {
|
||||
0, qt_static_metacall
|
||||
};
|
||||
|
||||
const QMetaObject PicEdit::staticMetaObject = {
|
||||
{ &QWidget::staticMetaObject, qt_meta_stringdata_PicEdit,
|
||||
qt_meta_data_PicEdit, &staticMetaObjectExtraData }
|
||||
};
|
||||
|
||||
#ifdef Q_NO_DATA_RELOCATION
|
||||
const QMetaObject &PicEdit::getStaticMetaObject() { return staticMetaObject; }
|
||||
#endif //Q_NO_DATA_RELOCATION
|
||||
|
||||
const QMetaObject *PicEdit::metaObject() const
|
||||
{
|
||||
return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject;
|
||||
}
|
||||
|
||||
void *PicEdit::qt_metacast(const char *_clname)
|
||||
{
|
||||
if (!_clname) return 0;
|
||||
if (!strcmp(_clname, qt_meta_stringdata_PicEdit))
|
||||
return static_cast<void*>(const_cast< PicEdit*>(this));
|
||||
return QWidget::qt_metacast(_clname);
|
||||
}
|
||||
|
||||
int PicEdit::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
|
||||
{
|
||||
_id = QWidget::qt_metacall(_c, _id, _a);
|
||||
if (_id < 0)
|
||||
return _id;
|
||||
if (_c == QMetaObject::InvokeMetaMethod) {
|
||||
if (_id < 45)
|
||||
qt_static_metacall(this, _c, _id, _a);
|
||||
_id -= 45;
|
||||
}
|
||||
return _id;
|
||||
}
|
||||
|
||||
// SIGNAL 0
|
||||
void PicEdit::openCurrentFile(QString _t1, bool _t2)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 0, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 1
|
||||
void PicEdit::zkEditEnStatus(QString _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 1, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 2
|
||||
void PicEdit::setMainTabNow(int _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 2, _a);
|
||||
}
|
||||
|
||||
// SIGNAL 3
|
||||
void PicEdit::setMainTabEdit(int _t1)
|
||||
{
|
||||
void *_a[] = { 0, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
|
||||
QMetaObject::activate(this, &staticMetaObject, 3, _a);
|
||||
}
|
||||
QT_END_MOC_NAMESPACE
|
||||
@@ -0,0 +1,165 @@
|
||||
#include "dialogshowcounter.h"
|
||||
#include "ui_dialogshowcounter.h"
|
||||
#include <QDebug>
|
||||
|
||||
DialogShowCounter::DialogShowCounter(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::DialogShowCounter)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
cycle_flag = true;
|
||||
cycleTimecount = 0;
|
||||
savecnt1CurrValue = 0;
|
||||
|
||||
dialogcycleprint = new DialogCycleprint(parent);
|
||||
connect(dialogcycleprint,SIGNAL(accepted()),this,SLOT(ondialogcycleprintAccepted()));
|
||||
// ui->CycleprintpushButton->hide();
|
||||
setWindowFlags(Qt::FramelessWindowHint);
|
||||
}
|
||||
|
||||
DialogShowCounter::~DialogShowCounter()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void DialogShowCounter::init_arg()
|
||||
{
|
||||
dialogcycleprint->getSpinboxValue(cycleprintarg);
|
||||
|
||||
dialogcycleprint->SetSpinboxValue(cycleprintarg);
|
||||
|
||||
// qDebug()<<"[init_arg]cycleprintarg.area_end1="<<cycleprintarg.area_end1;
|
||||
}
|
||||
|
||||
void DialogShowCounter::refreshdate(int currCnt1Value, int cn1StartValue, int cn1EndValue,int currGroupIndex, int currGroupLoop/*当前循环次数*/)
|
||||
{
|
||||
#if 0
|
||||
if(bcdTodec < savecnt1CurrValue && cycle_flag){
|
||||
cycle_flag = false;
|
||||
cycleTimecount++;
|
||||
}else{
|
||||
savecnt1CurrValue = bcdTodec;
|
||||
cycle_flag = true;
|
||||
}
|
||||
|
||||
cycleprintarg.area_end1 = cn1EndValue;
|
||||
|
||||
if(cycleTimecount == cycleprintarg.cycle_time1){ //cycle time finish
|
||||
qDebug()<< "always here?";
|
||||
|
||||
int t_cycle_time1,area_end1;
|
||||
t_cycle_time1 = cycleprintarg.cycle_time1;
|
||||
area_end1 = cycleprintarg.area_end1;
|
||||
|
||||
cycleprintarg.cycle_time1 = cycleprintarg.cycle_time2;
|
||||
cycleprintarg.cycle_time2 = cycleprintarg.cycle_time3;
|
||||
cycleprintarg.cycle_time3 = cycleprintarg.cycle_time4;
|
||||
cycleprintarg.cycle_time4 = cycleprintarg.cycle_time5;
|
||||
cycleprintarg.cycle_time5 = cycleprintarg.cycle_time6;
|
||||
cycleprintarg.cycle_time6 = t_cycle_time1;
|
||||
|
||||
cycleprintarg.area_end1 = cycleprintarg.area_end2;
|
||||
cycleprintarg.area_end2 = cycleprintarg.area_end3;
|
||||
cycleprintarg.area_end3 = cycleprintarg.area_end4;
|
||||
cycleprintarg.area_end4 = cycleprintarg.area_end5;
|
||||
cycleprintarg.area_end5 = cycleprintarg.area_end6;
|
||||
cycleprintarg.area_end6 = area_end1;
|
||||
|
||||
dialogcycleprint->SetSpinboxValue(cycleprintarg);
|
||||
|
||||
|
||||
// emit set_count_endvalue(cycleprintarg.cycle_time1, cycleprintarg.area_end1);
|
||||
}
|
||||
#endif
|
||||
|
||||
// 当前米标
|
||||
// QString temp_str = QString::number(metre);
|
||||
ui->lcdNumber->display(currCnt1Value);
|
||||
|
||||
// 结束值
|
||||
// temp_str = QString::number(cn1EndValue);
|
||||
ui->lcdCycleEndNumber->display(cn1EndValue);
|
||||
|
||||
// 起始值
|
||||
// temp_str = QString::number(cn1StartValue);
|
||||
ui->lcdCycleStartNumber->display(cn1StartValue);
|
||||
|
||||
// 循环
|
||||
//// cycleTimecount = cycle_count;
|
||||
// temp_str = QString::number(cycleTimecount);
|
||||
ui->lcdCycleTimeNumber->display(currGroupLoop + 1);
|
||||
|
||||
// 剩余米数
|
||||
// lcd_number = cn1EndValue - metre;
|
||||
// temp_str = QString::number(lcd_number);
|
||||
int remainValue = cn1EndValue - currCnt1Value;
|
||||
ui->lcdLessNumber->display(remainValue);
|
||||
|
||||
}
|
||||
|
||||
void DialogShowCounter::setLCDframe()
|
||||
{
|
||||
ui->lcdNumber->setDigitCount(4);
|
||||
ui->lcdNumber->setMode(QLCDNumber::Dec);
|
||||
ui->lcdNumber->setSegmentStyle(QLCDNumber::Flat);
|
||||
QPalette lcdpat = ui->lcdNumber->palette();
|
||||
lcdpat.setColor(QPalette::Normal, QPalette::WindowText, Qt::red);
|
||||
ui->lcdNumber->setPalette(lcdpat);
|
||||
|
||||
ui->lcdCycleEndNumber->setDigitCount(4);
|
||||
ui->lcdCycleEndNumber->setMode(QLCDNumber::Dec);
|
||||
ui->lcdCycleEndNumber->setSegmentStyle(QLCDNumber::Flat);
|
||||
lcdpat = ui->lcdCycleEndNumber->palette();
|
||||
lcdpat.setColor(QPalette::Normal, QPalette::WindowText, Qt::red);
|
||||
ui->lcdCycleEndNumber->setPalette(lcdpat);
|
||||
|
||||
ui->lcdCycleStartNumber->setDigitCount(4);
|
||||
ui->lcdCycleStartNumber->setMode(QLCDNumber::Dec);
|
||||
ui->lcdCycleStartNumber->setSegmentStyle(QLCDNumber::Flat);
|
||||
lcdpat = ui->lcdCycleStartNumber->palette();
|
||||
lcdpat.setColor(QPalette::Normal, QPalette::WindowText, Qt::red);
|
||||
ui->lcdCycleStartNumber->setPalette(lcdpat);
|
||||
|
||||
ui->lcdCycleTimeNumber->setDigitCount(4);
|
||||
ui->lcdCycleTimeNumber->setMode(QLCDNumber::Dec);
|
||||
ui->lcdCycleTimeNumber->setSegmentStyle(QLCDNumber::Flat);
|
||||
lcdpat = ui->lcdCycleTimeNumber->palette();
|
||||
lcdpat.setColor(QPalette::Normal, QPalette::WindowText, Qt::red);
|
||||
ui->lcdCycleTimeNumber->setPalette(lcdpat);
|
||||
|
||||
ui->lcdLessNumber->setDigitCount(4);
|
||||
ui->lcdLessNumber->setMode(QLCDNumber::Dec);
|
||||
ui->lcdLessNumber->setSegmentStyle(QLCDNumber::Flat);
|
||||
lcdpat = ui->lcdLessNumber->palette();
|
||||
lcdpat.setColor(QPalette::Normal, QPalette::WindowText, Qt::red);
|
||||
ui->lcdLessNumber->setPalette(lcdpat);
|
||||
|
||||
}
|
||||
|
||||
int DialogShowCounter::getResetMetreState(int &area_end)
|
||||
{
|
||||
int t_reset;
|
||||
t_reset = reset_meter;
|
||||
reset_meter = false;
|
||||
|
||||
//qDebug()<<"cycleprintarg.area_end1="<<cycleprintarg.area_end1;
|
||||
area_end = cycleprintarg.area_end1;
|
||||
|
||||
return t_reset;
|
||||
}
|
||||
|
||||
void DialogShowCounter::on_pushButton_clicked()
|
||||
{
|
||||
reset_meter = true;
|
||||
}
|
||||
|
||||
void DialogShowCounter::ondialogcycleprintAccepted()
|
||||
{
|
||||
dialogcycleprint->getSpinboxValue(cycleprintarg);
|
||||
}
|
||||
|
||||
void DialogShowCounter::on_CycleprintpushButton_clicked()
|
||||
{
|
||||
dialogcycleprint->show();
|
||||
}
|
||||
@@ -0,0 +1,97 @@
|
||||
/********************************************************************************
|
||||
** Form generated from reading UI file 'dlgmywarring.ui'
|
||||
**
|
||||
** Created by: Qt User Interface Compiler version 4.8.5
|
||||
**
|
||||
** WARNING! All changes made in this file will be lost when recompiling UI file!
|
||||
********************************************************************************/
|
||||
|
||||
#ifndef UI_DLGMYWARRING_H
|
||||
#define UI_DLGMYWARRING_H
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
#include <QtGui/QAction>
|
||||
#include <QtGui/QApplication>
|
||||
#include <QtGui/QButtonGroup>
|
||||
#include <QtGui/QDialog>
|
||||
#include <QtGui/QHeaderView>
|
||||
#include <QtGui/QLabel>
|
||||
#include <QtGui/QPushButton>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class Ui_DlgMyWarring
|
||||
{
|
||||
public:
|
||||
QLabel *label;
|
||||
QPushButton *pushButtonOK;
|
||||
QLabel *labelTitle;
|
||||
|
||||
void setupUi(QDialog *DlgMyWarring)
|
||||
{
|
||||
if (DlgMyWarring->objectName().isEmpty())
|
||||
DlgMyWarring->setObjectName(QString::fromUtf8("DlgMyWarring"));
|
||||
DlgMyWarring->resize(464, 213);
|
||||
QIcon icon;
|
||||
icon.addFile(QString::fromUtf8(":/icon/a9.ico"), QSize(), QIcon::Normal, QIcon::Off);
|
||||
DlgMyWarring->setWindowIcon(icon);
|
||||
label = new QLabel(DlgMyWarring);
|
||||
label->setObjectName(QString::fromUtf8("label"));
|
||||
label->setGeometry(QRect(20, 40, 431, 111));
|
||||
QPalette palette;
|
||||
QBrush brush(QColor(0, 85, 255, 255));
|
||||
brush.setStyle(Qt::SolidPattern);
|
||||
palette.setBrush(QPalette::Active, QPalette::WindowText, brush);
|
||||
palette.setBrush(QPalette::Inactive, QPalette::WindowText, brush);
|
||||
QBrush brush1(QColor(150, 147, 140, 255));
|
||||
brush1.setStyle(Qt::SolidPattern);
|
||||
palette.setBrush(QPalette::Disabled, QPalette::WindowText, brush1);
|
||||
label->setPalette(palette);
|
||||
QFont font;
|
||||
font.setPointSize(12);
|
||||
label->setFont(font);
|
||||
label->setMidLineWidth(5);
|
||||
label->setAlignment(Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter);
|
||||
label->setWordWrap(true);
|
||||
label->setMargin(0);
|
||||
pushButtonOK = new QPushButton(DlgMyWarring);
|
||||
pushButtonOK->setObjectName(QString::fromUtf8("pushButtonOK"));
|
||||
pushButtonOK->setGeometry(QRect(310, 170, 93, 27));
|
||||
labelTitle = new QLabel(DlgMyWarring);
|
||||
labelTitle->setObjectName(QString::fromUtf8("labelTitle"));
|
||||
labelTitle->setGeometry(QRect(10, 10, 441, 31));
|
||||
QPalette palette1;
|
||||
QBrush brush2(QColor(255, 0, 0, 255));
|
||||
brush2.setStyle(Qt::SolidPattern);
|
||||
palette1.setBrush(QPalette::Active, QPalette::WindowText, brush2);
|
||||
palette1.setBrush(QPalette::Inactive, QPalette::WindowText, brush2);
|
||||
palette1.setBrush(QPalette::Disabled, QPalette::WindowText, brush1);
|
||||
labelTitle->setPalette(palette1);
|
||||
QFont font1;
|
||||
font1.setPointSize(16);
|
||||
labelTitle->setFont(font1);
|
||||
labelTitle->setAlignment(Qt::AlignCenter);
|
||||
labelTitle->setWordWrap(true);
|
||||
|
||||
retranslateUi(DlgMyWarring);
|
||||
|
||||
QMetaObject::connectSlotsByName(DlgMyWarring);
|
||||
} // setupUi
|
||||
|
||||
void retranslateUi(QDialog *DlgMyWarring)
|
||||
{
|
||||
DlgMyWarring->setWindowTitle(QApplication::translate("DlgMyWarring", "\350\255\246\345\221\212", 0, QApplication::UnicodeUTF8));
|
||||
label->setText(QString());
|
||||
pushButtonOK->setText(QApplication::translate("DlgMyWarring", "\347\241\256\345\256\232", 0, QApplication::UnicodeUTF8));
|
||||
labelTitle->setText(QApplication::translate("DlgMyWarring", "TextLabel", 0, QApplication::UnicodeUTF8));
|
||||
} // retranslateUi
|
||||
|
||||
};
|
||||
|
||||
namespace Ui {
|
||||
class DlgMyWarring: public Ui_DlgMyWarring {};
|
||||
} // namespace Ui
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // UI_DLGMYWARRING_H
|
||||
Reference in New Issue
Block a user