Changeset View
Changeset View
Standalone View
Standalone View
addons/katesql/outputstylewidget.cpp
Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Line(s) | 74 | { | |||
---|---|---|---|---|---|
93 | setItemWidget(item, 2, italicCheckBox); | 93 | setItemWidget(item, 2, italicCheckBox); | ||
94 | setItemWidget(item, 3, underlineCheckBox); | 94 | setItemWidget(item, 3, underlineCheckBox); | ||
95 | setItemWidget(item, 4, strikeOutCheckBox); | 95 | setItemWidget(item, 4, strikeOutCheckBox); | ||
96 | setItemWidget(item, 5, foregroundColorButton); | 96 | setItemWidget(item, 5, foregroundColorButton); | ||
97 | setItemWidget(item, 6, backgroundColorButton); | 97 | setItemWidget(item, 6, backgroundColorButton); | ||
98 | 98 | | |||
99 | readConfig(item); | 99 | readConfig(item); | ||
100 | 100 | | |||
101 | connect(boldCheckBox, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | 101 | connect(boldCheckBox, &QCheckBox::toggled, this, &OutputStyleWidget::slotChanged); | ||
102 | connect(italicCheckBox, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | 102 | connect(italicCheckBox, &QCheckBox::toggled, this, &OutputStyleWidget::slotChanged); | ||
103 | connect(underlineCheckBox, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | 103 | connect(underlineCheckBox, &QCheckBox::toggled, this, &OutputStyleWidget::slotChanged); | ||
104 | connect(strikeOutCheckBox, SIGNAL(toggled(bool)), this, SLOT(slotChanged())); | 104 | connect(strikeOutCheckBox, &QCheckBox::toggled, this, &OutputStyleWidget::slotChanged); | ||
105 | connect(foregroundColorButton, SIGNAL(changed(QColor)), this, SLOT(slotChanged())); | 105 | connect(foregroundColorButton, &KColorButton::changed, this, &OutputStyleWidget::slotChanged); | ||
106 | connect(backgroundColorButton, SIGNAL(changed(QColor)), this, SLOT(slotChanged())); | 106 | connect(backgroundColorButton, &KColorButton::changed, this, &OutputStyleWidget::slotChanged); | ||
107 | 107 | | |||
108 | return item; | 108 | return item; | ||
109 | } | 109 | } | ||
110 | 110 | | |||
111 | 111 | | |||
112 | void OutputStyleWidget::readConfig(QTreeWidgetItem *item) | 112 | void OutputStyleWidget::readConfig(QTreeWidgetItem *item) | ||
113 | { | 113 | { | ||
114 | KConfigGroup config(KSharedConfig::openConfig(), "KateSQLPlugin"); | 114 | KConfigGroup config(KSharedConfig::openConfig(), "KateSQLPlugin"); | ||
▲ Show 20 Lines • Show All 103 Lines • Show Last 20 Lines |