diff options
| author | Peter Penz <[email protected]> | 2007-06-13 17:42:16 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-06-13 17:42:16 +0000 |
| commit | 2cb45d81a5d61fbb703c8dac342d9945aed35e41 (patch) | |
| tree | 56082701f95563cd990c50344f73b3d3694e3967 /src/dolphindetailsview.cpp | |
| parent | 862ceee323ad3b474ce9de11eefbddd99c528fac (diff) | |
provide a common drawing method for the hover indication during drag & drop until issue/wish #160611 is solved in Qt4.4
svn path=/trunk/KDE/kdebase/apps/; revision=675042
Diffstat (limited to 'src/dolphindetailsview.cpp')
| -rw-r--r-- | src/dolphindetailsview.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index 6a3f4bf18..ba82fc901 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -265,16 +265,10 @@ void DolphinDetailsView::paintEvent(QPaintEvent* event) painter.restore(); } + // TODO: remove this code when the issue #160611 is solved in Qt 4.4 if (m_dragging) { - // TODO: remove this code when the issue #160611 is solved in Qt 4.4 - QPainter painter(viewport()); - painter.save(); - QBrush brush(m_viewOptions.palette.brush(QPalette::Normal, QPalette::Highlight)); - QColor color = brush.color(); - color.setAlpha(64); - brush.setColor(color); - painter.fillRect(m_dropRect, brush); - painter.restore(); + const QBrush& brush = m_viewOptions.palette.brush(QPalette::Normal, QPalette::Highlight); + DolphinController::drawHoverIndication(viewport(), m_dropRect, brush); } } |
