Skip to content
Snippets Groups Projects
Commit 62e63e89 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

style: rm last entries for ListView

parent c9074479
No related branches found
No related tags found
1 merge request!2387unify code for list views
...@@ -55,7 +55,7 @@ QVariant InstrumentsQModel::data(const QModelIndex& index, int role) const ...@@ -55,7 +55,7 @@ QVariant InstrumentsQModel::data(const QModelIndex& index, int role) const
case Qt::ToolTipRole: case Qt::ToolTipRole:
return t->description(); return t->description();
case Qt::BackgroundRole: case Qt::BackgroundRole:
return row == set()->currentIndex() ? QColor(Qt::green) : QColor(Qt::magenta); return row == set()->currentIndex() ? QColor(Qt::white) : QColor(Qt::gray);
default: default:
return {}; return {};
} }
......
...@@ -254,17 +254,19 @@ QMenuBar::item:selected ...@@ -254,17 +254,19 @@ QMenuBar::item:selected
} }
/* ------------------------------------------------------------------------------- */ /* ------------------------------------------------------------------------------- */
/* Set alternate background color, e.g, for QTableWidgets alternate row coloring. */ /* Set alternate background color, e.g, for QTableWidgets alternate row coloring.
QAbstractItemView QAbstractItemView
{ {
alternate-background-color:palette(alternate-base); alternate-background-color:palette(alternate-base);
} }
*/
/* ------------------------------------------------------------------------------- */ /* ------------------------------------------------------------------------------- */
QListView /* QListView
{ {
/* background-color: palette(dark) */ background-color: palette(dark)
} }
*/
/* ------------------------------------------------------------------------------- */ /* ------------------------------------------------------------------------------- */
QDockWidget QDockWidget
...@@ -563,13 +565,12 @@ ScientificSpinBox::down-button:pressed ...@@ -563,13 +565,12 @@ ScientificSpinBox::down-button:pressed
} }
QWidget{ QWidget{
color: palette(text); color: palette(text);
} }
QTextEdit, QLineEdit, QSpinBox, ScientificSpinBox, QDoubleSpinBox, DoubleSpinBox, QComboBox, QTabWidget, QTextEdit, QLineEdit, QSpinBox, ScientificSpinBox, QDoubleSpinBox, DoubleSpinBox, QComboBox, QTabWidget,
QDockWidget, QListView, QTableView, QTableWidget, QHeaderView, QProgressBar, QSlider, QScrollBar, QDockWidget, QTableView, QTableWidget, QHeaderView, QProgressBar, QSlider, QScrollBar,
QToolBar, QPushButton, QScrollArea { QToolBar, QPushButton, QScrollArea {
background-color: white; background-color: white;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment