mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
Ref T189, context menu "Clear highlighting" only if there are highlighted rows
* added customMenu in template * added hasHighlightedRows
This commit is contained in:
@@ -210,6 +210,12 @@ namespace BlackGui
|
||||
// can be overridden to delete highlighting
|
||||
}
|
||||
|
||||
bool CListModelBaseNonTemplate::hasHighlightedRows() const
|
||||
{
|
||||
return false;
|
||||
// can be overridden to enable highlighting based operations
|
||||
}
|
||||
|
||||
void CListModelBaseNonTemplate::emitDataChanged(int startRowIndex, int endRowIndex)
|
||||
{
|
||||
BLACK_VERIFY_X(startRowIndex <= endRowIndex, Q_FUNC_INFO, "check rows");
|
||||
|
||||
Reference in New Issue
Block a user