Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/VerticalTabs/tabtreeview.cpp
Show First 20 Lines • Show All 352 Lines • ▼ Show 20 Line(s) | 343 | { | |||
---|---|---|---|---|---|
353 | } | 353 | } | ||
354 | 354 | | |||
355 | m_initializing = false; | 355 | m_initializing = false; | ||
356 | } | 356 | } | ||
357 | 357 | | |||
358 | TabTreeView::DelegateButton TabTreeView::buttonAt(const QPoint &pos, const QModelIndex &index) const | 358 | TabTreeView::DelegateButton TabTreeView::buttonAt(const QPoint &pos, const QModelIndex &index) const | ||
359 | { | 359 | { | ||
360 | if (m_delegate->expandButtonRect(index).contains(pos)) { | 360 | if (m_delegate->expandButtonRect(index).contains(pos)) { | ||
361 | if (model()->rowCount(index) > 0) { | ||||
361 | return ExpandButton; | 362 | return ExpandButton; | ||
363 | } | ||||
362 | } else if (m_delegate->audioButtonRect(index).contains(pos)) { | 364 | } else if (m_delegate->audioButtonRect(index).contains(pos)) { | ||
363 | return AudioButton; | 365 | return AudioButton; | ||
364 | } else if (m_delegate->closeButtonRect(index).contains(pos)) { | 366 | } else if (m_delegate->closeButtonRect(index).contains(pos)) { | ||
365 | return CloseButton; | 367 | return CloseButton; | ||
366 | } | 368 | } | ||
367 | return NoButton; | 369 | return NoButton; | ||
368 | } | 370 | } | ||
369 | 371 | | |||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |