From 5de589a27110320f9551276019e6c6e6bd7e5779 Mon Sep 17 00:00:00 2001 From: FarmRadio Hangar Date: Tue, 17 May 2016 15:41:23 +0300 Subject: [PATCH] clean up pimpl code --- lib/theme.cpp | 5 ----- lib/theme_p.h | 4 +++- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/lib/theme.cpp b/lib/theme.cpp index 8beb9f9..4fd071d 100644 --- a/lib/theme.cpp +++ b/lib/theme.cpp @@ -2,11 +2,6 @@ #include #include "theme_p.h" -ThemePrivate::ThemePrivate(Theme *q) - : q_ptr(q) -{ -} - QColor ThemePrivate::rgba(int r, int g, int b, qreal a) const { QColor color(r, g, b); diff --git a/lib/theme_p.h b/lib/theme_p.h index bcbc345..ebcd96b 100644 --- a/lib/theme_p.h +++ b/lib/theme_p.h @@ -9,7 +9,9 @@ class ThemePrivate Q_DECLARE_PUBLIC(Theme) public: - ThemePrivate(Theme *q); + ThemePrivate(Theme *q) + : q_ptr(q) + {} QColor rgba(int r, int g, int b, qreal a) const;