Skip to content

Commit

Permalink
Show event command line number at mouseover
Browse files Browse the repository at this point in the history
  • Loading branch information
Zegeri committed Apr 29, 2016
1 parent a2673cb commit de853ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tools/qeventpagewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ QEventPageWidget::QEventPageWidget(QWidget *parent) :
ui->graphicsSprite->setScene(m_scene);
ui->treeCommands->hideColumn(1);
ui->treeCommands->header()->hide();
ui->treeCommands->setMouseTracking(true);
}

QEventPageWidget::~QEventPageWidget()
Expand Down Expand Up @@ -83,6 +84,7 @@ void QEventPageWidget::setEventPage(RPG::EventPage *eventPage)
const RPG::EventCommand& command = m_eventPage->event_commands[i];
QTreeWidgetItem *item = new QTreeWidgetItem({Stringizer::stringize(command),
QString::number(m_codeGen)});
item->setToolTip(0, tr("Line") + ": " + QString::number(m_codeGen));

if (command.code == Cmd::ShowChoiceOption && command.parameters[0] != 0)
parent = parent->parent();
Expand Down

0 comments on commit de853ee

Please sign in to comment.