Commit 0cd76d4b authored by hjk's avatar hjk Committed by hjk

fakevim: update manual test code

Change-Id: I1356c07a4a7a9a42d905aa9040c4d31d50c813d6
Reviewed-on: http://codereview.qt.nokia.com/2686Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 687a6006
......@@ -67,9 +67,10 @@ public slots:
updateStatusBar();
}
void changeStatusMessage(const QString &info)
void changeStatusMessage(const QString &contents, int cursorPos)
{
m_statusMessage = info;
m_statusMessage = cursorPos == -1 ? contents
: contents.left(cursorPos) + QChar(10073) + contents.mid(cursorPos);
updateStatusBar();
}
......@@ -137,8 +138,8 @@ int main(int argc, char *argv[])
widget->setFont(font);
mw.statusBar()->setFont(font);
QObject::connect(&handler, SIGNAL(commandBufferChanged(QString)),
&proxy, SLOT(changeStatusMessage(QString)));
QObject::connect(&handler, SIGNAL(commandBufferChanged(QString,int)),
&proxy, SLOT(changeStatusMessage(QString,int)));
//QObject::connect(&handler, SIGNAL(quitRequested(bool)),
// &app, SLOT(quit()));
QObject::connect(&handler,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment