添加CMakelist.txt的改动

This commit is contained in:
liudun 2024-02-04 11:25:21 +08:00
parent 463122af71
commit 7f36e1e3a4
3 changed files with 24 additions and 0 deletions

View File

@ -77,6 +77,7 @@ set(EXTRA_LIBS
-lrt
-lpthread
-llibnm-icon-kylin
-lukuiinputgatherclient
)
#qt5_wrap_ui(dialog_SRC
@ -162,6 +163,8 @@ set(backend_SRC
dbusifs/freedesktophelper.cpp
dbusifs/giodbus.cpp
dbusifs/kglobalaccelhelper.cpp
dbusifs/machinemodel.cpp
dbusifs/libinputswitchevent.cpp
userinfo.cpp
agreementinfo.cpp
common/global_utils.cpp
@ -182,6 +185,7 @@ target_link_libraries(ukui-screensaver-backend
ukui-log4qt
-ldl
-lcrypto
-lukuiinputgatherclient
)
set(command_SRC

View File

@ -403,6 +403,11 @@ void LockDialogModel::onUsdMediaKeysChanged(const QString &key, const QString &v
Q_EMIT usdMediaKeysChanged(key, value);
}
void LockDialogModel::onTabletModeChanged(bool tabletMode)
{
Q_EMIT tabletModeChanged(tabletMode);
}
void LockDialogModel::updateCapslockState(bool capslockState)
{
m_capslockState = capslockState;
@ -522,3 +527,8 @@ void LockDialogModel::updateLoggedInUsersCount()
}
}
}
void LockDialogModel::updateTabletMode(bool tabletMode)
{
m_tabletMode = tabletMode;
}

View File

@ -102,6 +102,8 @@ public:
void updateShutdownLockcheck(QStringList shutdownLockcheck);
void updateLoggedInUsersCount();
void updateTabletMode(bool tabletMode);
/**
* @brief
*
@ -194,6 +196,8 @@ public:
inline bool getLockEnabled() {return m_lockEnabled; }
inline bool getTabletMode() { return m_tabletMode; }
public Q_SLOTS:
/**
* @brief
@ -234,6 +238,8 @@ public Q_SLOTS:
void onThemeStyleConfChanged(const QString &key, QVariant value);
void onTabletModeChanged(bool tabletMode);
Q_SIGNALS:
/**
* @brief
@ -358,6 +364,8 @@ Q_SIGNALS:
QString getPublicEncrypt();
bool sendPassword(const QString username,QByteArray password);
void tabletModeChanged(bool tabletMode);
private:
QString getXScreensaverPath(const QString &theme);
private:
@ -397,6 +405,8 @@ private:
int m_lockTimeout = 10;
bool m_lockEnabled = true;
double m_curFontSize;
bool m_tabletMode = false;
};
#endif // LOCKDIALOGMODEL_H