Skip to content

Commit

Permalink
qucs-lib: fix Qt3 compatibility warning
Browse files Browse the repository at this point in the history
Connecting from COMPAT signal (QAction::activated(int))
  • Loading branch information
guitorri committed Oct 19, 2015
1 parent aa44172 commit 8afc404
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions qucs/qucs-lib/qucslib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ QucsLib::QucsLib()

QAction * manageLib =new QAction (tr("Manage User &Libraries..."), this);
manageLib->setShortcut(Qt::CTRL+Qt::Key_M);
connect(manageLib, SIGNAL(activated()), SLOT(slotManageLib()));
connect(manageLib, SIGNAL(triggered()), SLOT(slotManageLib()));

QAction * fileQuit = new QAction(tr("&Quit"), this);
fileQuit->setShortcut(Qt::CTRL+Qt::Key_Q);
connect(fileQuit, SIGNAL(activated()), SLOT(slotQuit()));
connect(fileQuit, SIGNAL(triggered()), SLOT(slotQuit()));

fileMenu->addAction(manageLib);
fileMenu->addSeparator();
Expand All @@ -78,11 +78,11 @@ QucsLib::QucsLib()
QAction * helpHelp = new QAction(tr("&Help"), this);
helpHelp->setShortcut(Qt::Key_F1);
helpMenu->addAction(helpHelp);
connect(helpHelp, SIGNAL(activated()), SLOT(slotHelp()));
connect(helpHelp, SIGNAL(triggered()), SLOT(slotHelp()));

QAction * helpAbout = new QAction(tr("About"), this);
helpMenu->addAction(helpAbout);
connect(helpAbout, SIGNAL(activated()), SLOT(slotAbout()));
connect(helpAbout, SIGNAL(triggered()), SLOT(slotAbout()));

// use Escape key to clear search
QAction *escape = new QAction(this);
Expand Down

0 comments on commit 8afc404

Please sign in to comment.