diff --git a/qucs/textdoc.cpp b/qucs/textdoc.cpp index e9636655..edcf5ece 100644 --- a/qucs/textdoc.cpp +++ b/qucs/textdoc.cpp @@ -61,8 +61,8 @@ TextDoc::TextDoc(QucsApp *App_, const QString& Name_) : QPlainTextEdit(), QucsDo connect(this, SIGNAL(cursorPositionChanged()), SLOT(slotCursorPosChanged())); if (App_) { - connect(this, SIGNAL(signalCursorPosChanged(int, int)), - App_, SLOT(printCursorPosition(int, int))); + connect(this, SIGNAL(signalCursorPosChanged(int, int, QString)), + App_, SLOT(printCursorPosition(int, int, QString))); connect(this, SIGNAL(signalUndoState(bool)), App_, SLOT(slotUpdateUndo(bool))); connect(this, SIGNAL(signalRedoState(bool)), @@ -318,7 +318,7 @@ void TextDoc::slotCursorPosChanged() QTextCursor pos = textCursor(); int x = pos.blockNumber(); int y = pos.columnNumber(); - emit signalCursorPosChanged(x+1, y+1); + emit signalCursorPosChanged(x+1, y+1, ""); tmpPosX = x; tmpPosY = y; } diff --git a/qucs/textdoc.h b/qucs/textdoc.h index 3f000ede..d81ecd84 100644 --- a/qucs/textdoc.h +++ b/qucs/textdoc.h @@ -84,7 +84,7 @@ public: QMenu* createStandardContextMenu(); signals: - void signalCursorPosChanged(int, int); + void signalCursorPosChanged(int, int, QString); void signalFileChanged(bool); void signalUndoState(bool); void signalRedoState(bool);