summaryrefslogtreecommitdiff
path: root/vcl/unx/kde5/KDE5SalData.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/unx/kde5/KDE5SalData.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/unx/kde5/KDE5SalData.cxx')
-rw-r--r--vcl/unx/kde5/KDE5SalData.cxx22
1 files changed, 9 insertions, 13 deletions
diff --git a/vcl/unx/kde5/KDE5SalData.cxx b/vcl/unx/kde5/KDE5SalData.cxx
index 1b0e2071770b..587bf021410b 100644
--- a/vcl/unx/kde5/KDE5SalData.cxx
+++ b/vcl/unx/kde5/KDE5SalData.cxx
@@ -24,18 +24,16 @@
#include "KDE5SalData.hxx"
-KDE5SalData::KDE5SalData( SalInstance *pInstance )
- : Qt5Data( pInstance )
+KDE5SalData::KDE5SalData(SalInstance* pInstance)
+ : Qt5Data(pInstance)
{
}
-KDE5SalData::~KDE5SalData()
-{
-}
+KDE5SalData::~KDE5SalData() {}
void KDE5SalData::initNWF()
{
- ImplSVData *pSVData = ImplGetSVData();
+ ImplSVData* pSVData = ImplGetSVData();
// draw toolbars on separate lines
pSVData->maNWFData.mbDockingAreaSeparateTB = true;
@@ -48,13 +46,11 @@ void KDE5SalData::initNWF()
pSVData->maNWFData.mbNoFocusRectsForFlatButtons = true;
// Styled menus need additional space
- QStyle *style = QApplication::style();
- pSVData->maNWFData.mnMenuFormatBorderX =
- style->pixelMetric( QStyle::PM_MenuPanelWidth ) +
- style->pixelMetric( QStyle::PM_MenuHMargin );
- pSVData->maNWFData.mnMenuFormatBorderY =
- style->pixelMetric( QStyle::PM_MenuPanelWidth ) +
- style->pixelMetric( QStyle::PM_MenuVMargin );
+ QStyle* style = QApplication::style();
+ pSVData->maNWFData.mnMenuFormatBorderX = style->pixelMetric(QStyle::PM_MenuPanelWidth)
+ + style->pixelMetric(QStyle::PM_MenuHMargin);
+ pSVData->maNWFData.mnMenuFormatBorderY = style->pixelMetric(QStyle::PM_MenuPanelWidth)
+ + style->pixelMetric(QStyle::PM_MenuVMargin);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */