statusBar()->showMessage(output);
}
m_stateEvent = 0;
+ m_ui.actionShowErrorsDock->setEnabled(m_trace->hasErrors());
+ m_ui.errorsDock->setVisible(m_trace->hasErrors());
+
statusBar()->showMessage(
tr("Replaying finished!"), 2000);
}
SLOT(createdTrace(const QString&)));
connect(m_traceProcess, SIGNAL(error(const QString&)),
SLOT(traceError(const QString&)));
+
+ connect(m_ui.errorsDock, SIGNAL(visibilityChanged(bool)),
+ m_ui.actionShowErrorsDock, SLOT(setChecked(bool)));
+ connect(m_ui.actionShowErrorsDock, SIGNAL(triggered(bool)),
+ m_ui.errorsDock, SLOT(setVisible(bool)));
}
void MainWindow::replayStateFound(const ApiTraceState &state)
item->setData(1, Qt::DisplayRole, type);
item->setData(2, Qt::DisplayRole, error.message);
}
-
- m_ui.errorsDock->setVisible(!errors.isEmpty());
}
#include "mainwindow.moc"
<addaction name="separator"/>
<addaction name="actionQuit"/>
</widget>
+ <widget class="QMenu" name="menuEdit">
+ <property name="title">
+ <string>&Edit</string>
+ </property>
+ <addaction name="actionFind"/>
+ <addaction name="actionGo"/>
+ <addaction name="actionGoFrameStart"/>
+ <addaction name="actionGoFrameEnd"/>
+ <addaction name="separator"/>
+ <addaction name="actionShowErrorsDock"/>
+ </widget>
<widget class="QMenu" name="menu_Trace">
<property name="title">
<string>&Trace</string>
<addaction name="separator"/>
<addaction name="actionOptions"/>
</widget>
- <widget class="QMenu" name="menuEdit">
- <property name="title">
- <string>&Edit</string>
- </property>
- <addaction name="actionFind"/>
- <addaction name="actionGo"/>
- <addaction name="actionGoFrameStart"/>
- <addaction name="actionGoFrameEnd"/>
- </widget>
<addaction name="menuFile"/>
<addaction name="menuEdit"/>
<addaction name="menu_Trace"/>
<string>Ctrl+E</string>
</property>
</action>
+ <action name="actionShowErrorsDock">
+ <property name="checkable">
+ <bool>true</bool>
+ </property>
+ <property name="enabled">
+ <bool>false</bool>
+ </property>
+ <property name="text">
+ <string>Show Errors Dock</string>
+ </property>
+ </action>
<zorder>stateDock</zorder>
<zorder>vertexDataDock</zorder>
<zorder>errorsDock</zorder>