[Gui] modernize some connect() settings

- addresses #6166
This commit is contained in:
Uwe
2023-01-12 02:01:35 +01:00
committed by wwmayer
parent 0410dc8f4d
commit 5ad737ccdc
17 changed files with 73 additions and 87 deletions

View File

@@ -20,7 +20,6 @@
* *
***************************************************************************/
#include "PreCompiled.h"
#ifndef _PreComp_
# include <QEvent>
@@ -30,8 +29,8 @@
#include "ToolBox.h"
using namespace Gui::DockWnd;
using namespace Gui::DockWnd;
/**
* Constructs a toolbox called \a name with parent \a parent and flags \a f.
@@ -40,7 +39,7 @@ ToolBox::ToolBox( QWidget *parent )
: QWidget(parent)
{
_pToolBox = new QToolBox( this );
connect( _pToolBox, SIGNAL( currentChanged(int) ), this, SIGNAL( currentChanged(int) ) );
connect(_pToolBox, &QToolBox::currentChanged, this, &ToolBox::currentChanged);
auto pGrid = new QGridLayout(this);
pGrid->addWidget(_pToolBox, 0, 0);