Changeset View
Changeset View
Standalone View
Standalone View
kstyle/config/breezestyleconfig.cpp
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | 41 | { | |||
---|---|---|---|---|---|
44 | StyleConfig::StyleConfig(QWidget* parent): | 44 | StyleConfig::StyleConfig(QWidget* parent): | ||
45 | QWidget(parent) | 45 | QWidget(parent) | ||
46 | { | 46 | { | ||
47 | setupUi(this); | 47 | setupUi(this); | ||
48 | 48 | | |||
49 | // load setup from configData | 49 | // load setup from configData | ||
50 | load(); | 50 | load(); | ||
51 | 51 | | |||
52 | connect( _tabBarDrawCenteredTabs, SIGNAL(toggled(bool)), SLOT(updateChanged()) ); | 52 | connect( _tabBarDrawCenteredTabs, &QAbstractButton::toggled, this, &StyleConfig::updateChanged ); | ||
53 | connect( _toolBarDrawItemSeparator, SIGNAL(toggled(bool)), SLOT(updateChanged()) ); | 53 | connect( _toolBarDrawItemSeparator, &QAbstractButton::toggled, this, &StyleConfig::updateChanged ); | ||
54 | connect( _viewDrawFocusIndicator, SIGNAL(toggled(bool)), SLOT(updateChanged()) ); | 54 | connect( _viewDrawFocusIndicator, &QAbstractButton::toggled, this, &StyleConfig::updateChanged ); | ||
55 | connect( _dockWidgetDrawFrame, SIGNAL(toggled(bool)), SLOT(updateChanged()) ); | 55 | connect( _dockWidgetDrawFrame, &QAbstractButton::toggled, this, &StyleConfig::updateChanged ); | ||
56 | connect( _titleWidgetDrawFrame, SIGNAL(toggled(bool)), SLOT(updateChanged()) ); | 56 | connect( _titleWidgetDrawFrame, &QAbstractButton::toggled, this, &StyleConfig::updateChanged ); | ||
57 | connect( _sidePanelDrawFrame, SIGNAL(toggled(bool)), SLOT(updateChanged()) ); | 57 | connect( _sidePanelDrawFrame, &QAbstractButton::toggled, this, &StyleConfig::updateChanged ); | ||
58 | connect( _menuItemDrawThinFocus, SIGNAL(toggled(bool)), SLOT(updateChanged()) ); | 58 | connect( _menuItemDrawThinFocus, &QAbstractButton::toggled, this, &StyleConfig::updateChanged ); | ||
59 | connect( _sliderDrawTickMarks, SIGNAL(toggled(bool)), SLOT(updateChanged()) ); | 59 | connect( _sliderDrawTickMarks, &QAbstractButton::toggled, this, &StyleConfig::updateChanged ); | ||
60 | connect( _splitterProxyEnabled, SIGNAL(toggled(bool)), SLOT(updateChanged()) ); | 60 | connect( _splitterProxyEnabled, &QAbstractButton::toggled, this, &StyleConfig::updateChanged ); | ||
61 | connect( _mnemonicsMode, SIGNAL(currentIndexChanged(int)), SLOT(updateChanged()) ); | 61 | connect( _mnemonicsMode, SIGNAL(currentIndexChanged(int)), SLOT(updateChanged()) ); | ||
62 | connect( _animationsEnabled, SIGNAL(toggled(bool)), SLOT(updateChanged()) ); | 62 | connect( _animationsEnabled, &QAbstractButton::toggled, this, &StyleConfig::updateChanged ); | ||
63 | connect( _animationsDuration, SIGNAL(valueChanged(int)), SLOT(updateChanged()) ); | 63 | connect( _animationsDuration, SIGNAL(valueChanged(int)), SLOT(updateChanged()) ); | ||
64 | connect( _scrollBarAddLineButtons, SIGNAL(currentIndexChanged(int)), SLOT(updateChanged()) ); | 64 | connect( _scrollBarAddLineButtons, SIGNAL(currentIndexChanged(int)), SLOT(updateChanged()) ); | ||
65 | connect( _scrollBarSubLineButtons, SIGNAL(currentIndexChanged(int)), SLOT(updateChanged()) ); | 65 | connect( _scrollBarSubLineButtons, SIGNAL(currentIndexChanged(int)), SLOT(updateChanged()) ); | ||
66 | connect( _windowDragMode, SIGNAL(currentIndexChanged(int)), SLOT(updateChanged()) ); | 66 | connect( _windowDragMode, SIGNAL(currentIndexChanged(int)), SLOT(updateChanged()) ); | ||
67 | connect( _menuOpacity, SIGNAL(valueChanged(int)), SLOT(updateChanged()) ); | 67 | connect( _menuOpacity, &QAbstractSlider::valueChanged, this, &StyleConfig::updateChanged ); | ||
68 | 68 | | |||
69 | } | 69 | } | ||
70 | 70 | | |||
71 | //__________________________________________________________________ | 71 | //__________________________________________________________________ | ||
72 | void StyleConfig::save() | 72 | void StyleConfig::save() | ||
73 | { | 73 | { | ||
74 | StyleConfigData::setTabBarDrawCenteredTabs( _tabBarDrawCenteredTabs->isChecked() ); | 74 | StyleConfigData::setTabBarDrawCenteredTabs( _tabBarDrawCenteredTabs->isChecked() ); | ||
75 | StyleConfigData::setToolBarDrawItemSeparator( _toolBarDrawItemSeparator->isChecked() ); | 75 | StyleConfigData::setToolBarDrawItemSeparator( _toolBarDrawItemSeparator->isChecked() ); | ||
▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines |