mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-24 04:32:15 -04:00
Put space after 'if'
This commit is contained in:
parent
84971cbfbd
commit
a3a4f1547b
@ -22,7 +22,7 @@ TopWidget::TopWidget(QWidget *parent) :
|
|||||||
KiwixApp::instance()->getTabWidget()->triggerWebPageAction(QWebEnginePage::Forward);
|
KiwixApp::instance()->getTabWidget()->triggerWebPageAction(QWebEnginePage::Forward);
|
||||||
});
|
});
|
||||||
|
|
||||||
if(QGuiApplication::isLeftToRight()) {
|
if (QGuiApplication::isLeftToRight()) {
|
||||||
addAction(back);
|
addAction(back);
|
||||||
widgetForAction(back)->setObjectName("backButton"); // For CSS
|
widgetForAction(back)->setObjectName("backButton"); // For CSS
|
||||||
addAction(forward);
|
addAction(forward);
|
||||||
@ -84,7 +84,7 @@ void TopWidget::handleWebActionEnabledChanged(QWebEnginePage::WebAction action,
|
|||||||
|
|
||||||
|
|
||||||
void TopWidget::mousePressEvent(QMouseEvent *event) {
|
void TopWidget::mousePressEvent(QMouseEvent *event) {
|
||||||
if(event->button() != Qt::LeftButton)
|
if (event->button() != Qt::LeftButton)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
m_cursorPos = event->globalPos() + frameGeometry().topLeft() - parentWidget()->frameGeometry().topLeft();
|
m_cursorPos = event->globalPos() + frameGeometry().topLeft() - parentWidget()->frameGeometry().topLeft();
|
||||||
@ -93,7 +93,7 @@ void TopWidget::mousePressEvent(QMouseEvent *event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void TopWidget::mouseMoveEvent(QMouseEvent *event) {
|
void TopWidget::mouseMoveEvent(QMouseEvent *event) {
|
||||||
if(event->timestamp() <= m_timestamp)
|
if (event->timestamp() <= m_timestamp)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
m_timestamp = event->timestamp();
|
m_timestamp = event->timestamp();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user