本文整理汇总了C++中Theme::setForegroundPadding方法的典型用法代码示例。如果您正苦于以下问题:C++ Theme::setForegroundPadding方法的具体用法?C++ Theme::setForegroundPadding怎么用?C++ Theme::setForegroundPadding使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Theme
的用法示例。
在下文中一共展示了Theme::setForegroundPadding方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setValues
void ThemeDialog::setValues(Theme& theme)
{
theme.setBackgroundType(m_background_type->currentIndex());
theme.setBackgroundColor(m_background_color->color());
theme.setBackgroundImage(m_background_image->toString());
theme.setForegroundColor(m_foreground_color->color());
theme.setForegroundOpacity(m_foreground_opacity->value());
theme.setForegroundWidth(m_foreground_width->value());
theme.setForegroundMargin(m_foreground_margin->value());
theme.setForegroundPadding(m_foreground_padding->value());
theme.setForegroundPosition(m_foreground_position->currentIndex());
theme.setRoundCornersEnabled(m_round_corners->isChecked());
theme.setCornerRadius(m_corner_radius->value());
theme.setBlurEnabled(m_blur->isChecked());
theme.setBlurRadius(m_blur_radius->value());
theme.setShadowEnabled(m_shadow->isChecked());
theme.setShadowColor(m_shadow_color->color());
theme.setShadowRadius(m_shadow_radius->value());
theme.setShadowOffset(m_shadow_offset->value());
theme.setTextColor(m_text_color->color());
QFont font = m_font_names->currentFont();
font.setPointSizeF(m_font_sizes->currentText().toDouble());
theme.setTextFont(font);
theme.setMisspelledColor(m_misspelled_color->color());
theme.setIndentFirstLine(m_indent_first_line->isChecked());
theme.setLineSpacing(m_line_spacing->value());
theme.setSpacingAboveParagraph(m_spacing_above_paragraph->value());
theme.setSpacingBelowParagraph(m_spacing_below_paragraph->value());
theme.setTabWidth(m_tab_width->value());
}