forked from qt-creator/qt-creator
Open file when double-clicking in compile window
Track the tasks which are added, so that the generic parsers are used for detecting file names. Change-Id: Ie3bcf04c946fa45c99836dc4c29ca03ab5243fb2 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
committed by
Daniel Teske
parent
8877ae2793
commit
54801c5163
@@ -306,6 +306,8 @@ TaskWindow::TaskWindow(TaskHub *taskhub) : d(new TaskWindowPrivate)
|
||||
this, SLOT(popup(bool)));
|
||||
connect(d->m_taskHub, SIGNAL(showTask(uint)),
|
||||
this, SLOT(showTask(uint)));
|
||||
connect(d->m_taskHub, SIGNAL(openTask(uint)),
|
||||
this, SLOT(openTask(uint)));
|
||||
}
|
||||
|
||||
TaskWindow::~TaskWindow()
|
||||
@@ -398,6 +400,14 @@ void TaskWindow::showTask(unsigned int id)
|
||||
d->m_listview->setCurrentIndex(filterIdx);
|
||||
}
|
||||
|
||||
void TaskWindow::openTask(unsigned int id)
|
||||
{
|
||||
int sourceRow = d->m_model->rowForId(id);
|
||||
QModelIndex sourceIdx = d->m_model->index(sourceRow, 0);
|
||||
QModelIndex filterIdx = d->m_filter->mapFromSource(sourceIdx);
|
||||
triggerDefaultHandler(filterIdx);
|
||||
}
|
||||
|
||||
void TaskWindow::triggerDefaultHandler(const QModelIndex &index)
|
||||
{
|
||||
if (!index.isValid())
|
||||
|
||||
Reference in New Issue
Block a user