Commit 464c67b8 authored by Stephane Mankowski's avatar Stephane Mankowski

Remove some warnings

parent b1d15784
......@@ -52,7 +52,7 @@ SKGPropertiesPlugin::SKGPropertiesPlugin(QWidget* iWidget, QObject* iParent, con
m_billsProcess.start(QStringLiteral("boobill bills -q -f csv -v"));
connect(&m_billsProcess, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished), this, &SKGPropertiesPlugin::onBillsRetreived);
connect(&m_billsProcess, static_cast<void (QProcess::*)(QProcess::ProcessError)>(&QProcess::error), this, &SKGPropertiesPlugin::onBillsRetreived);
connect(&m_billsProcess, static_cast<void (QProcess::*)(QProcess::ProcessError)>(&QProcess::errorOccurred), this, &SKGPropertiesPlugin::onBillsRetreived);
}
SKGPropertiesPlugin::~SKGPropertiesPlugin()
......
......@@ -21,7 +21,7 @@
*
* @author Stephane MANKOWSKI / Guillaume DE BURE
*/
#include <customwidget.h>
#include <QtUiPlugin/customwidget.h>
#include "skgbankguidesigner_export.h"
/**
......
......@@ -21,7 +21,7 @@
*
* @author Stephane MANKOWSKI / Guillaume DE BURE
*/
#include <customwidget.h>
#include <QtUiPlugin/customwidget.h>
/**
* QDesigner plugin for SKGTableWithGraph
......
......@@ -21,7 +21,7 @@
*
* @author Stephane MANKOWSKI / Guillaume DE BURE
*/
#include <customwidget.h>
#include <QtUiPlugin/customwidget.h>
/**
* QDesigner plugin for SKGTableWithGraph
......
......@@ -21,7 +21,7 @@
*
* @author Stephane MANKOWSKI / Guillaume DE BURE
*/
#include <customwidget.h>
#include <QtUiPlugin/customwidget.h>
/**
* QDesigner plugin for SKGTableWithGraph
......
......@@ -317,7 +317,7 @@ bool KDateEdit::eventFilter(QObject* iObject, QEvent* iEvent)
// Up and down arrow keys step the date
auto* keyEvent = dynamic_cast<QKeyEvent*>(iEvent);
if (keyEvent->key() == Qt::Key_Return || keyEvent->key() == Qt::Key_Enter) {
if (keyEvent && (keyEvent->key() == Qt::Key_Return || keyEvent->key() == Qt::Key_Enter)) {
lineEnterPressed();
return true;
}
......
......@@ -1117,8 +1117,8 @@ bool SKGTreeView::eventFilter(QObject* iObject, QEvent* iEvent)
{
if (iObject == this && iEvent != nullptr && iEvent->type() == QEvent::Wheel) {
auto* e = dynamic_cast<QWheelEvent*>(iEvent);
if (m_textResizable && (e != nullptr) && e->orientation() == Qt::Vertical && ((QApplication::keyboardModifiers() &Qt::ControlModifier) != 0u)) {
int numDegrees = e->delta() / 8;
if (m_textResizable && (e != nullptr) && ((QApplication::keyboardModifiers() &Qt::ControlModifier) != 0u)) {
int numDegrees = e->angleDelta().y() / 8;
int numTicks = numDegrees / 15;
setZoomPosition(zoomPosition() + (numTicks > 0 ? 1 : -1));
......
......@@ -194,8 +194,8 @@ bool SKGWebView::eventFilter(QObject* iObject, QEvent* iEvent)
if ((iEvent != nullptr) && iEvent->type() == QEvent::Wheel) {
auto* e = dynamic_cast<QWheelEvent*>(iEvent);
if (e != nullptr) {
if (e->orientation() == Qt::Vertical && ((QApplication::keyboardModifiers() &Qt::ControlModifier) != 0u)) {
int numDegrees = e->delta() / 8;
if ((QApplication::keyboardModifiers() &Qt::ControlModifier) != 0u) {
int numDegrees = e->angleDelta().y() / 8;
int numTicks = numDegrees / 15;
if (numTicks > 0) {
......
......@@ -21,7 +21,7 @@
*
* @author Stephane MANKOWSKI / Guillaume DE BURE
*/
#include <customwidget.h>
#include <QtUiPlugin/customwidget.h>
/**
* QDesigner plugin for SKGCalculatorEdit
......
......@@ -21,7 +21,7 @@
*
* @author Stephane MANKOWSKI / Guillaume DE BURE
*/
#include <customwidget.h>
#include <QtUiPlugin/customwidget.h>
/**
* QDesigner plugin for SKGColorButton
......
......@@ -21,7 +21,7 @@
*
* @author Stephane MANKOWSKI / Guillaume DE BURE
*/
#include <customwidget.h>
#include <QtUiPlugin/customwidget.h>
/**
* QDesigner plugin for SKGComboBox
......
......@@ -21,7 +21,7 @@
*
* @author Stephane MANKOWSKI / Guillaume DE BURE
*/
#include <customwidget.h>
#include <QtUiPlugin/customwidget.h>
/**
* QDesigner plugin for SKGDateEdit
......
......@@ -21,7 +21,7 @@
*
* @author Stephane MANKOWSKI / Guillaume DE BURE
*/
#include <customwidget.h>
#include <QtUiPlugin/customwidget.h>
/**
* QDesigner plugin for SKGFilteredTableView
......
......@@ -21,7 +21,7 @@
*
* @author Stephane MANKOWSKI / Guillaume DE BURE
*/
#include <customwidget.h>
#include <QtUiPlugin/customwidget.h>
/**
* QDesigner plugin for SKGGraphicsView
......
......@@ -21,7 +21,7 @@
*
* @author Stephane MANKOWSKI / Guillaume DE BURE
*/
#include <customwidget.h>
#include <QtUiPlugin/customwidget.h>
/**
* QDesigner plugin for SKGColorButton
......
......@@ -21,7 +21,7 @@
*
* @author Stephane MANKOWSKI / Guillaume DE BURE
*/
#include <customwidget.h>
#include <QtUiPlugin/customwidget.h>
/**
* QDesigner plugin for SKGProgressBar
......
......@@ -21,7 +21,7 @@
*
* @author Stephane MANKOWSKI / Guillaume DE BURE
*/
#include <customwidget.h>
#include <QtUiPlugin/customwidget.h>
/**
* QDesigner plugin for SKGShow
......
......@@ -21,7 +21,7 @@
*
* @author Stephane MANKOWSKI / Guillaume DE BURE
*/
#include <customwidget.h>
#include <QtUiPlugin/customwidget.h>
/**
* QDesigner plugin for SKGColorButton
......
......@@ -21,7 +21,7 @@
*
* @author Stephane MANKOWSKI / Guillaume DE BURE
*/
#include <customwidget.h>
#include <QtUiPlugin/customwidget.h>
/**
* QDesigner plugin for SKGTableView
......
......@@ -21,7 +21,7 @@
*
* @author Stephane MANKOWSKI / Guillaume DE BURE
*/
#include <customwidget.h>
#include <QtUiPlugin/customwidget.h>
/**
* QDesigner plugin for SKGTableWidget
......
......@@ -21,7 +21,7 @@
*
* @author Stephane MANKOWSKI / Guillaume DE BURE
*/
#include <customwidget.h>
#include <QtUiPlugin/customwidget.h>
/**
* QDesigner plugin for SKGTableWithGraph
......
......@@ -21,7 +21,7 @@
*
* @author Stephane MANKOWSKI / Guillaume DE BURE
*/
#include <customwidget.h>
#include <QtUiPlugin/customwidget.h>
/**
* QDesigner plugin for SKGTabWidget
......
......@@ -21,7 +21,7 @@
*
* @author Stephane MANKOWSKI / Guillaume DE BURE
*/
#include <customwidget.h>
#include <QtUiPlugin/customwidget.h>
/**
* QDesigner plugin for SKGTreeView
......
......@@ -21,7 +21,7 @@
*
* @author Stephane MANKOWSKI / Guillaume DE BURE
*/
#include <customwidget.h>
#include <QtUiPlugin/customwidget.h>
/**
* QDesigner plugin for SKGWebView
......
......@@ -21,7 +21,7 @@
*
* @author Stephane MANKOWSKI / Guillaume DE BURE
*/
#include <customwidget.h>
#include <QtUiPlugin/customwidget.h>
#include "skgbaseguidesigner_export.h"
......
......@@ -21,7 +21,7 @@
*
* @author Stephane MANKOWSKI / Guillaume DE BURE
*/
#include <customwidget.h>
#include <QtUiPlugin/customwidget.h>
/**
* QDesigner plugin for SKGWidgetSelector
......
......@@ -21,7 +21,7 @@
*
* @author Stephane MANKOWSKI / Guillaume DE BURE
*/
#include <customwidget.h>
#include <QtUiPlugin/customwidget.h>
/**
* QDesigner plugin for SKGZoomSelector
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment