mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Wrap code for better readability
This commit is contained in:
@@ -92,9 +92,10 @@ namespace qdesigner_internal {
|
||||
}
|
||||
|
||||
// Richtext simplification filter helpers: Filter attributes of elements
|
||||
static inline void filterAttributes(const QStringRef &name,
|
||||
QXmlStreamAttributes *atts,
|
||||
bool *paragraphAlignmentFound)
|
||||
static inline void filterAttributes(
|
||||
const QStringRef &name,
|
||||
QXmlStreamAttributes *atts,
|
||||
bool *paragraphAlignmentFound)
|
||||
{
|
||||
typedef QXmlStreamAttributes::iterator AttributeIt;
|
||||
|
||||
@@ -172,7 +173,7 @@ namespace qdesigner_internal {
|
||||
}
|
||||
// Check for plain text (no spans, just <html><head><body><p>)
|
||||
if (isPlainTextPtr)
|
||||
*isPlainTextPtr = !paragraphAlignmentFound && elementCount == 4u; //
|
||||
*isPlainTextPtr = !paragraphAlignmentFound && elementCount == 4u;
|
||||
return out;
|
||||
}
|
||||
|
||||
@@ -813,7 +814,8 @@ RichTextEditorDialog::~RichTextEditorDialog()
|
||||
/**
|
||||
@brief RichTextEditorDialog::on_buttonBox_accepted
|
||||
*/
|
||||
void RichTextEditorDialog::on_buttonBox_accepted() {
|
||||
void RichTextEditorDialog::on_buttonBox_accepted()
|
||||
{
|
||||
emit applyEditText( text(Qt::RichText) );
|
||||
this->close();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user