summaryrefslogtreecommitdiff
path: root/vcl/qt5/Qt5Instance.cxx
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2018-05-31 12:14:55 +0200
committerKatarina Behrens <Katarina.Behrens@cib.de>2018-06-01 10:06:33 +0200
commit8815acd18f8995cbbf45c2a70629379cb9bfbf15 (patch)
tree1820322ccac1e33893f9fb98b9ec02dd7601e553 /vcl/qt5/Qt5Instance.cxx
parentc5b8b1a3c0247773bd613cba1a183fc8961d38fc (diff)
Make clang-format happy, remove vcl/unx/kde5 from blacklist
just between us girls, I hate you clang-format Change-Id: I4cd041eff7a9fa01eb9192cf357e3f07a26fa6ad
Diffstat (limited to 'vcl/qt5/Qt5Instance.cxx')
-rw-r--r--vcl/qt5/Qt5Instance.cxx36
1 files changed, 15 insertions, 21 deletions
diff --git a/vcl/qt5/Qt5Instance.cxx b/vcl/qt5/Qt5Instance.cxx
index 9bfcd00e630b..6cc083f8f865 100644
--- a/vcl/qt5/Qt5Instance.cxx
+++ b/vcl/qt5/Qt5Instance.cxx
@@ -111,27 +111,21 @@ Qt5Instance::CreateVirtualDevice(SalGraphics* pGraphics, long& nDX, long& nDY, D
}
}
-SalMenu* Qt5Instance::CreateMenu( bool bMenuBar, Menu* pVCLMenu )
+SalMenu* Qt5Instance::CreateMenu(bool bMenuBar, Menu* pVCLMenu)
{
- Qt5Menu* pSalMenu = new Qt5Menu( bMenuBar );
- pSalMenu->SetMenu( pVCLMenu );
+ Qt5Menu* pSalMenu = new Qt5Menu(bMenuBar);
+ pSalMenu->SetMenu(pVCLMenu);
return pSalMenu;
}
-void Qt5Instance::DestroyMenu( SalMenu* pMenu )
-{
- delete pMenu;
-}
+void Qt5Instance::DestroyMenu(SalMenu* pMenu) { delete pMenu; }
-SalMenuItem* Qt5Instance::CreateMenuItem( const SalItemParams* pItemData )
+SalMenuItem* Qt5Instance::CreateMenuItem(const SalItemParams* pItemData)
{
- return new Qt5MenuItem( pItemData );
+ return new Qt5MenuItem(pItemData);
}
-void Qt5Instance::DestroyMenuItem( SalMenuItem* pItem )
-{
- delete pItem;
-}
+void Qt5Instance::DestroyMenuItem(SalMenuItem* pItem) { delete pItem; }
SalTimer* Qt5Instance::CreateSalTimer() { return new Qt5Timer(); }
@@ -211,18 +205,18 @@ void Qt5Instance::ProcessEvent(SalUserEvent aEvent)
aEvent.m_pFrame->CallCallback(aEvent.m_nEvent, aEvent.m_pData);
}
-css::uno::Reference< css::ui::dialogs::XFilePicker2 >
-Qt5Instance::createFilePicker( const css::uno::Reference< css::uno::XComponentContext > & )
+css::uno::Reference<css::ui::dialogs::XFilePicker2>
+Qt5Instance::createFilePicker(const css::uno::Reference<css::uno::XComponentContext>&)
{
- return css::uno::Reference< css::ui::dialogs::XFilePicker2 >(
- new Qt5FilePicker( QFileDialog::ExistingFile ) );
+ return css::uno::Reference<css::ui::dialogs::XFilePicker2>(
+ new Qt5FilePicker(QFileDialog::ExistingFile));
}
-css::uno::Reference< css::ui::dialogs::XFolderPicker2 >
-Qt5Instance::createFolderPicker( const css::uno::Reference< css::uno::XComponentContext > & )
+css::uno::Reference<css::ui::dialogs::XFolderPicker2>
+Qt5Instance::createFolderPicker(const css::uno::Reference<css::uno::XComponentContext>&)
{
- return css::uno::Reference< css::ui::dialogs::XFolderPicker2 >(
- new Qt5FilePicker( QFileDialog::Directory ) );
+ return css::uno::Reference<css::ui::dialogs::XFolderPicker2>(
+ new Qt5FilePicker(QFileDialog::Directory));
}
extern "C" {