Skip to content

Commit

Permalink
Merge pull request #661 from ra3xdh/660_fix
Browse files Browse the repository at this point in the history
Fixed #660 and small fixes
  • Loading branch information
ra3xdh authored Mar 25, 2024
2 parents 3ebcd2e + 812a1e2 commit d528842
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion qucs/components/mosfet_sub.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ Basic_MOSFET::Basic_MOSFET()
MOSFET_sub::MOSFET_sub()
{
Description = QObject::tr("MOS field-effect transistor with substrate");
Simulator = spicecompat::simQucsator;
Simulator = spicecompat::simAll;
createSymbol();
tx = x2+4;
ty = y1+4;
Expand Down
6 changes: 3 additions & 3 deletions qucs/textdoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion qucs/textdoc.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class TextDoc : public QPlainTextEdit, public QucsDoc {
QMenu* createStandardContextMenu();

signals:
void signalCursorPosChanged(int, int);
void signalCursorPosChanged(int, int, QString);
void signalFileChanged(bool);
void signalUndoState(bool);
void signalRedoState(bool);
Expand Down

0 comments on commit d528842

Please sign in to comment.