[qcross] save paused state to savegames
This commit is contained in:
parent
fe3b10e35a
commit
608a114a05
@ -153,6 +153,10 @@ namespace qcross {
|
|||||||
updateTimeDisplay();
|
updateTimeDisplay();
|
||||||
emit timeChanged(m_Time);
|
emit timeChanged(m_Time);
|
||||||
|
|
||||||
|
// paused
|
||||||
|
stream >> m_Paused; qDebug("m_Paused = %i", int(m_Paused));
|
||||||
|
setDisabled(m_Paused);
|
||||||
|
|
||||||
// messages
|
// messages
|
||||||
int messageCount;
|
int messageCount;
|
||||||
stream >> messageCount; qDebug("messageCount = %i", messageCount);
|
stream >> messageCount; qDebug("messageCount = %i", messageCount);
|
||||||
@ -193,6 +197,9 @@ namespace qcross {
|
|||||||
// time(out)
|
// time(out)
|
||||||
stream << m_Time;
|
stream << m_Time;
|
||||||
|
|
||||||
|
// paused state
|
||||||
|
stream << m_Paused;
|
||||||
|
|
||||||
// messages
|
// messages
|
||||||
// actually we should dump the message queue
|
// actually we should dump the message queue
|
||||||
// for now only dump last displayed
|
// for now only dump last displayed
|
||||||
@ -469,14 +476,12 @@ namespace qcross {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CCrossFieldWidget::paintEvent(QPaintEvent *) {
|
void CCrossFieldWidget::paintEvent(QPaintEvent *) {
|
||||||
QPainter painter(this);
|
|
||||||
|
|
||||||
if (!m_Picture) {
|
if (!m_Picture) {
|
||||||
/* painter.drawText(originX, originY, m_BoxSize, m_BoxSize,
|
|
||||||
Qt::AlignVCenter | Qt::AlignCenter, QString::number(m_Picture->rowNumbers(i)[m_Picture->rowNumbers(i).size() - j]));*/
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QPainter painter(this);
|
||||||
|
|
||||||
int originX = m_OffsetX + m_HeaderWidth;
|
int originX = m_OffsetX + m_HeaderWidth;
|
||||||
int originY = m_OffsetY + m_HeaderHeight;
|
int originY = m_OffsetY + m_HeaderHeight;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user