mirror of https://github.com/procxx/kepka.git
parent
81fb32504b
commit
0303f18ac6
|
@ -472,9 +472,11 @@ void DialogsInner::activate() {
|
|||
}
|
||||
|
||||
void DialogsInner::mouseMoveEvent(QMouseEvent *e) {
|
||||
auto position = e->pos();
|
||||
_mouseSelection = true;
|
||||
updateSelected(position);
|
||||
if (_mouseLastGlobalPosition != e->globalPos()) {
|
||||
_mouseLastGlobalPosition = e->globalPos();
|
||||
_mouseSelection = true;
|
||||
}
|
||||
updateSelected(e->pos());
|
||||
}
|
||||
|
||||
void DialogsInner::clearIrrelevantState() {
|
||||
|
|
|
@ -223,6 +223,7 @@ private:
|
|||
DialogsList _contacts;
|
||||
|
||||
bool _mouseSelection = false;
|
||||
QPoint _mouseLastGlobalPosition;
|
||||
Qt::MouseButton _pressButton = Qt::LeftButton;
|
||||
|
||||
std::unique_ptr<ImportantSwitch> _importantSwitch;
|
||||
|
|
Loading…
Reference in New Issue