~ubuntu-branches/debian/stretch/psi-plus/stretch

« back to all changes in this revision

Viewing changes to src/hoverabletreeview.cpp

  • Committer: Package Import Robot
  • Author(s): Boris Pek
  • Date: 2013-10-23 02:42:20 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20131023024220-bk2hyoenqkwfhpgw
Tags: 0.16.242-1
* New upstream release:
  fixed the problem of initialization of private conversation when both
  sides use libotr 4.0.x. (Closes: #724880)
* Update debian/watch: sources were moved.
* Delete psi-plus-content-downloader package and update all related files.
  This plugin is in psi-plus-plugins package now.
* Update debian/control:
  - remove all currently unneeded Replaces and Breaks fields
  - add build dependency on libidn11-dev
* Update debian/rules: simplify get-orig-source section.
* Update debian/copyright:
  - update Source field due to changes in sources location
  - remove copyright holders whose code was deleted from source tree
    (bundled libidn library was removed)

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
        QTreeView::mouseMoveEvent(event);
89
89
 
90
90
        // required for accurate hovered sub-regions painting
91
 
        viewport()->update();
 
91
        if(event->buttons() != Qt::NoButton)
 
92
                viewport()->update();
92
93
}
93
94
 
94
95
void HoverableTreeView::startDrag(Qt::DropActions supportedActions)
139
140
                TRACKMOUSEEVENT tme;
140
141
                tme.cbSize = sizeof(TRACKMOUSEEVENT);
141
142
                tme.dwFlags = 0x00000002;    // TME_LEAVE
142
 
                tme.hwndTrack = viewport()->winId(); // Track on window receiving msgs
 
143
                tme.hwndTrack = (HWND)viewport()->winId(); // Track on window receiving msgs
143
144
                tme.dwHoverTime = (DWORD)-1; // HOVER_DEFAULT
144
145
                ptrTrackMouseEvent(&tme);
145
146
        }