mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Disable the alternating row colors when the details view is inactive. This solves the problem that when having a split view that too less contrast is given to be aware about the activation state.
BUG: 168270 svn path=/trunk/KDE/kdebase/apps/; revision=846021
This commit is contained in:
parent
00afeea5f5
commit
d50f2fab2b
2 changed files with 13 additions and 0 deletions
|
@ -121,6 +121,8 @@ DolphinDetailsView::DolphinDetailsView(QWidget* parent, DolphinController* contr
|
|||
this, SLOT(setZoomLevel(int)));
|
||||
connect(controller->dolphinView(), SIGNAL(additionalInfoChanged()),
|
||||
this, SLOT(updateColumnVisibility()));
|
||||
connect(controller, SIGNAL(activationChanged(bool)),
|
||||
this, SLOT(slotActivationChanged(bool)));
|
||||
|
||||
if (settings->useSystemFont()) {
|
||||
m_font = KGlobalSettings::generalFont();
|
||||
|
@ -556,6 +558,11 @@ void DolphinDetailsView::slotHeaderSectionResized(int logicalIndex, int oldSize,
|
|||
}
|
||||
}
|
||||
|
||||
void DolphinDetailsView::slotActivationChanged(bool active)
|
||||
{
|
||||
setAlternatingRowColors(active);
|
||||
}
|
||||
|
||||
void DolphinDetailsView::disableAutoResizing()
|
||||
{
|
||||
m_autoResize = false;
|
||||
|
|
|
@ -122,6 +122,12 @@ private slots:
|
|||
* with the mouse.
|
||||
*/
|
||||
void slotHeaderSectionResized(int logicalIndex, int oldSize, int newSize);
|
||||
|
||||
/**
|
||||
* Changes the alternating row colors setting depending from
|
||||
* the activation state \a active.
|
||||
*/
|
||||
void slotActivationChanged(bool active);
|
||||
|
||||
/**
|
||||
* Disables the automatical resizing of the columns. Per default all columns
|
||||
|
|
Loading…
Reference in a new issue