mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
fix: build warning
Change-Id: I57b1e5a68f699fface1ed542813791013020691e
This commit is contained in:
parent
63dc102939
commit
61197b9d3d
Notes:
gerrit
2018-12-05 12:33:00 +08:00
Verified+1: <jenkins@deepin.com> Code-Review+2: listenerri <listenerri@gmail.com> Submitted-by: listenerri <listenerri@gmail.com> Submitted-at: Wed, 05 Dec 2018 12:32:59 +0800 Reviewed-on: https://cr.deepin.io/40280 Project: dde/dde-dock Branch: refs/heads/master
@ -55,7 +55,7 @@ public:
|
|||||||
QWidget *appDragWidget();
|
QWidget *appDragWidget();
|
||||||
void setDockInfo(Dock::Position dockPosition, const QRect &dockGeometry);
|
void setDockInfo(Dock::Position dockPosition, const QRect &dockGeometry);
|
||||||
|
|
||||||
inline ItemType itemType() const { return App; }
|
inline ItemType itemType() const Q_DECL_OVERRIDE { return App; }
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void requestActivateWindow(const WId wid) const;
|
void requestActivateWindow(const WId wid) const;
|
||||||
@ -77,17 +77,17 @@ private:
|
|||||||
void leaveEvent(QEvent *e) override;
|
void leaveEvent(QEvent *e) override;
|
||||||
void showEvent(QShowEvent *e) override;
|
void showEvent(QShowEvent *e) override;
|
||||||
|
|
||||||
void showHoverTips();
|
void showHoverTips() Q_DECL_OVERRIDE;
|
||||||
void invokedMenuItem(const QString &itemId, const bool checked);
|
void invokedMenuItem(const QString &itemId, const bool checked) Q_DECL_OVERRIDE;
|
||||||
const QString contextMenu() const;
|
const QString contextMenu() const Q_DECL_OVERRIDE;
|
||||||
QWidget *popupTips();
|
QWidget *popupTips() Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
void startDrag();
|
void startDrag();
|
||||||
bool hasAttention() const;
|
bool hasAttention() const;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void updateWindowInfos(const WindowInfoMap &info);
|
void updateWindowInfos(const WindowInfoMap &info);
|
||||||
void refershIcon();
|
void refershIcon() Q_DECL_OVERRIDE;
|
||||||
void activeChanged();
|
void activeChanged();
|
||||||
void showPreview();
|
void showPreview();
|
||||||
void cancelAndHidePreview();
|
void cancelAndHidePreview();
|
||||||
|
@ -236,7 +236,6 @@ void AppSnapshot::paintEvent(QPaintEvent *e)
|
|||||||
if (m_snapshot.isNull())
|
if (m_snapshot.isNull())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
const QRect r = rect().marginsRemoved(QMargins(8, 8, 8, 8));
|
|
||||||
const auto ratio = devicePixelRatioF();
|
const auto ratio = devicePixelRatioF();
|
||||||
|
|
||||||
// draw attention background
|
// draw attention background
|
||||||
|
@ -47,8 +47,8 @@ public:
|
|||||||
bool pluginIsAllowDisable() override { return true; }
|
bool pluginIsAllowDisable() override { return true; }
|
||||||
bool pluginIsDisable() override;
|
bool pluginIsDisable() override;
|
||||||
|
|
||||||
int itemSortKey(const QString &itemKey);
|
int itemSortKey(const QString &itemKey) Q_DECL_OVERRIDE;
|
||||||
void setSortKey(const QString &itemKey, const int order);
|
void setSortKey(const QString &itemKey, const int order) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
QWidget *itemWidget(const QString &itemKey) override;
|
QWidget *itemWidget(const QString &itemKey) override;
|
||||||
QWidget *itemTipsWidget(const QString &itemKey) override;
|
QWidget *itemTipsWidget(const QString &itemKey) override;
|
||||||
|
@ -55,8 +55,8 @@ public:
|
|||||||
const QString itemContextMenu(const QString &itemKey) override;
|
const QString itemContextMenu(const QString &itemKey) override;
|
||||||
void invokedMenuItem(const QString &itemKey, const QString &menuId, const bool checked) override;
|
void invokedMenuItem(const QString &itemKey, const QString &menuId, const bool checked) override;
|
||||||
|
|
||||||
int itemSortKey(const QString &itemKey);
|
int itemSortKey(const QString &itemKey) Q_DECL_OVERRIDE;
|
||||||
void setSortKey(const QString &itemKey, const int order);
|
void setSortKey(const QString &itemKey, const int order) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void updateBatteryVisible();
|
void updateBatteryVisible();
|
||||||
|
@ -52,8 +52,8 @@ public:
|
|||||||
void invokedMenuItem(const QString &itemKey, const QString &menuId, const bool checked) override;
|
void invokedMenuItem(const QString &itemKey, const QString &menuId, const bool checked) override;
|
||||||
void displayModeChanged(const Dock::DisplayMode displayMode) override;
|
void displayModeChanged(const Dock::DisplayMode displayMode) override;
|
||||||
|
|
||||||
int itemSortKey(const QString &itemKey);
|
int itemSortKey(const QString &itemKey) Q_DECL_OVERRIDE;
|
||||||
void setSortKey(const QString &itemKey, const int order);
|
void setSortKey(const QString &itemKey, const int order) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void requestContextMenu(const QString &itemKey);
|
void requestContextMenu(const QString &itemKey);
|
||||||
|
@ -42,20 +42,20 @@ class TrashPlugin : public QObject, PluginsItemInterface
|
|||||||
public:
|
public:
|
||||||
explicit TrashPlugin(QObject *parent = 0);
|
explicit TrashPlugin(QObject *parent = 0);
|
||||||
|
|
||||||
const QString pluginName() const;
|
const QString pluginName() const Q_DECL_OVERRIDE;
|
||||||
void init(PluginProxyInterface *proxyInter);
|
void init(PluginProxyInterface *proxyInter) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
QWidget *itemWidget(const QString &itemKey);
|
QWidget *itemWidget(const QString &itemKey) Q_DECL_OVERRIDE;
|
||||||
QWidget *itemTipsWidget(const QString &itemKey);
|
QWidget *itemTipsWidget(const QString &itemKey) Q_DECL_OVERRIDE;
|
||||||
QWidget *itemPopupApplet(const QString &itemKey);
|
QWidget *itemPopupApplet(const QString &itemKey) Q_DECL_OVERRIDE;
|
||||||
const QString itemCommand(const QString &itemKey);
|
const QString itemCommand(const QString &itemKey) Q_DECL_OVERRIDE;
|
||||||
const QString itemContextMenu(const QString &itemKey);
|
const QString itemContextMenu(const QString &itemKey) Q_DECL_OVERRIDE;
|
||||||
void refreshIcon(const QString &itemKey);
|
void refreshIcon(const QString &itemKey) Q_DECL_OVERRIDE;
|
||||||
void invokedMenuItem(const QString &itemKey, const QString &menuId, const bool checked);
|
void invokedMenuItem(const QString &itemKey, const QString &menuId, const bool checked) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
int itemSortKey(const QString &itemKey) override;
|
int itemSortKey(const QString &itemKey) Q_DECL_OVERRIDE;
|
||||||
void setSortKey(const QString &itemKey, const int order) override;
|
void setSortKey(const QString &itemKey, const int order) Q_DECL_OVERRIDE;
|
||||||
void displayModeChanged(const Dock::DisplayMode displayMode);
|
void displayModeChanged(const Dock::DisplayMode displayMode) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void showContextMenu();
|
void showContextMenu();
|
||||||
|
@ -43,7 +43,7 @@ public:
|
|||||||
|
|
||||||
QWidget *popupApplet();
|
QWidget *popupApplet();
|
||||||
|
|
||||||
QSize sizeHint() const;
|
QSize sizeHint() const Q_DECL_OVERRIDE;
|
||||||
const QString contextMenu() const;
|
const QString contextMenu() const;
|
||||||
int trashItemCount() const;
|
int trashItemCount() const;
|
||||||
void invokeMenuItem(const QString &menuId, const bool checked);
|
void invokeMenuItem(const QString &menuId, const bool checked);
|
||||||
@ -53,12 +53,12 @@ signals:
|
|||||||
void requestContextMenu() const;
|
void requestContextMenu() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void dragEnterEvent(QDragEnterEvent *e) override;
|
void dragEnterEvent(QDragEnterEvent *e) Q_DECL_OVERRIDE;
|
||||||
void dragMoveEvent(QDragMoveEvent *e) override;
|
void dragMoveEvent(QDragMoveEvent *e) Q_DECL_OVERRIDE;
|
||||||
void dropEvent(QDropEvent *e) override;
|
void dropEvent(QDropEvent *e) Q_DECL_OVERRIDE;
|
||||||
void paintEvent(QPaintEvent *e);
|
void paintEvent(QPaintEvent *e) Q_DECL_OVERRIDE;
|
||||||
void resizeEvent(QResizeEvent *e);
|
void resizeEvent(QResizeEvent *e) Q_DECL_OVERRIDE;
|
||||||
void mousePressEvent(QMouseEvent *e);
|
void mousePressEvent(QMouseEvent *e) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void removeApp(const QString &appKey);
|
void removeApp(const QString &appKey);
|
||||||
|
@ -109,7 +109,7 @@ public:
|
|||||||
|
|
||||||
void IndicatorTrayPrivate::init()
|
void IndicatorTrayPrivate::init()
|
||||||
{
|
{
|
||||||
Q_Q(IndicatorTray);
|
//Q_Q(IndicatorTray);
|
||||||
|
|
||||||
indicatorTrayWidget = new IndicatorTrayWidget(itemKey);
|
indicatorTrayWidget = new IndicatorTrayWidget(itemKey);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user