A linear-potential model for quark confinement