alignRightLayout.addWidget(showAlignRight);
alignRightLayout.addWidget(hideAlignRight);
alignRightLayout.setStretch(1, 100);
alignRightGroup.setLayout(alignRightLayout);
QGridLayout mainLayout = new QGridLayout();
mainLayout.addWidget(undoGroup, 0,0);
mainLayout.addWidget(redoGroup, 0,1);
mainLayout.addWidget(cutGroup, 0,2);
mainLayout.addWidget(copyGroup, 1,0);
mainLayout.addWidget(pasteGroup, 1,1);
mainLayout.addWidget(boldGroup, 1,2);
mainLayout.addWidget(italicGroup, 2,0);
mainLayout.addWidget(underlineGroup, 2,1);
mainLayout.addWidget(strikethroughGroup, 2,2);
mainLayout.addWidget(hlineGroup, 3,0);
mainLayout.addWidget(indentGroup, 3,1);
mainLayout.addWidget(outdentGroup, 3,2);
mainLayout.addWidget(bulletListGroup, 4,0);
mainLayout.addWidget(numberListGroup, 4,1);
mainLayout.addWidget(fontGroup, 5,0);
mainLayout.addWidget(fontSizeGroup, 5,1);
mainLayout.addWidget(fontColorGroup, 5,2);
mainLayout.addWidget(fontHighlightGroup, 4,2);
mainLayout.addWidget(alignLeftGroup, 6,0);
mainLayout.addWidget(alignCenterGroup, 6,1);
mainLayout.addWidget(alignRightGroup, 6,2);
mainLayout.setColumnStretch(3, 100);
mainLayout.setRowStretch(7, 100);
setLayout(mainLayout);
}