コード例 #1
0
void QConsoleWidgetPrivate::
selectAndSetFontColor() {

	auto color_ = 
		this->textCharFormat.foreground().color();

	QColorDialog * dialog = new QColorDialog(color_);
	if (dialog->exec()) {
		color_ = dialog->selectedColor();
		this->textCharFormat.setForeground(color_);
		super->updateCharFormat();
	}
	
	dialog->deleteLater();
	 
}