mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-24 02:42:50 +00:00
plasma: mark launcher applet method as const
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
c086db63ba
commit
bca37f3d5b
1 changed files with 2 additions and 2 deletions
|
@ -192,7 +192,7 @@ protected:
|
||||||
private:
|
private:
|
||||||
void animateFadeIn(Plasma::Animation *animation, Plasma::ToolButton *toolbutton);
|
void animateFadeIn(Plasma::Animation *animation, Plasma::ToolButton *toolbutton);
|
||||||
void animateFadeOut(Plasma::Animation *animation, Plasma::ToolButton *toolbutton);
|
void animateFadeOut(Plasma::Animation *animation, Plasma::ToolButton *toolbutton);
|
||||||
bool handleMouseEvent(QGraphicsSceneMouseEvent *event);
|
bool handleMouseEvent(QGraphicsSceneMouseEvent *event) const;
|
||||||
|
|
||||||
QGraphicsLinearLayout* m_layout;
|
QGraphicsLinearLayout* m_layout;
|
||||||
Plasma::IconWidget* m_iconwidget;
|
Plasma::IconWidget* m_iconwidget;
|
||||||
|
@ -470,7 +470,7 @@ void LauncherWidget::animateFadeOut(Plasma::Animation *animation, Plasma::ToolBu
|
||||||
animation->start(QAbstractAnimation::KeepWhenStopped);
|
animation->start(QAbstractAnimation::KeepWhenStopped);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool LauncherWidget::handleMouseEvent(QGraphicsSceneMouseEvent *event)
|
bool LauncherWidget::handleMouseEvent(QGraphicsSceneMouseEvent *event) const
|
||||||
{
|
{
|
||||||
if (event->buttons() & Qt::LeftButton &&
|
if (event->buttons() & Qt::LeftButton &&
|
||||||
(event->pos() - event->buttonDownPos(Qt::LeftButton)).manhattanLength() > KGlobalSettings::dndEventDelay())
|
(event->pos() - event->buttonDownPos(Qt::LeftButton)).manhattanLength() > KGlobalSettings::dndEventDelay())
|
||||||
|
|
Loading…
Add table
Reference in a new issue