SonarQube warnings.
--HG-- branch : develop
This commit is contained in:
parent
8e7ea0f45f
commit
3a4871fcd0
|
@ -177,7 +177,7 @@ QString DialogMDataBase::ImgTag(const QString &number)
|
|||
const bool ok = renderer.load(filePath);
|
||||
if (ok)
|
||||
{
|
||||
const QScreen *screen = QApplication::screens().at(0);
|
||||
const QScreen *screen = QGuiApplication::screens().at(0);
|
||||
if (screen)
|
||||
{
|
||||
const QSize defSize = renderer.defaultSize();
|
||||
|
@ -223,9 +223,7 @@ void DialogMDataBase::changeEvent(QEvent *event)
|
|||
//---------------------------------------------------------------------------------------------------------------------
|
||||
bool DialogMDataBase::eventFilter(QObject *target, QEvent *event)
|
||||
{
|
||||
if (target == ui->treeWidget)
|
||||
{
|
||||
if (event->type() == QEvent::KeyPress)
|
||||
if (target == ui->treeWidget && event->type() == QEvent::KeyPress)
|
||||
{
|
||||
QKeyEvent *keyEvent = static_cast<QKeyEvent *>(event);
|
||||
switch(keyEvent->key())
|
||||
|
@ -248,7 +246,6 @@ bool DialogMDataBase::eventFilter(QObject *target, QEvent *event)
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return QDialog::eventFilter(target, event);
|
||||
}
|
||||
|
||||
|
|
|
@ -142,8 +142,11 @@ QmuParserBase::~QmuParserBase()
|
|||
* @throw nothrow
|
||||
*/
|
||||
QmuParserBase& QmuParserBase::operator=(const QmuParserBase &a_Parser)
|
||||
{
|
||||
if (this != &a_Parser)
|
||||
{
|
||||
Assign(a_Parser);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
|
@ -63,8 +63,11 @@ QmuParserByteCode::QmuParserByteCode(const QmuParserByteCode &a_ByteCode)
|
|||
* Implemented in Terms of Assign(const QParserByteCode &a_ByteCode)
|
||||
*/
|
||||
QmuParserByteCode& QmuParserByteCode::operator=(const QmuParserByteCode &a_ByteCode)
|
||||
{
|
||||
if (this != &a_ByteCode)
|
||||
{
|
||||
Assign(a_ByteCode);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
|
@ -312,6 +312,8 @@ QmuParserCallback::QmuParserCallback (const QmuParserCallback &a_Fun )
|
|||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
QmuParserCallback &QmuParserCallback::operator=(const QmuParserCallback &a_Fun)
|
||||
{
|
||||
if (this != &a_Fun)
|
||||
{
|
||||
m_pFun = a_Fun.m_pFun;
|
||||
m_iArgc = a_Fun.m_iArgc;
|
||||
|
@ -320,6 +322,7 @@ QmuParserCallback &QmuParserCallback::operator=(const QmuParserCallback &a_Fun)
|
|||
m_iType = a_Fun.m_iType;
|
||||
m_iPri = a_Fun.m_iPri;
|
||||
m_eOprtAsct = a_Fun.m_eOprtAsct;
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
include(../../../common.pri)
|
||||
|
||||
# Library use widgets
|
||||
QT += widgets
|
||||
QT += core widgets
|
||||
|
||||
# We don't need gui library.
|
||||
QT -= gui
|
||||
|
|
Loading…
Reference in New Issue
Block a user