summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelogimportdialog.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-07 12:54:23 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-07 13:00:06 -0800
commit02103978ec89cc5538254cac82afc20e2084c004 (patch)
treef30edf671dcb97272f2e131bde0c7604644ad2ce /qt-ui/divelogimportdialog.cpp
parent2f5d4720e97fea6caf7e1e937ea90e3ae4bb6dc4 (diff)
downloadsubsurface-02103978ec89cc5538254cac82afc20e2084c004.tar.gz
CVS import UI: mark the drop row in blue
That way it is distinct from the rest. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelogimportdialog.cpp')
-rw-r--r--qt-ui/divelogimportdialog.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/divelogimportdialog.cpp b/qt-ui/divelogimportdialog.cpp
index e3938608e..b2100d26a 100644
--- a/qt-ui/divelogimportdialog.cpp
+++ b/qt-ui/divelogimportdialog.cpp
@@ -226,6 +226,10 @@ QVariant ColumnNameResult::data(const QModelIndex &index, int role) const
{
if (!index.isValid())
return QVariant();
+ if (role == Qt::BackgroundColorRole)
+ if (index.row() == 0)
+ return QVariant(AIR_BLUE_TRANS);
+
if (role != Qt::DisplayRole)
return QVariant();