Fix usage of icon provider and fix a small attribute error bug if you're not using QCOdeEdit but QPlainTextEdit