viewertexteditor: shifted code to class [skip ci]

Minor code organization
This commit is contained in:
itsmattkc
2022-03-30 20:36:24 -07:00
parent 1f70c8f18d
commit 49e622ac0f
2 changed files with 3 additions and 3 deletions
+3 -1
View File
@@ -321,7 +321,7 @@ void ViewerTextEditor::DocumentChanged()
}
ViewerTextEditorToolBar::ViewerTextEditorToolBar(QWidget *parent) :
QWidget(parent),
QWidget(parent, Qt::Tool | Qt::FramelessWindowHint),
painted_(false)
{
QVBoxLayout *outer_layout = new QVBoxLayout(this);
@@ -449,6 +449,8 @@ ViewerTextEditorToolBar::ViewerTextEditorToolBar(QWidget *parent) :
advanced_layout->addStretch();
setAutoFillBackground(true);
resize(sizeHint());
}
void ViewerTextEditorToolBar::SetAlignment(Qt::Alignment a)