mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 05:45:35 +08:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user