91 lines
2.3 KiB
C++
91 lines
2.3 KiB
C++
/*
|
|
* Copyright (C) 2020 Tianjin KYLIN Information Technology Co., Ltd.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 3, or (at your option)
|
|
* any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
#ifndef DLGCONNHIDWIFIWPA_H
|
|
#define DLGCONNHIDWIFIWPA_H
|
|
|
|
#include <QDialog>
|
|
#include <QMouseEvent>
|
|
#include <QThread>
|
|
|
|
class KylinNM;
|
|
|
|
namespace Ui {
|
|
class DlgConnHidWifiWpa;
|
|
}
|
|
|
|
class DlgConnHidWifiWpa : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit DlgConnHidWifiWpa(int type, KylinNM *mw = 0, QWidget *parent = 0);
|
|
~DlgConnHidWifiWpa();
|
|
|
|
protected:
|
|
void paintEvent(QPaintEvent *event);
|
|
|
|
/**解决锁屏设置 X11BypassWindowManagerHint 属性导致QCombox弹框异常的问题---START----
|
|
** 手动绑定下拉框视图和下拉框 过滤点击事件
|
|
**/
|
|
bool eventFilter(QObject *obj, QEvent *ev) override;
|
|
|
|
public slots:
|
|
void changeDialog();
|
|
void changeWindow();
|
|
void emitSignal();
|
|
void on_execSecConn();
|
|
void slotStartLoading();
|
|
|
|
private slots:
|
|
void on_btnCancel_clicked();
|
|
|
|
void on_btnConnect_clicked();
|
|
|
|
void on_checkBoxPwd_stateChanged(int arg1);
|
|
|
|
void on_leNetName_textEdited(const QString &arg1);
|
|
|
|
void on_lePassword_textEdited(const QString &arg1);
|
|
|
|
signals:
|
|
void reSetWifiList();
|
|
void sendMessage();
|
|
void execSecConn();
|
|
void stopSignal();
|
|
|
|
private:
|
|
Ui::DlgConnHidWifiWpa *ui;
|
|
int isUsed;//=0 current wifi not used before; >=1 used
|
|
KylinNM *mw;
|
|
QString strWifiname;
|
|
QString strWifiPassword;
|
|
|
|
void mousePressEvent(QMouseEvent *event);
|
|
void mouseReleaseEvent(QMouseEvent *event);
|
|
void mouseMoveEvent(QMouseEvent *event);
|
|
|
|
// QString labelQss, cbxQss, leQss, btnConnQss, btnCancelQss, lineQss, checkBoxQss;
|
|
|
|
bool isPress;
|
|
QPoint winPos;
|
|
QPoint dragPos;
|
|
};
|
|
|
|
#endif // DLGCONNHIDWIFIWPA_H
|