move object construction to initialization list
This commit is contained in:
parent
7ffad28819
commit
0269911b2e
|
@ -2,13 +2,14 @@
|
|||
#include "tabs_p.h"
|
||||
#include <QHBoxLayout>
|
||||
#include <QPainter>
|
||||
#include <QPropertyAnimation>
|
||||
#include "tabs_internal.h"
|
||||
#include "lib/ripple.h"
|
||||
#include "lib/style.h"
|
||||
|
||||
TabsPrivate::TabsPrivate(Tabs *q)
|
||||
: q_ptr(q),
|
||||
inkBar(new TabsInkBar(q)),
|
||||
tabLayout(new QHBoxLayout),
|
||||
tab(-1),
|
||||
useThemeColors(true),
|
||||
showHalo(false),
|
||||
|
@ -20,9 +21,6 @@ void TabsPrivate::init()
|
|||
{
|
||||
Q_Q(Tabs);
|
||||
|
||||
inkBar = new TabsInkBar(q);
|
||||
|
||||
tabLayout = new QHBoxLayout;
|
||||
q->setLayout(tabLayout);
|
||||
tabLayout->setSpacing(0);
|
||||
tabLayout->setMargin(0);
|
||||
|
|
|
@ -20,14 +20,14 @@ public:
|
|||
void init();
|
||||
|
||||
Tabs *const q_ptr;
|
||||
TabsInkBar *inkBar;
|
||||
QHBoxLayout *tabLayout;
|
||||
QColor inkColor;
|
||||
QColor backgroundColor;
|
||||
QColor textColor;
|
||||
int tab;
|
||||
bool useThemeColors;
|
||||
bool showHalo;
|
||||
TabsInkBar *const inkBar;
|
||||
QHBoxLayout *const tabLayout;
|
||||
QColor inkColor;
|
||||
QColor backgroundColor;
|
||||
QColor textColor;
|
||||
int tab;
|
||||
bool useThemeColors;
|
||||
bool showHalo;
|
||||
Material::RippleStyle rippleStyle;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue