Remove function to judge strict mode
This commit is contained in:
parent
168cb81270
commit
beaa2a7773
|
@ -15,7 +15,6 @@ Build-Depends: debhelper-compat (= 12),
|
|||
libkf5windowsystem-dev,
|
||||
libx11-dev,
|
||||
libqt5svg5-dev,
|
||||
libkysec-dev,
|
||||
Standards-Version: 4.5.0
|
||||
Rules-Requires-Root: no
|
||||
Homepage: https://github.com/ukui/kylin-nm
|
||||
|
|
|
@ -15,11 +15,12 @@ LANGUAGE = C++
|
|||
CONFIG += c++14
|
||||
CONFIG += qt warn_on
|
||||
CONFIG += release
|
||||
CONFIG += link_pkgconfig
|
||||
#CONFIG += link_pkgconfig
|
||||
|
||||
PKGCONFIG += glib-2.0 gio-2.0 gsettings-qt
|
||||
#PKGCONFIG += glib-2.0 gio-2.0 gsettings-qt
|
||||
|
||||
LIBS += -L/usr/lib/ -lgsettings-qt -lX11 -lkysec
|
||||
LIBS += -L/usr/lib/ -lgsettings-qt -lX11
|
||||
#LIBS += -lkysec
|
||||
|
||||
target.path = /usr/bin
|
||||
target.source += $$TARGET
|
||||
|
|
|
@ -2097,22 +2097,24 @@ QString MainWindow::getMacByUuid(QString uuidName)
|
|||
|
||||
void MainWindow::on_btnAdvConf_clicked()
|
||||
{
|
||||
if (!kysec_is_disabled() && kysec_get_3adm_status()) {
|
||||
//三权分立启用的操作
|
||||
qDebug() << "三权分立启用的操作------>";
|
||||
QMessageBox msgBox;
|
||||
msgBox.setWindowTitle(QObject::tr("kylin-nm"));
|
||||
msgBox.setIcon(QMessageBox::Warning);
|
||||
msgBox.setText(QObject::tr("Insufficient permissions"));
|
||||
msgBox.addButton(QMessageBox::Ok);
|
||||
msgBox.button(QMessageBox::Ok)->setText(QObject::tr("OK"));
|
||||
msgBox.exec();
|
||||
} else {
|
||||
//三权分立未启用的操作
|
||||
qDebug() << "三权分立未启用的操作";
|
||||
QProcess *qprocess = new QProcess(this);
|
||||
qprocess->start("nm-connection-editor &");
|
||||
}
|
||||
// if (!kysec_is_disabled() && kysec_get_3adm_status()) {
|
||||
// //三权分立启用的操作
|
||||
// qDebug() << "三权分立启用的操作------>";
|
||||
// QMessageBox msgBox;
|
||||
// msgBox.setWindowTitle(QObject::tr("kylin-nm"));
|
||||
// msgBox.setIcon(QMessageBox::Warning);
|
||||
// msgBox.setText(QObject::tr("Insufficient permissions"));
|
||||
// msgBox.addButton(QMessageBox::Ok);
|
||||
// msgBox.button(QMessageBox::Ok)->setText(QObject::tr("OK"));
|
||||
// msgBox.exec();
|
||||
// } else {
|
||||
// //三权分立未启用的操作
|
||||
// qDebug() << "三权分立未启用的操作";
|
||||
// QProcess *qprocess = new QProcess(this);
|
||||
// qprocess->start("nm-connection-editor &");
|
||||
// }
|
||||
QProcess *qprocess = new QProcess(this);
|
||||
qprocess->start("nm-connection-editor &");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -63,9 +63,9 @@
|
|||
#include <QStringList>
|
||||
#include <QToolTip>
|
||||
#include <QSvgRenderer>
|
||||
#include <kysec/libkysec.h>
|
||||
#include <kysec/status.h>
|
||||
#include <QMessageBox>
|
||||
//#include <kysec/libkysec.h>
|
||||
//#include <kysec/status.h>
|
||||
//#include <QMessageBox>
|
||||
|
||||
#define W_LEFT_AREA 41
|
||||
#define W_VERTICAL_LINE 1 //左边竖线宽度
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
|
||||
/* qt会将glib里的signals成员识别为宏,所以取消该宏
|
||||
* 后面如果用到signals时,使用Q_SIGNALS代替即可
|
||||
**/
|
||||
*
|
||||
#ifdef signals
|
||||
#undef signals
|
||||
#endif
|
||||
|
@ -50,7 +50,7 @@ extern "C" {
|
|||
#include <glib.h>
|
||||
#include <gio/gio.h>
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// The Utils class, used to do some assist function
|
||||
|
|
Loading…
Reference in New Issue