1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Use QStringLiteral + use nullptr

This commit is contained in:
Laurent Montel 2022-06-19 08:35:11 +02:00
parent ba459ba600
commit 4543c74436
5 changed files with 5 additions and 9 deletions

View File

@ -36,9 +36,6 @@ MouseGestures::MouseGestures(const QString &settingsPath, QObject* parent)
, m_filter(0) , m_filter(0)
, m_settingsFile(settingsPath + QL1S("/extensions.ini")) , m_settingsFile(settingsPath + QL1S("/extensions.ini"))
, m_button(Qt::MiddleButton) , m_button(Qt::MiddleButton)
, m_enableRockerNavigation(false)
, m_blockNextRightMouseRelease(false)
, m_blockNextLeftMouseRelease(false)
{ {
loadSettings(); loadSettings();
} }

View File

@ -76,10 +76,10 @@ private:
QString m_settingsFile; QString m_settingsFile;
Qt::MouseButton m_button; Qt::MouseButton m_button;
bool m_enableRockerNavigation; bool m_enableRockerNavigation = false;
bool m_blockNextRightMouseRelease; bool m_blockNextRightMouseRelease = false;
bool m_blockNextLeftMouseRelease; bool m_blockNextLeftMouseRelease = false;
bool m_oldWebViewForceContextMenuOnRelease = false; bool m_oldWebViewForceContextMenuOnRelease = false;
}; };

View File

@ -24,7 +24,6 @@
MouseGesturesPlugin::MouseGesturesPlugin() MouseGesturesPlugin::MouseGesturesPlugin()
: QObject() : QObject()
, m_gestures(0)
{ {
} }

View File

@ -40,7 +40,7 @@ public:
bool mouseMove(Qz::ObjectName type, QObject *obj, QMouseEvent *event) override; bool mouseMove(Qz::ObjectName type, QObject *obj, QMouseEvent *event) override;
private: private:
MouseGestures* m_gestures; MouseGestures* m_gestures = nullptr;
}; };

View File

@ -112,7 +112,7 @@ void PIM_Handler::populateWebViewMenu(QMenu* menu, WebView* view, const WebHitTe
} }
QMenu* pimMenu = new QMenu(tr("Insert Personal Information")); QMenu* pimMenu = new QMenu(tr("Insert Personal Information"));
pimMenu->setIcon(QIcon(":/PIM/data/PIM.png")); pimMenu->setIcon(QIcon(QStringLiteral(":/PIM/data/PIM.png")));
if (!m_allInfo[PI_FirstName].isEmpty() && !m_allInfo[PI_LastName].isEmpty()) { if (!m_allInfo[PI_FirstName].isEmpty() && !m_allInfo[PI_LastName].isEmpty()) {
const QString fullname = m_allInfo[PI_FirstName] + QLatin1Char(' ') + m_allInfo[PI_LastName]; const QString fullname = m_allInfo[PI_FirstName] + QLatin1Char(' ') + m_allInfo[PI_LastName];