mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Coding style: remove Java-style function definition
Remove a few cases of void fun() { ... } While touching these functions, fix a few other whitespace coding style violations. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
73a230b6e6
commit
9ed5cf16a4
10 changed files with 31 additions and 18 deletions
|
@ -128,7 +128,8 @@ void UserManual::linkClickedSlot(const QUrl& url)
|
|||
}
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
void UserManual::showEvent(QShowEvent *e) {
|
||||
void UserManual::showEvent(QShowEvent *e)
|
||||
{
|
||||
MainWindow *m = MainWindow::instance();
|
||||
filterAction = m->findChild<QAction *>(QLatin1String("actionFilterTags"), Qt::FindDirectChildrenOnly);
|
||||
if (filterAction != nullptr)
|
||||
|
@ -137,7 +138,9 @@ void UserManual::showEvent(QShowEvent *e) {
|
|||
if (closeAction != nullptr)
|
||||
closeAction->setShortcut(QKeySequence());
|
||||
}
|
||||
void UserManual::hideEvent(QHideEvent *e) {
|
||||
|
||||
void UserManual::hideEvent(QHideEvent *e)
|
||||
{
|
||||
if (closeAction != NULL)
|
||||
closeAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_W));
|
||||
if (filterAction != NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue