mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-02 15:45:21 +00:00
chore: cppcheck修复
按照gerrit编译的警告去除对应信息 Log: Change-Id: Iec48357bcb3d9a98bccc74f9b09d7530d1d037b5
This commit is contained in:
parent
95aabc0a2f
commit
d45662f1e6
@ -1090,8 +1090,8 @@ void MultiScreenWorker::displayAnimation(const QString &screen, AniAction act)
|
||||
|
||||
/**
|
||||
* @brief changeDockPosition 做一个动画操作
|
||||
* @param lastScreen 上次任务栏所在的屏幕
|
||||
* @param deskScreen 任务栏要移动到的屏幕
|
||||
* @param fromScreen 上次任务栏所在的屏幕
|
||||
* @param toScreen 任务栏要移动到的屏幕
|
||||
* @param fromPos 任务栏上次的方向
|
||||
* @param toPos 任务栏打算移动到的方向
|
||||
*/
|
||||
|
@ -76,9 +76,9 @@ public:
|
||||
, m_lastScreen(primary)
|
||||
, m_primary(primary)
|
||||
{}
|
||||
inline const QString ¤t() {return m_currentScreen;}
|
||||
inline const QString &last() {return m_lastScreen;}
|
||||
inline const QString &primary() {return m_primary;}
|
||||
inline const QString ¤t() const {return m_currentScreen;}
|
||||
inline const QString &last() const {return m_lastScreen;}
|
||||
inline const QString &primary() const {return m_primary;}
|
||||
|
||||
void updateDockedScreen(const QString &screenName)
|
||||
{
|
||||
|
@ -96,7 +96,7 @@ private Q_SLOTS:
|
||||
void onSNIMenuChanged(const QDBusObjectPath &value);
|
||||
void onSNIOverlayIconNameChanged(const QString &value);
|
||||
void onSNIOverlayIconPixmapChanged(DBusImageList value);
|
||||
void onSNIStatusChanged(const QString &value);
|
||||
void onSNIStatusChanged(const QString &status);
|
||||
void hidePopup();
|
||||
void hideNonModel();
|
||||
void popupWindowAccept();
|
||||
|
@ -28,7 +28,9 @@
|
||||
|
||||
#include "../widgets/tipswidget.h"
|
||||
|
||||
namespace Dock {
|
||||
using namespace ::testing;
|
||||
using namespace Dock;
|
||||
|
||||
class Test_TipsWidget : public ::testing::Test
|
||||
{
|
||||
public:
|
||||
@ -81,4 +83,3 @@ TEST_F(Test_TipsWidget, setTextList_test)
|
||||
qApp->sendEvent(tipsWidget, &event);
|
||||
QTest::qWait(10);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user