}
-void TocWidget::on_tocTV_clicked(QModelIndex const & index)
+void TocWidget::on_tocTV_pressed(QModelIndex const & index)
{
- goTo(index);
- gui_view_.setFocus();
+ Qt::MouseButtons const button = QApplication::mouseButtons();
+ if (button & Qt::LeftButton) {
+ goTo(index);
+ gui_view_.setFocus();
+ }
}
void goTo(QModelIndex const &);
void on_tocTV_activated(QModelIndex const &);
- void on_tocTV_clicked(QModelIndex const &);
+ void on_tocTV_pressed(QModelIndex const &);
void on_updateTB_clicked();
void on_sortCB_stateChanged(int state);
void on_persistentCB_stateChanged(int state);