refs #674, code for hover/drop indicator

* item delegate for callback to view for hover
* proxy style for draw drop indicator as primitive
* added functions to view base for hover / callbacks
* highlight hover row in model
This commit is contained in:
Klaus Basan
2016-06-17 16:16:42 +02:00
parent ce7362a9d9
commit 32d6d68c83
8 changed files with 240 additions and 7 deletions

View File

@@ -108,6 +108,9 @@ namespace BlackGui
//! Model about to be destroyed?
bool isModelDestroyed();
//! Hovered role
void setHoveredRow(int row);
//! Drop actions
void setDropActions(Qt::DropActions dropActions) { this->m_dropActions = dropActions; }
@@ -161,6 +164,9 @@ namespace BlackGui
//! Helper method with template free signature
virtual int performUpdateContainer(const BlackMisc::CVariant &variant, bool sort) = 0;
//! Row to be hovered?
bool isHoveredRow(int row) const;
//! Row to be hovered?
bool isHoveredRow(const QModelIndex &modelIndex) const;