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:
parent
ba459ba600
commit
4543c74436
|
@ -36,9 +36,6 @@ MouseGestures::MouseGestures(const QString &settingsPath, QObject* parent)
|
|||
, m_filter(0)
|
||||
, m_settingsFile(settingsPath + QL1S("/extensions.ini"))
|
||||
, m_button(Qt::MiddleButton)
|
||||
, m_enableRockerNavigation(false)
|
||||
, m_blockNextRightMouseRelease(false)
|
||||
, m_blockNextLeftMouseRelease(false)
|
||||
{
|
||||
loadSettings();
|
||||
}
|
||||
|
|
|
@ -76,10 +76,10 @@ private:
|
|||
|
||||
QString m_settingsFile;
|
||||
Qt::MouseButton m_button;
|
||||
bool m_enableRockerNavigation;
|
||||
bool m_enableRockerNavigation = false;
|
||||
|
||||
bool m_blockNextRightMouseRelease;
|
||||
bool m_blockNextLeftMouseRelease;
|
||||
bool m_blockNextRightMouseRelease = false;
|
||||
bool m_blockNextLeftMouseRelease = false;
|
||||
|
||||
bool m_oldWebViewForceContextMenuOnRelease = false;
|
||||
};
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
|
||||
MouseGesturesPlugin::MouseGesturesPlugin()
|
||||
: QObject()
|
||||
, m_gestures(0)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ public:
|
|||
bool mouseMove(Qz::ObjectName type, QObject *obj, QMouseEvent *event) override;
|
||||
|
||||
private:
|
||||
MouseGestures* m_gestures;
|
||||
MouseGestures* m_gestures = nullptr;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -112,7 +112,7 @@ void PIM_Handler::populateWebViewMenu(QMenu* menu, WebView* view, const WebHitTe
|
|||
}
|
||||
|
||||
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()) {
|
||||
const QString fullname = m_allInfo[PI_FirstName] + QLatin1Char(' ') + m_allInfo[PI_LastName];
|
||||
|
|
Loading…
Reference in New Issue
Block a user