┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphincolumnwidget.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2007-10-16 22:24:52 +0000
committerPeter Penz <[email protected]>2007-10-16 22:24:52 +0000
commit88f17ca75add13baf3ac633e57865136deba02cc (patch)
treea346d7c4b4b04f4aa7ecc09f1d876dcee6c361ef /src/dolphincolumnwidget.cpp
parentd67de9dfef9a9e317c0b1b11014e80c95793bb5a (diff)
polish look of column view:
- don't show a focused border above all columns - provide a small gap between the columns - assure that the background of inactive columns works well with more complex styles like Oxygen CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=726042
Diffstat (limited to 'src/dolphincolumnwidget.cpp')
-rw-r--r--src/dolphincolumnwidget.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/dolphincolumnwidget.cpp b/src/dolphincolumnwidget.cpp
index 92fbd4e79..7bf644a95 100644
--- a/src/dolphincolumnwidget.cpp
+++ b/src/dolphincolumnwidget.cpp
@@ -69,7 +69,6 @@ DolphinColumnWidget::DolphinColumnWidget(QWidget* parent,
setSelectionMode(QAbstractItemView::ExtendedSelection);
setDragDropMode(QAbstractItemView::DragDrop);
setDropIndicatorShown(false);
- setFocusPolicy(Qt::NoFocus);
// TODO: Remove this check when 4.3.2 is released and KDE requires it... this
// check avoids a division by zero happening on versions before 4.3.1.
@@ -181,7 +180,7 @@ void DolphinColumnWidget::updateBackground()
{
QColor color = KColorScheme(QPalette::Active, KColorScheme::View).background().color();
if (!m_active || !m_view->m_active) {
- color.setAlpha(0);
+ color.setAlpha(150);
}
QPalette palette = viewport()->palette();
palette.setColor(viewport()->backgroundRole(), color);
@@ -386,10 +385,7 @@ void DolphinColumnWidget::slotEntered(const QModelIndex& index)
void DolphinColumnWidget::activate()
{
- if (m_view->hasFocus()) {
- setFocus(Qt::OtherFocusReason);
- }
- m_view->setFocusProxy(this);
+ setFocus(Qt::OtherFocusReason);
// TODO: Connecting to the signal 'activated()' is not possible, as kstyle
// does not forward the single vs. doubleclick to it yet (KDE 4.1?). Hence it is
@@ -415,6 +411,8 @@ void DolphinColumnWidget::activate()
void DolphinColumnWidget::deactivate()
{
+ clearFocus();
+
// TODO: Connecting to the signal 'activated()' is not possible, as kstyle
// does not forward the single vs. doubleclick to it yet (KDE 4.1?). Hence it is
// necessary connecting the signal 'singleClick()' or 'doubleClick'.