GenerateReport::GenerateReport(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::GenerateReport)
{
    ui->setupUi(this);
    this->setWindowTitle("Generate Report");
    connect(ui->closeButton,SIGNAL(clicked()),this,SLOT(closeButtonSlot()));
}
int UpdateWaitingList::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QDialog::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0:
            closeButtonSlot();
            break;
        default:
            ;
        }
        _id -= 1;
    }
    return _id;
}
Beispiel #3
0
LogIn::LogIn(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::LogIn)
{
    ui->setupUi(this);
    this->setWindowFlags(Qt::FramelessWindowHint);        //设置窗体标题栏隐藏
    this->loginButtonInit();                              //关闭按钮效果初始化
    this->loginLineEditInit();                            //账号和密码LineEdit初始化
    this->animationOpen();                                //登陆时开启动画
    this->loginCreateTrayIcon();                          //创建托盘
    this->readSaveFileName();                             //读取sysconfig.xml

    //绑定
    connect(ui->closeButton,SIGNAL(clicked()),this,SLOT(closeButtonSlot()));
    connect(ui->cancelButton,SIGNAL(clicked()),this,SLOT(cancelButtonSlot()));
    connect(ui->submitButton,SIGNAL(clicked()),this,SLOT(submitButtonSlot()));

}