The 2dF-SDSS LRG and QSO Survey: the QSO luminosity function at 0.4 < z < 2.6