[Qt] small cleanups in transactiontablemodel

@laanwj Ping, can I use the above suggestion here?